![]() |
MoCSI API Reference
|
Concrete implementation of a 1D grid on each facet of a 3D shape model (hereafter: pseudo 3D). More...
#include <GridOneDim.h>


Public Member Functions | |
| void | createGrid () override |
| Creation function for a pseudo 3D grid, assuming a shape model is given. True 1D geometries can be constructed by passing a one facet "shape model". Creates a number of cells specified by the number of facets times the number of numerical layers-1 (corresponding to the number of nodes). The shift by 1 is due to the 1D grids having a number of nodes that is equal to the number of cells + 1. | |
| T | calculateCellLength () |
| Calculates the uniform cell length from the specified simulation config parameters. | |
| GridOneDim (SimulationClassBase< T > *sim_ptr, std::shared_ptr< ShapeBase< T > > mesh_ptr) | |
| Constructor for a OneDimGrid object. | |
| ~GridOneDim ()=default | |
Public Member Functions inherited from GridBase< T > | |
| std::vector< std::unique_ptr< GenericElement< T > > > & | getCells () |
| 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 | |
Additional Inherited Members | |
Protected Attributes inherited from GridBase< T > | |
| 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 {} |
Concrete implementation of a 1D grid on each facet of a 3D shape model (hereafter: pseudo 3D).
| GridOneDim< T >::GridOneDim | ( | SimulationClassBase< T > * | sim_ptr, |
| std::shared_ptr< ShapeBase< T > > | mesh_ptr | ||
| ) |
Constructor for a OneDimGrid object.
| sim_ptr | Pointer to the sim class. |
|
default |
| T GridOneDim< T >::calculateCellLength | ( | ) |
Calculates the uniform cell length from the specified simulation config parameters.
| T | Numeric type used in the simulation (e.g., float, double). |
| std::runtime_error | Error thrown if user specifications are non-unique or not complete. |
|
overridevirtual |
Creation function for a pseudo 3D grid, assuming a shape model is given. True 1D geometries can be constructed by passing a one facet "shape model". Creates a number of cells specified by the number of facets times the number of numerical layers-1 (corresponding to the number of nodes). The shift by 1 is due to the 1D grids having a number of nodes that is equal to the number of cells + 1.
Implements GridBase< T >.