# PhasicFlow: geometry Class Reference

geometry Class Referenceabstract
Inheritance diagram for geometry:
[legend]
Collaboration diagram for geometry:
[legend]

## Public Member Functions

| TypeInfo ("geometry")
| geometry (systemControl &control, const property &prop)
| geometry (systemControl &control, const property &prop, const multiTriSurface &triSurface, const wordVector &motionCompName, const wordVector &propName)
| geometry (systemControl &control, const property &prop, const dictionary &dict, const multiTriSurface &triSurface, const wordVector &motionCompName, const wordVector &propName)
virtual | ~geometry ()=default
| create_vCtor (geometry, systemControl,(systemControl &control, const property &prop),(control, prop))
| create_vCtor (geometry, dictionary,(systemControl &control, const property &prop, const dictionary &dict, const multiTriSurface &triSurface, const wordVector &motionCompName, const wordVector &propName),(control, prop, dict, triSurface, motionCompName, propName))
auto | size () const
auto | numPoints () const
auto | numTriangles () const
const auto & | points () const
const auto & | vertices () const
auto | getTriangleAccessor () const
auto & | surface ()
const auto & | surface () const
realx3TriSurfaceField_D & | contactForceWall ()
const realx3TriSurfaceField_D & | contactForceWall () const
const auto & | wallProperty () const
const repository & | owner () const
repository & | owner ()
auto | path ()
virtual word | motionModelTypeName () const =0
virtual const int8Vector_HD & | triMotionIndex () const =0
virtual const int8Vector_HD & | pointMotionIndex () const =0
const int8TriSurfaceField_D & | propertyId () const
bool | beforeIteration () override
bool | afterIteration () override
bool | write () const
Public Member Functions inherited from demGeometry
| demGeometry (systemControl &control)
Public Member Functions inherited from demComponent
| TypeInfo ("demComponent")
| demComponent (const word &name, systemControl &control)
virtual | ~demComponent ()=default
const auto & | control () const
auto & | control ()
real | dt () const
real | currentTime () const
auto & | timers ()
const auto & | timers () const
virtual bool | iterate ()=0

## Static Public Member Functions

static uniquePtr< geometry > | create (systemControl &control, const property &prop)
static uniquePtr< geometry > | create (systemControl &control, const property &prop, const dictionary &dict, const multiTriSurface &triSurface, const wordVector &motionCompName, const wordVector &propName)

## Protected Member Functions

bool | findPropertyId ()
void | zeroForce ()

## Protected Attributes

const property & | wallProperty_
repository & | geometryRepository_
multiTriSurface & | triSurface_
wordField & | motionComponentName_
wordField & | materialName_
int8TriSurfaceField_D & | propertyId_
realx3TriSurfaceField_D & | contactForceWall_
realx3TriSurfaceField_D & | stressWall_
Protected Attributes inherited from demComponent
word | componentName_
systemControl & | control_
Timers | timers_

## Detailed Description

Definition at line 37 of file geometry.hpp.

## Constructor & Destructor Documentation

## geometry() [1/3]

geometry | ( | systemControl & | control,
|  | const property & | prop
| ) |  |

Definition at line 57 of file geometry.cpp.

References fatalExit.

## geometry() [2/3]

geometry | ( | systemControl & | control,
|  | const property & | prop,
|  | const multiTriSurface & | triSurface,
|  | const wordVector & | motionCompName,
|  | const wordVector & | propName
| ) |  |

Definition at line 133 of file geometry.cpp.

References fatalExit.

## geometry() [3/3]

geometry | ( | systemControl & | control,
|  | const property & | prop,
|  | const dictionary & | dict,
|  | const multiTriSurface & | triSurface,
|  | const wordVector & | motionCompName,
|  | const wordVector & | propName
| ) |  |

Definition at line 214 of file geometry.cpp.

## ~geometry()

virtual ~geometry | ( |  | ) |

virtualdefault

## Member Function Documentation

## findPropertyId()

bool findPropertyId | ( |  | ) |

protected

Definition at line 25 of file geometry.cpp.

References Vector< T, Allocator >::clear(), pFlow::endl(), fatalErrorInFunction, ForAll, geometry::materialName_, property::nameToIndex(), geometry::propertyId_, geometry::surface(), and geometry::wallProperty_.

