Package hedge :: Package models :: Module em :: Class MaxwellOperator
[hide private]
[frames] | no frames]

Class MaxwellOperator

source code


A 3D Maxwell operator with PEC boundaries.

Field order is [Ex Ey Ez Hx Hy Hz].

Instance Methods [hide private]
 
__init__(self, epsilon, mu, flux_type, bdry_flux_type=None, pec_tag=<class 'hedge.mesh.TAG_ALL'>, absorb_tag=<class 'hedge.mesh.TAG_NONE'>, incident_tag=<class 'hedge.mesh.TAG_NONE'>, incident_bc=None, current=None, dimensions=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
flux(self, flux_type) source code
 
local_derivatives(self, w=None) source code
 
field_placeholder(self, w=None) source code
 
pec_bc(self, w=None) source code
 
absorbing_bc(self, w=None) source code
 
incident_bc(self, w=None) source code
 
op_template(self, w=None) source code
 
bind(self, discr, **extra_context) source code
 
assemble_eh(self, e=None, h=None, discr=None) source code
 
partial_to_eh_subsets(self) source code
 
split_eh(self, w) source code
 
get_eh_subset(self)
Return a 6-tuple of bools indicating whether field components are to be computed.
source code
 
max_eigenvalue(self)
Return the largest eigenvalue of Maxwell's equations as a hyperbolic system.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  _default_dimensions = 3
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, epsilon, mu, flux_type, bdry_flux_type=None, pec_tag=<class 'hedge.mesh.TAG_ALL'>, absorb_tag=<class 'hedge.mesh.TAG_NONE'>, incident_tag=<class 'hedge.mesh.TAG_NONE'>, incident_bc=None, current=None, dimensions=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • flux_type - can be in [0,1] for anything between central and upwind, or "lf" for Lax-Friedrichs.
Overrides: object.__init__

partial_to_eh_subsets(self)

source code 
Decorators:
  • @memoize_method

get_eh_subset(self)

source code 

Return a 6-tuple of bools indicating whether field components are to be computed. The fields are numbered in the order specified in the class documentation.