|
Peano
|
Point-wise refinement criterion: given the solution Q at a single degree of freedom, its position x and the time stamp t, decide whether the mesh around this point should be refined, erased (coarsened) or kept. More...


Data Structures | |
| class | Generator |
| RefineErasePointwisely-specific code generation. More... | |
Public Member Functions | |
| __init__ (self, str implementation=None, bool stateless=False) | |
Public Member Functions inherited from exahype2.api.PDETerm.PDETerm | |
| str | __repr__ (self) |
| str | __str__ (self) |
| "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 = "refineErasePointwisely" |
Static Public Attributes inherited from exahype2.api.PDETerm.PDETerm | |
| str | NAME |
| str | SIGNATURE |
Additional Inherited Members | |
Data Fields inherited from exahype2.api.PDETerm.PDETerm | |
| name | |
| implementation | |
| stateless | |
Point-wise refinement criterion: given the solution Q at a single degree of freedom, its position x and the time stamp t, decide whether the mesh around this point should be refined, erased (coarsened) or kept.
Like all the other PDE terms, the generated method returns void and writes its outcome into an output argument. The output semantics are those of every adaptivity criterion (exahype2.api.AdaptivityCriterion).
Different to the legacy refinementCriterion(Q, x, h, t), the term is not handed the mesh size. Bounds on the mesh size are the job of the grid construction, not of the physics.
Q holds unknowns+auxiliary_variables entries.
Definition at line 8 of file RefineErasePointwisely.py.
| exahype2.api.RefineErasePointwisely.RefineErasePointwisely.__init__ | ( | self, | |
| str | implementation = None, |
||
| bool | stateless = False |
||
| ) |
| implementation | str A C++ snippet that becomes refineErasePointwisely()'s body, or None (the default) to leave refineErasePointwisely() pure virtual for you to implement by hand. The empty string is a valid body: it leaves *refinementCommand untouched, i.e. at Keep. |
| stateless | bool Generate a static, GPU-offloadable method instead of a virtual one. Requires an implementation. |
Reimplemented from exahype2.api.AdaptivityCriterion.AdaptivityCriterion.
Definition at line 45 of file RefineErasePointwisely.py.
References exahype2.api.RefineErasePointwisely.RefineErasePointwisely.__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.PDETerm.PDETerm.NAME, exahype2.api.PointSource.PointSource.NAME, exahype2.api.RefineErasePointwisely.RefineErasePointwisely.NAME, and exahype2.api.VolumetricSource.VolumetricSource.NAME.
Referenced by exahype2.api.RefineErasePointwisely.RefineErasePointwisely.__init__().


|
static |
Definition at line 43 of file RefineErasePointwisely.py.
Referenced by exahype2.api.blockstructured.DirichletBoundaryConditions.DirichletBoundaryConditions.__init__(), exahype2.api.Flux.Flux.__init__(), exahype2.api.GradientRefinement.GradientRefinement.__init__(), exahype2.api.InitPointWisely.InitPointWisely.__init__(), exahype2.api.MassMatrix.MassMatrix.__init__(), exahype2.api.MaxEigenvalue.MaxEigenvalue.__init__(), exahype2.api.NonconservativeProduct.NonconservativeProduct.__init__(), exahype2.api.PointSource.PointSource.__init__(), exahype2.api.RefineErasePointwisely.RefineErasePointwisely.__init__(), exahype2.api.VolumetricSource.VolumetricSource.__init__(), and exahype2.api.blockstructured.SommerfeldBoundaryConditions.SommerfeldBoundaryConditions.__init__().
|
static |
Definition at line 36 of file RefineErasePointwisely.py.