3from .InitialCondition
import InitialCondition
11 Set the initial condition within cells which the mesh refinement creates
13 Same as InitialCondition, i.e. the action set invokes the solver's
14 exahype2.api.InitPointWisely term per volume, but it plugs into
15 createCell() instead of touchCellFirstTime(). It hence initialises
16 exactly those cells which a mesh sweep adds to the mesh, while existing
17 cells keep their data.
24 @param solver: exahype2.api.Solver
25 Has to have an InitPointWisely PDE term registered.
28 C++ boolean expression, evaluated per new cell.
34 if operation_name == peano4.api.solversteps.ActionSet.OPERATION_CREATE_CELL:
38 peano4.api.solversteps.ActionSet.OPERATION_TOUCH_CELL_FIRST_TIME
41 "touchCellFirstTime(...)---InitialCondition",
42 "createCell(...)---InitialiseNewCells",
48 if operation_name == peano4.api.solversteps.ActionSet.OPERATION_CREATE_CELL:
53 return __name__.replace(
".py",
"").replace(
".",
"_")
Fill a Finite Volume patch's initial condition, one volume at a time, by calling the solver's exahype...
Set the initial condition within cells which the mesh refinement creates.
get_body_of_operation(self, operation_name)
Return actual C++ code snippets to be inserted into C++ code.
get_action_set_name(self)
You should replicate this function in each subclass, so you get meaningful action set names (otherwis...
get_guard_of_operation(self, operation_name)
Return the guard of an operation.
__init__(self, solver, guard)