![]() |
MoCSI API Reference
|
#include <GridBase.h>


Public Member Functions | |
| std::vector< std::unique_ptr< GenericElement< T > > > & | getCells () |
| virtual void | createGrid ()=0 |
| void | setMesh (std::shared_ptr< ShapeBase< T > > mesh) |
| Sets the bounding surface mesh for the object, if a mesh is used. | |
| int | getGridSize () const |
| GridBase () | |
| Default Constructor. | |
| GridBase (SimulationClassBase< T > *sim_ptr, std::shared_ptr< ShapeBase< T > > mesh_ptr) | |
| Constructor for the empty grid class, as each concrete grid needs to be built differently. | |
| ~GridBase ()=default | |
Protected Attributes | |
| bool | can_contain_nullptrs {false} |
| int | grid_size {-1} |
| std::shared_ptr< ShapeBase< T > > | m_poly_mesh {} |
| SimulationClassBase< T > * | sim {} |
| std::vector< std::unique_ptr< GenericElement< T > > > | all_cells {} |
Grid abstract base class for the finite element method. All grid implementations should inherit from this class
| GridBase< T >::GridBase | ( | ) |
Default Constructor.
| GridBase< T >::GridBase | ( | SimulationClassBase< T > * | sim_ptr, |
| std::shared_ptr< ShapeBase< T > > | mesh_ptr | ||
| ) |
Constructor for the empty grid class, as each concrete grid needs to be built differently.
| sim_ptr | Pointer to the sim class. |
Implemented in GridOneDim< T >.
|
inline |
Sets the bounding surface mesh for the object, if a mesh is used.
| mesh | Pointer to the ShapeHandler object that manages meshes describing the shape of the object. |
|
protected |