|
Peano
|
The non-conservative product B(Q) applied to a jump deltaQ in a given direction, i.e. More...


Data Structures | |
| class | Generator |
| NonconservativeProduct-specific code generation. More... | |
Public Member Functions | |
| __init__ (self, str implementation=None, bool stateless=False) | |
| implementation: str A C++ snippet that becomes nonconservativeProduct()'s body (the empty string is a valid, generated no-op body), or None (the default) to leave nonconservativeProduct() pure virtual for you to implement by hand. | |
| Public Member Functions inherited from exahype2.api.PDETerm.PDETerm | |
| __init__ (self, str name, str implementation=None, bool stateless=False) | |
| name: str The C++ method name, e.g. | |
| str | __repr__ (self) |
| str | __str__ (self) |
| "PDETerm.Generator" | generator_for (self, solver) |
| Code generator for this term within a solver, i.e. | |
| "PDETerm.Generator" | generator (self) |
| Code generator for this term: an instance of this term's own (possibly subclass-specific) Generator. | |
Static Public Attributes | |
| tuple | SIGNATURE |
| str | NAME = "nonconservativeProduct" |
Additional Inherited Members | |
| Data Fields inherited from exahype2.api.PDETerm.PDETerm | |
| name = name | |
| implementation = implementation | |
| stateless = stateless | |
The non-conservative product B(Q) applied to a jump deltaQ in a given direction, i.e.
BTimesDeltaQ = B(Q) * deltaQ
The signature matches exahype2.fv.rusanov.NonconservativeProductFunctor, i.e. what the Rusanov kernels hand over:
The kernels evaluate the term on each face of a volume: Q is the average of the two adjacent volumes, deltaQ the difference right minus left (or top minus bottom, ...) along normal. Both include the auxiliary variables, so a term can use the jump of an auxiliary variable, e.g. of a bathymetry. The output only holds unknowns entries.
The size of the volume is called volumeSize rather than h - as it is in the legacy API - as h frequently is the name of an unknown, e.g. the water height of the shallow water equations.
Definition at line 8 of file NonconservativeProduct.py.
| exahype2.api.NonconservativeProduct.NonconservativeProduct.__init__ | ( | self, | |
| str | implementation = None, | ||
| bool | stateless = False ) |
implementation: str A C++ snippet that becomes nonconservativeProduct()'s body (the empty string is a valid, generated no-op body), or None (the default) to leave nonconservativeProduct() pure virtual for you to implement by hand.
Don't add this term to a solver at all if the PDE has no non-conservative contribution.
Definition at line 55 of file NonconservativeProduct.py.
References __init__(), exahype2.api.blockstructured.DirichletBoundaryConditions.DirichletBoundaryConditions.NAME, exahype2.api.blockstructured.SommerfeldBoundaryConditions.SommerfeldBoundaryConditions.NAME, exahype2.api.Flux.Flux.NAME, exahype2.api.GradientRefinement.GradientRefinement.NAME, exahype2.api.InitPointWisely.InitPointWisely.NAME, exahype2.api.MassMatrix.MassMatrix.NAME, exahype2.api.MaxEigenvalue.MaxEigenvalue.NAME, and NAME.
Referenced by __init__().


|
static |
Definition at line 53 of file NonconservativeProduct.py.
Referenced by __init__(), exahype2.api.PointSource.PointSource.__init__(), exahype2.api.RefineErasePointwisely.RefineErasePointwisely.__init__(), and exahype2.api.VolumetricSource.VolumetricSource.__init__().
|
static |
Definition at line 42 of file NonconservativeProduct.py.