Package hedge :: Package models :: Module poisson :: Class WeakPoissonOperator
[hide private]
[frames] | no frames]

Class WeakPoissonOperator

source code


Implements the Local Discontinuous Galerkin (LDG) Method for elliptic operators.

See P. Castillo et al., Local discontinuous Galerkin methods for elliptic problems", Communications in Numerical Methods in Engineering 18, no. 1 (2002): 69-75.

Nested Classes [hide private]
  BoundPoissonOperator
Instance Methods [hide private]
 
__init__(self, dimensions, diffusion_tensor=None, dirichlet_bc=hedge.data.ConstantGivenFunction(), dirichlet_tag='dirichlet', neumann_bc=hedge.data.ConstantGivenFunction(), neumann_tag='neumann', flux='ip')
Initialize the weak Poisson operator.
source code
 
get_weak_flux_set(self, flux) source code
 
grad_op_template(self) source code
 
div_op_template(self, apply_minv) source code
 
grad_bc_op_template(self) source code
 
bind(self, discr) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, dimensions, diffusion_tensor=None, dirichlet_bc=hedge.data.ConstantGivenFunction(), dirichlet_tag='dirichlet', neumann_bc=hedge.data.ConstantGivenFunction(), neumann_tag='neumann', flux='ip')
(Constructor)

source code 

Initialize the weak Poisson operator.

Parameters:
  • flux - Either "ip" or "ldg" to indicate which type of flux is to be used. IP tends to be faster, and is therefore the default.
Overrides: object.__init__

grad_bc_op_template(self)

source code 
Decorators:
  • @memoize_method