|
LBIBCell
|
class responsible for generating the internal geometry representation More...
#include <GeometryHandler.hpp>
Public Member Functions | |
| GeometryHandler (const Geometry &geometry) | |
| GeometryHandler Constructs the simulation grid. More... | |
| void | moveLattice () |
| moveLattcie Updates the Lattice after the Geometric Points have been moved | |
| unsigned int | remeshBoundary () |
| If a Connection is too long, a GeometryNode is added and linked. More... | |
| void | coarsenBoundary () |
| If *Connection*s are too short, a GeometryNode is remove. | |
| ~GeometryHandler () | |
| ~GeometryHandler Destroyes all nodes. | |
| const std::vector< std::vector < nodes::PhysicalNode * > > & | getPhysicalNodes () const |
| getPhysicalNodes Getter method for the physical node grid More... | |
| const Geometry & | getGeometry () const |
| getter for the geometry More... | |
| const std::unordered_set < nodes::BoundaryNode * > & | getBoundaryNodes () const |
| Getter for the Boundary nodes. More... | |
| const std::map< unsigned int, double > | computeAreas () const |
| Compute the areas of the domains by using the domainIdentifiers. More... | |
| std::map< unsigned int, double > | computeAccumulatedDomainConcentrations (const std::string &name) const |
| Compute the accumulated concentrations of species name in all domains. More... | |
| void | cureLattice () |
| Cure the Lattice: update *BoundaryNode*s, DomainIdentifier, and IB connections. | |
| unsigned int | createGeometryNode (const double xpos, const double ypos) |
| Add a new GeometryNode. More... | |
| void | createConnection (std::shared_ptr< nodes::GeometryNode > const p1, std::shared_ptr< nodes::GeometryNode > const p2, const std::map< std::string, std::vector< std::string > > boundaryconditiondescriptor, const unsigned int domainidentifier) |
| Create a new connection. More... | |
| void | eraseConnection (std::shared_ptr< Connection > toErase) |
| Erases the Connection. More... | |
| const std::shared_ptr < nodes::GeometryNode > | returnGeometryNode (const unsigned int nodeID) const |
| returnGeometryNode More... | |
| void | checkLatticeIntegrity () |
| Check lattice integrity. | |
| void | checkBoundaryNodeIntegrity () |
| checkBoundaryNodeIntegrity Checks the integrity of the boundary node pairs. | |
| void | copyCellTypeToPhysicalNodes (std::map< unsigned int, unsigned int > &celltrackermap) |
| update the celltypes of all *PhysicalNode*s with domainid More... | |
| void | copyCellTypeToPhysicalNodes (unsigned int domainidentifier, unsigned int celltype) |
| update the celltypes of only *PhysicalNode*s with domainidentifier to celltype More... | |
| std::map< unsigned int, unsigned int > & | getCellTypeTrackerMap (void) |
| Returns a reference to the cellTypeTrackerMap. More... | |
| bool | checkGeometryIntegrity (void) const |
| checkGeometryIntegrity More... | |
class responsible for generating the internal geometry representation
Definition at line 46 of file GeometryHandler.hpp.
|
explicit |
GeometryHandler Constructs the simulation grid.
| geometry | The geometry |
Definition at line 51 of file GeometryHandler.cpp.
| bool LbmLib::geometry::GeometryHandler::checkGeometryIntegrity | ( | void | ) | const |
checkGeometryIntegrity
Definition at line 321 of file GeometryHandler.cpp.
| std::map< unsigned int, double > LbmLib::geometry::GeometryHandler::computeAccumulatedDomainConcentrations | ( | const std::string & | name | ) | const |
Compute the accumulated concentrations of species name in all domains.
| name | The species to look at. |
Definition at line 136 of file GeometryHandler.cpp.
| const std::map< unsigned int, double > LbmLib::geometry::GeometryHandler::computeAreas | ( | ) | const |
Compute the areas of the domains by using the domainIdentifiers.
Definition at line 101 of file GeometryHandler.cpp.
| void LbmLib::geometry::GeometryHandler::copyCellTypeToPhysicalNodes | ( | std::map< unsigned int, unsigned int > & | celltrackermap | ) |
update the celltypes of all *PhysicalNode*s with domainid
| celltrackermap | The map storing {domainID,cellType} |
Definition at line 267 of file GeometryHandler.cpp.
| void LbmLib::geometry::GeometryHandler::copyCellTypeToPhysicalNodes | ( | unsigned int | domainidentifier, |
| unsigned int | celltype | ||
| ) |
update the celltypes of only *PhysicalNode*s with domainidentifier to celltype
| domainidentifier | The affected domain. |
| celltype | The celltype to be set. |
Definition at line 303 of file GeometryHandler.cpp.
| void LbmLib::geometry::GeometryHandler::createConnection | ( | std::shared_ptr< nodes::GeometryNode > const | p1, |
| std::shared_ptr< nodes::GeometryNode > const | p2, | ||
| const std::map< std::string, std::vector< std::string > > | boundaryconditiondescriptor, | ||
| const unsigned int | domainidentifier | ||
| ) |
Create a new connection.
| p1 | The first GeometryNode. |
| p2 | The second GeometryNode. |
| boundaryconditiondescriptor | The boundary condition descriptor. |
| domainidentifier | The domain identifier. |
Definition at line 177 of file GeometryHandler.cpp.
| unsigned int LbmLib::geometry::GeometryHandler::createGeometryNode | ( | const double | xpos, |
| const double | ypos | ||
| ) |
Add a new GeometryNode.
| xpos | The x position. |
| ypos | The y position. |
Definition at line 172 of file GeometryHandler.cpp.
| void LbmLib::geometry::GeometryHandler::eraseConnection | ( | std::shared_ptr< Connection > | toErase | ) |
Erases the Connection.
| toErase | The Connection to be erased. |
Definition at line 188 of file GeometryHandler.cpp.
|
inline |
Getter for the Boundary nodes.
Definition at line 97 of file GeometryHandler.hpp.
| std::map< unsigned int, unsigned int > & LbmLib::geometry::GeometryHandler::getCellTypeTrackerMap | ( | void | ) |
Returns a reference to the cellTypeTrackerMap.
Definition at line 316 of file GeometryHandler.cpp.
|
inline |
getter for the geometry
Definition at line 89 of file GeometryHandler.hpp.
|
inline |
getPhysicalNodes Getter method for the physical node grid
Definition at line 80 of file GeometryHandler.hpp.
| unsigned int LbmLib::geometry::GeometryHandler::remeshBoundary | ( | ) |
If a Connection is too long, a GeometryNode is added and linked.
Definition at line 385 of file GeometryHandler.cpp.
| const std::shared_ptr< nodes::GeometryNode > LbmLib::geometry::GeometryHandler::returnGeometryNode | ( | const unsigned int | nodeID | ) | const |
returnGeometryNode
| nodeID |
Definition at line 193 of file GeometryHandler.cpp.