Skip to content
Snippets Groups Projects
Commit d387fecf authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Follow-up fixes for 687a28bf in Maxwell

parent 9cc11ed2
No related branches found
No related tags found
No related merge requests found
...@@ -134,13 +134,13 @@ class MaxwellOperator(HyperbolicOperator): ...@@ -134,13 +134,13 @@ class MaxwellOperator(HyperbolicOperator):
return flat_obj_array( return flat_obj_array(
# flux e, # flux e,
1/2*( 1/2*(
-self.space_cross_h(normal, h.int-h.ext) -self.space_cross_h(normal, h.ext-h.int)
# multiplication by epsilon undoes material divisor below # multiplication by epsilon undoes material divisor below
#-max_c*(epsilon*e.int - epsilon*e.ext) #-max_c*(epsilon*e.int - epsilon*e.ext)
), ),
# flux h # flux h
1/2*( 1/2*(
self.space_cross_e(normal, e.int-e.ext) self.space_cross_e(normal, e.ext-e.int)
# multiplication by mu undoes material divisor below # multiplication by mu undoes material divisor below
#-max_c*(mu*h.int - mu*h.ext) #-max_c*(mu*h.int - mu*h.ext)
)) ))
...@@ -150,14 +150,14 @@ class MaxwellOperator(HyperbolicOperator): ...@@ -150,14 +150,14 @@ class MaxwellOperator(HyperbolicOperator):
# flux e, # flux e,
( (
-1/(Z_int+Z_ext)*self.space_cross_h(normal, -1/(Z_int+Z_ext)*self.space_cross_h(normal,
Z_ext*(h.int-h.ext) Z_ext*(h.ext-h.int)
- self.flux_type*self.space_cross_e(normal, e.int-e.ext)) - self.flux_type*self.space_cross_e(normal, e.ext-e.int))
), ),
# flux h # flux h
( (
1/(Y_int + Y_ext)*self.space_cross_e(normal, 1/(Y_int + Y_ext)*self.space_cross_e(normal,
Y_ext*(e.int-e.ext) Y_ext*(e.ext-e.int)
+ self.flux_type*self.space_cross_h(normal, h.int-h.ext)) + self.flux_type*self.space_cross_h(normal, h.ext-h.int))
), ),
) )
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment