|
Peano
|
The algebraic, volume-distributed source term S(Q) of a hyperbolic PDE - as opposed to PointSource, which contributes only at isolated points. More...


Data Structures | |
| class | Generator |
| VolumetricSource-specific code generation. More... | |
Public Member Functions | |
| __init__ (self, str implementation=None, bool stateless=False) | |
| implementation: str A C++ snippet that becomes volumetricSource()'s body (the empty string is a valid, generated no-op body), or None (the default) to leave volumetricSource() 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 = "volumetricSource" |
Additional Inherited Members | |
| Data Fields inherited from exahype2.api.PDETerm.PDETerm | |
| name = name | |
| implementation = implementation | |
| stateless = stateless | |
The algebraic, volume-distributed source term S(Q) of a hyperbolic PDE - as opposed to PointSource, which contributes only at isolated points.
See python/exahype2/solvers/fv/riemann/kernels.py's sourceTerm(), which is not normal-dependent (a volumetric source has no notion of a face direction), so unlike Flux/MaxEigenvalue/MassMatrix/ NonconservativeProduct this term has no normal parameter to begin with. It depends on the position x and the time stamp t only, i.e. neither on the mesh size nor on the time step size. The signature matches exahype2.fv.rusanov.VolumetricSourceFunctor:
Definition at line 8 of file VolumetricSource.py.
| exahype2.api.VolumetricSource.VolumetricSource.__init__ | ( | self, | |
| str | implementation = None, | ||
| bool | stateless = False ) |
implementation: str A C++ snippet that becomes volumetricSource()'s body (the empty string is a valid, generated no-op body), or None (the default) to leave volumetricSource() pure virtual for you to implement by hand.
Don't add this term to a solver at all if the PDE has no volumetric source contribution.
Definition at line 42 of file VolumetricSource.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, exahype2.api.NonconservativeProduct.NonconservativeProduct.NAME, exahype2.api.PointSource.PointSource.NAME, exahype2.api.RefineErasePointwisely.RefineErasePointwisely.NAME, and NAME.
Referenced by __init__().


|
static |
Definition at line 40 of file VolumetricSource.py.
Referenced by __init__().
|
static |
Definition at line 33 of file VolumetricSource.py.