Here is the call graph for this function:

## zeroForce()

void zeroForce | ( |  | ) |

inlineprotected

Definition at line 65 of file geometry.hpp.

References geometry::contactForceWall_, and pFlow::zero3.

Referenced by geometry::beforeIteration().

Here is the caller graph for this function:

## TypeInfo()

TypeInfo | ( | "geometry" |  | ) |

## create_vCtor() [1/2]

create_vCtor | ( | geometry | ,
|  | systemControl | ,
|  | (systemControl &control, const property &prop) | ,
|  | (control, prop) |
| ) |  |

## create_vCtor() [2/2]

create_vCtor | ( | geometry | ,
|  | dictionary | ,
|  | (systemControl &control, const property &prop, const dictionary &dict, const multiTriSurface &triSurface, const wordVector &motionCompName, const wordVector &propName) | ,
|  | (control, prop, dict, triSurface, motionCompName, propName) |
| ) |  |

## size()

auto size | ( |  | ) | const

inline

Definition at line 126 of file geometry.hpp.

References triSurface::size(), and geometry::triSurface_.

Referenced by geometry::numTriangles().

Here is the call graph for this function:
Here is the caller graph for this function:

## numPoints()

auto numPoints | ( |  | ) | const

inline

Definition at line 132 of file geometry.hpp.

References triSurface::numPoints(), and geometry::triSurface_.

Here is the call graph for this function:

## numTriangles()

auto numTriangles | ( |  | ) | const

inline

Definition at line 138 of file geometry.hpp.

References geometry::size().

Here is the call graph for this function:

## points()

const auto& points | ( |  | ) | const

inline

Definition at line 144 of file geometry.hpp.

References triSurface::points(), and geometry::triSurface_.

Here is the call graph for this function:

## vertices()

const auto& vertices | ( |  | ) | const

inline

Definition at line 150 of file geometry.hpp.

References geometry::triSurface_, and triSurface::vertices().

Here is the call graph for this function:

## getTriangleAccessor()

auto getTriangleAccessor | ( |  | ) | const

inline

Definition at line 155 of file geometry.hpp.

References triSurface::getTriangleAccessor(), and geometry::triSurface_.

Here is the call graph for this function:

## surface() [1/2]

auto& surface | ( |  | ) |

inline

Definition at line 160 of file geometry.hpp.

References geometry::triSurface_.

Referenced by geometry::findPropertyId(), and interactionBase::surface().

Here is the caller graph for this function:

## surface() [2/2]

const auto& surface | ( |  | ) | const

inline

Definition at line 165 of file geometry.hpp.

References geometry::triSurface_.

## contactForceWall() [1/2]

realx3TriSurfaceField_D& contactForceWall | ( |  | ) |

inline

Definition at line 171 of file geometry.hpp.

References geometry::contactForceWall_.

## contactForceWall() [2/2]

const realx3TriSurfaceField_D& contactForceWall | ( |  | ) | const

inline

Definition at line 177 of file geometry.hpp.

References geometry::contactForceWall_.

## wallProperty()

const auto& wallProperty | ( |  | ) | const

inline

Definition at line 182 of file geometry.hpp.

References geometry::wallProperty_.

## owner() [1/2]

const repository& owner | ( |  | ) | const

inline

Definition at line 189 of file geometry.hpp.

References geometry::geometryRepository_.

Referenced by geometry::path(), and geometry::write().

Here is the caller graph for this function:

## owner() [2/2]

repository& owner | ( |  | ) |

inline

Definition at line 195 of file geometry.hpp.

References geometry::geometryRepository_.

## path()

auto path | ( |  | ) |

inline

Definition at line 200 of file geometry.hpp.

References geometry::owner(), and repository::path().

Here is the call graph for this function:

## motionModelTypeName()

virtual word motionModelTypeName | ( |  | ) | const

pure virtual

Implemented in geometryMotion< MotionModelType >.

Referenced by interaction::create().

Here is the caller graph for this function:

## triMotionIndex()

virtual const int8Vector_HD& triMotionIndex | ( |  | ) | const

pure virtual

Implemented in geometryMotion< MotionModelType >.

