LBIBCell
|
class representing the external geometry More...
#include <Geometry.hpp>
Public Member Functions | |
Geometry (const std::string &filename) | |
Geometry constructs the geometry of the simulation. More... | |
~Geometry () | |
~Geometry Plain. | |
void | writeGeometry (const std::string &fileName) const |
writeGeometry Writes the geometry to the file More... | |
const std::map< unsigned int, std::shared_ptr < nodes::GeometryNode > > & | getGeometryNodes () const |
Getter for the geometry nodes. More... | |
const std::vector < std::shared_ptr < nodes::GeometryNode > > | getGeometryNodesWithinRadius (const double x, const double y, const double radius) const |
getGeometryNodesWithinRadius Range query More... | |
const std::vector < std::shared_ptr < nodes::GeometryNode > > | getGeometryNodesWithinRadiusWithAvoidance (const double x, const double y, const double radius, const unsigned int avoidDomainID) const |
getGeometryNodesWithinRadiusWithAvoidance Range query, but only nodes with domainID different from avoidDomainID More... | |
std::shared_ptr < nodes::GeometryNode > | getGeometryNodesWithinRadiusWithAvoidanceClosest (const double x, const double y, const double radius, const unsigned int avoidDomainID) const |
getGeometryNodesWithinRadiusWithAvoidanceClosest Return closest GeometryNode, but only nodes with domainID different from avoidDomainID More... | |
const std::vector < std::shared_ptr< Connection > > & | getConnections () const |
getConnections Getter for connections More... | |
unsigned int | addGeometryNode (const double x, const double y) |
addGeometryNode Add a GeometryNode. The NodeID is bumped automatically. More... | |
unsigned int | removeGeometryNode (const unsigned int nodeid) |
removeGeometryNode Removes the GeometryNode with nodeid. One of the connections is removed, the other is connected accordingly. More... | |
void | eraseConnection (std::shared_ptr< Connection > toDelete) |
eraseConnection Erase the connection. More... | |
void | addConnection (std::shared_ptr< nodes::GeometryNode > p1, std::shared_ptr< nodes::GeometryNode > p2, const std::map< std::string, std::vector< std::string > > boundaryConditionDescriptor, const unsigned int domainIdentifier) |
addConnection Add a Connection. More... | |
void | moveGeometryNodes () |
Geometry::moveGeometryNodes moves the *GeometryNode*s according to the local velocity field. | |
bool | checkGeometryIntegrity () const |
checkGeometryIntegrity More... | |
void | invalidateRangeQueryDataStructure () |
invalidateRangeQueryDataStructure Sets the internal flag to false. | |
void | reconstructRangeQueryDataStructure () const |
reconstructRangeQueryDataStructure | |
std::map< unsigned int, unsigned int > | getCellTypeTrackerMap (void) const |
Returns a reference to the cellTypeTrackerMap. More... | |
class representing the external geometry
Definition at line 68 of file Geometry.hpp.
|
explicit |
Geometry constructs the geometry of the simulation.
filename | the filename where the geometry is specified |
Definition at line 56 of file Geometry.cpp.
void LbmLib::geometry::Geometry::addConnection | ( | std::shared_ptr< nodes::GeometryNode > | p1, |
std::shared_ptr< nodes::GeometryNode > | p2, | ||
const std::map< std::string, std::vector< std::string > > | boundaryConditionDescriptor, | ||
const unsigned int | domainIdentifier | ||
) |
addConnection Add a Connection.
p1 | The first GeometryNode. |
p2 | The second GeometryNode. |
boundaryConditionDescriptor | |
domainIdentifier | The domainIdentifier. |
Definition at line 448 of file Geometry.cpp.
unsigned int LbmLib::geometry::Geometry::addGeometryNode | ( | const double | x, |
const double | y | ||
) |
addGeometryNode Add a GeometryNode. The NodeID is bumped automatically.
x | The x coordinate. |
y | The y coordinate. |
Definition at line 396 of file Geometry.cpp.
bool LbmLib::geometry::Geometry::checkGeometryIntegrity | ( | ) | const |
checkGeometryIntegrity
Definition at line 508 of file Geometry.cpp.
void LbmLib::geometry::Geometry::eraseConnection | ( | std::shared_ptr< Connection > | toDelete | ) |
eraseConnection Erase the connection.
toDelete | The pointer to the Connection which shall be deleted. |
Definition at line 486 of file Geometry.cpp.
std::map< unsigned int, unsigned int > LbmLib::geometry::Geometry::getCellTypeTrackerMap | ( | void | ) | const |
Returns a reference to the cellTypeTrackerMap.
Definition at line 552 of file Geometry.cpp.
const std::vector< std::shared_ptr< Connection > > & LbmLib::geometry::Geometry::getConnections | ( | ) | const |
getConnections Getter for connections
Definition at line 391 of file Geometry.cpp.
|
inline |
Getter for the geometry nodes.
Definition at line 92 of file Geometry.hpp.
const std::vector< std::shared_ptr< nodes::GeometryNode > > LbmLib::geometry::Geometry::getGeometryNodesWithinRadius | ( | const double | x, |
const double | y, | ||
const double | radius | ||
) | const |
getGeometryNodesWithinRadius Range query
x | The x coordinate. |
y | The ycoordinate. |
radius | The radius to search within. |
Definition at line 324 of file Geometry.cpp.
const std::vector< std::shared_ptr< nodes::GeometryNode > > LbmLib::geometry::Geometry::getGeometryNodesWithinRadiusWithAvoidance | ( | const double | x, |
const double | y, | ||
const double | radius, | ||
const unsigned int | avoidDomainID | ||
) | const |
getGeometryNodesWithinRadiusWithAvoidance Range query, but only nodes with domainID different from avoidDomainID
x | The x coordinate. |
y | The ycoordinate. |
avoidDomainID | The domainID to be avoided when returning *GeometryNode*s. |
radius | The radius to search within. |
Definition at line 341 of file Geometry.cpp.
std::shared_ptr< nodes::GeometryNode > LbmLib::geometry::Geometry::getGeometryNodesWithinRadiusWithAvoidanceClosest | ( | const double | x, |
const double | y, | ||
const double | radius, | ||
const unsigned int | avoidDomainID | ||
) | const |
getGeometryNodesWithinRadiusWithAvoidanceClosest Return closest GeometryNode, but only nodes with domainID different from avoidDomainID
x | The x coordinate. |
y | The ycoordinate. |
avoidDomainID | The domainID to be avoided when returning *GeometryNode*s. |
radius | The radius to search within. |
Definition at line 366 of file Geometry.cpp.
unsigned int LbmLib::geometry::Geometry::removeGeometryNode | ( | const unsigned int | nodeid | ) |
removeGeometryNode Removes the GeometryNode with nodeid. One of the connections is removed, the other is connected accordingly.
nodeid | The GeometryNode identifier. |
<
Definition at line 416 of file Geometry.cpp.
void LbmLib::geometry::Geometry::writeGeometry | ( | const std::string & | fileName | ) | const |
writeGeometry Writes the geometry to the file
fileName | the filename |
Definition at line 77 of file Geometry.cpp.