|
Peano
|
Select the mesh entities of one level of the spacetree. More...


Public Member Functions | |
| __init__ (self, int level, domain_size) | |
| level: int Level of the spacetree, with 0 being the root. | |
| str | createVertexGuard (self) |
| C++ boolean expression over a peano4::datamanagement::VertexMarker called marker. | |
| str | createFaceGuard (self) |
| C++ boolean expression over a peano4::datamanagement::FaceMarker called marker. | |
| str | createCellGuard (self) |
| C++ boolean expression over a peano4::datamanagement::CellMarker called marker. | |
Public Member Functions inherited from peano4.api.toolbox.GridSelector.GridSelector | |
| str | createVertexStoreGuard (self) |
| C++ boolean expression over a peano4::datamanagement::VertexMarker called marker which decides whether a vertex's data is stored at the end of a mesh sweep. | |
| str | createFaceStoreGuard (self) |
| Counterpart of createVertexStoreGuard() for faces. | |
| str | createCellStoreGuard (self) |
| Counterpart of createVertexStoreGuard() for cells. | |
Protected Member Functions | |
| str | _guard (self) |
| Compare each entry of marker.h() with the size of a cell on the selected level. | |
Protected Attributes | |
| _level | |
| _mesh_size | |
Select the mesh entities of one level of the spacetree.
The root of the spacetree, i.e. the bounding box of the whole domain, is level 0. Each further level splits the cells of its parent into three along each axis, i.e. a cell on level l has the size domain_size/3^l. The guards select exactly the vertices, faces and cells of this size, no matter whether they are refined further or not. If the mesh is coarser than the level somewhere, the guards do not hold there.
The markers do not know their level, so the guards compare the mesh size h() of the vertex, face or cell with the size of a cell on the selected level. Different to FineGridSelector, the selection does not depend on the refinement state, i.e. it is the same in each and every mesh sweep.
Definition at line 6 of file FixedResolutionGridSelector.py.
| peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector.__init__ | ( | self, | |
| int | level, | ||
| domain_size | |||
| ) |
level: int Level of the spacetree, with 0 being the root.
domain_size: list of float Size of the computational domain along each axis, i.e. the same value as handed over to the project's global simulation parameters.
Definition at line 27 of file FixedResolutionGridSelector.py.
|
protected |
Compare each entry of marker.h() with the size of a cell on the selected level.
The tolerance is relative to this size, as the sizes become tiny on fine levels.
Definition at line 43 of file FixedResolutionGridSelector.py.
References peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector._mesh_size.
Referenced by peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector.createCellGuard(), peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector.createFaceGuard(), peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector.createVertexGuard(), solvers.aderdg.actionsets.AdaptivityCriterion.AdaptivityCriterion.get_body_of_operation(), solvers.aderdg.actionsets.HandleBoundary.HandleBoundary.get_body_of_operation(), solvers.aderdg.actionsets.InitialCondition.InitialCondition.get_body_of_operation(), solvers.aderdg.actionsets.PostprocessSolution.DoFWisePostprocessSolution.get_body_of_operation(), solvers.aderdg.actionsets.PostprocessSolution.CellWisePostprocessSolution.get_body_of_operation(), exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint.get_guard_of_operation(), api.ApplyPointWiselyToPatch.ApplyPointWiselyToPatch.get_guard_of_operation(), api.ApplyPointWiselyToPatch.ApplyPointWiselyToPatch.guard(), and api.ApplyPointWiselyToPatch.ApplyPointWiselyToPatch.guard().

| str peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector.createCellGuard | ( | self | ) |
C++ boolean expression over a peano4::datamanagement::CellMarker called marker.
Reimplemented from peano4.api.toolbox.GridSelector.GridSelector.
Definition at line 62 of file FixedResolutionGridSelector.py.
References solvers.aderdg.actionsets.AdaptivityCriterion.AdaptivityCriterion._guard, solvers.aderdg.actionsets.Correction.Correction._guard, solvers.aderdg.actionsets.HandleBoundary.HandleBoundary._guard, solvers.aderdg.actionsets.InitialCondition.InitialCondition._guard, solvers.aderdg.actionsets.PostprocessSolution.DoFWisePostprocessSolution._guard, solvers.aderdg.actionsets.PostprocessSolution.CellWisePostprocessSolution._guard, solvers.aderdg.actionsets.Prediction.Prediction._guard, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._guard, peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector._guard(), and api.ApplyPointWiselyToPatch.ApplyPointWiselyToPatch._guard.
Referenced by peano4.api.toolbox.GridSelector.GridSelector.createCellStoreGuard().


| str peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector.createFaceGuard | ( | self | ) |
C++ boolean expression over a peano4::datamanagement::FaceMarker called marker.
Reimplemented from peano4.api.toolbox.GridSelector.GridSelector.
Definition at line 59 of file FixedResolutionGridSelector.py.
References solvers.aderdg.actionsets.AdaptivityCriterion.AdaptivityCriterion._guard, solvers.aderdg.actionsets.Correction.Correction._guard, solvers.aderdg.actionsets.HandleBoundary.HandleBoundary._guard, solvers.aderdg.actionsets.InitialCondition.InitialCondition._guard, solvers.aderdg.actionsets.PostprocessSolution.DoFWisePostprocessSolution._guard, solvers.aderdg.actionsets.PostprocessSolution.CellWisePostprocessSolution._guard, solvers.aderdg.actionsets.Prediction.Prediction._guard, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._guard, peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector._guard(), and api.ApplyPointWiselyToPatch.ApplyPointWiselyToPatch._guard.
Referenced by peano4.api.toolbox.GridSelector.GridSelector.createFaceStoreGuard().


| str peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector.createVertexGuard | ( | self | ) |
C++ boolean expression over a peano4::datamanagement::VertexMarker called marker.
Reimplemented from peano4.api.toolbox.GridSelector.GridSelector.
Definition at line 56 of file FixedResolutionGridSelector.py.
References solvers.aderdg.actionsets.AdaptivityCriterion.AdaptivityCriterion._guard, solvers.aderdg.actionsets.Correction.Correction._guard, solvers.aderdg.actionsets.HandleBoundary.HandleBoundary._guard, solvers.aderdg.actionsets.InitialCondition.InitialCondition._guard, solvers.aderdg.actionsets.PostprocessSolution.DoFWisePostprocessSolution._guard, solvers.aderdg.actionsets.PostprocessSolution.CellWisePostprocessSolution._guard, solvers.aderdg.actionsets.Prediction.Prediction._guard, exahype2.api.blockstructured.LoadCheckpoint._LoadPatchesFromCheckpoint._guard, peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector._guard(), and api.ApplyPointWiselyToPatch.ApplyPointWiselyToPatch._guard.

|
protected |
Definition at line 40 of file FixedResolutionGridSelector.py.
|
protected |
Definition at line 41 of file FixedResolutionGridSelector.py.
Referenced by peano4.api.toolbox.FixedResolutionGridSelector.FixedResolutionGridSelector._guard().