|
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.AdaptivityCriterion.AdaptivityCriterion | |
| __init__ (self, str name, str implementation=None, bool stateless=False) | |
| 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 = "refineErasePointwisely" |
Additional Inherited Members | |
| Data Fields inherited from exahype2.api.PDETerm.PDETerm | |
| name = name | |
| implementation = implementation | |
| stateless = 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 the unknowns, followed by the auxiliary variables of the solver.
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. |
Definition at line 45 of file RefineErasePointwisely.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, and NAME.
Referenced by __init__().


|
static |
Definition at line 43 of file RefineErasePointwisely.py.
Referenced by __init__(), and exahype2.api.VolumetricSource.VolumetricSource.__init__().
|
static |
Definition at line 36 of file RefineErasePointwisely.py.