## pointMotionIndex()

virtual const int8Vector_HD& pointMotionIndex | ( |  | ) | const

pure virtual

Implemented in geometryMotion< MotionModelType >.

## propertyId()

const int8TriSurfaceField_D& propertyId | ( |  | ) | const

inline

Definition at line 214 of file geometry.hpp.

References geometry::propertyId_.

## beforeIteration()

bool beforeIteration | ( |  | ) |

inlineoverridevirtual

Implements demComponent.

Reimplemented in geometryMotion< MotionModelType >.

Definition at line 219 of file geometry.hpp.

References geometry::zeroForce().

Referenced by geometryMotion< MotionModelType >::beforeIteration().

Here is the call graph for this function:
Here is the caller graph for this function:

## afterIteration()

bool afterIteration | ( |  | ) |

inlineoverridevirtual

Implements demComponent.

Reimplemented in geometryMotion< MotionModelType >.

Definition at line 226 of file geometry.hpp.

References triSurface::area(), geometry::contactForceWall_, VectorSingle< T, MemorySpace >::deviceVectorAll(), LAMBDA_HD, triSurface::size(), geometry::stressWall_, and geometry::triSurface_.

Referenced by geometryMotion< MotionModelType >::afterIteration().

Here is the call graph for this function:
Here is the caller graph for this function:

## write()

bool write | ( |  | ) | const

inline

Definition at line 245 of file geometry.hpp.

References geometry::owner(), and repository::write().

Here is the call graph for this function:

## create() [1/2]

pFlow::uniquePtr< pFlow::geometry > create | ( | systemControl & | control,
|  | const property & | prop
| ) |  |

static

Definition at line 229 of file geometry.cpp.

References pFlow::angleBracketsNames(), endREPORT, fatalError, fatalExit, systemControl::geometry(), greenText, pFlow::motionModelFile__, repository::path(), pFlow::printKeys(), objectFile::READ_ALWAYS, REPORT, objectFile::WRITE_NEVER, and yellowText.

Here is the call graph for this function:

## create() [2/2]

pFlow::uniquePtr< pFlow::geometry > create | ( | systemControl & | control,
|  | const property & | prop,
|  | const dictionary & | dict,
|  | const multiTriSurface & | triSurface,
|  | const wordVector & | motionCompName,
|  | const wordVector & | propName
| ) |  |

static

Definition at line 275 of file geometry.cpp.

References pFlow::angleBracketsNames(), endREPORT, fatalError, fatalExit, dictionary::getVal(), greenText, pFlow::printKeys(), REPORT, and yellowText.

Here is the call graph for this function:

## Member Data Documentation

## wallProperty_

const property& wallProperty_

protected

Definition at line 43 of file geometry.hpp.

Referenced by geometry::findPropertyId(), and geometry::wallProperty().

## geometryRepository_

repository& geometryRepository_

protected

Definition at line 46 of file geometry.hpp.

Referenced by geometry::owner().

## triSurface_

multiTriSurface& triSurface_

protected

Definition at line 49 of file geometry.hpp.

Referenced by geometry::afterIteration(), geometry::getTriangleAccessor(), geometry::numPoints(), geometry::points(), geometry::size(), geometry::surface(), and geometry::vertices().

## motionComponentName_

wordField& motionComponentName_

protected

Definition at line 52 of file geometry.hpp.

## materialName_

wordField& materialName_

protected

Definition at line 55 of file geometry.hpp.

Referenced by geometry::findPropertyId().

## propertyId_

int8TriSurfaceField_D& propertyId_

protected

Definition at line 57 of file geometry.hpp.

Referenced by geometry::findPropertyId(), and geometry::propertyId().

## contactForceWall_

realx3TriSurfaceField_D& contactForceWall_

protected

Definition at line 59 of file geometry.hpp.

Referenced by geometry::afterIteration(), geometry::contactForceWall(), and geometry::zeroForce().

## stressWall_

realx3TriSurfaceField_D& stressWall_

protected

Definition at line 61 of file geometry.hpp.

Referenced by geometry::afterIteration().

The documentation for this class was generated from the following files:

- src/Geometry/geometry/geometry.hpp
- src/Geometry/geometry/geometry.cpp