Base class for geometry for managing tri-surfaces, geometry motion, and surface physical properties. More...
Inheritance diagram for geometry:
Collaboration diagram for geometry:Public Member Functions | |
| TypeInfo ("geometry") | |
| Type info. More... | |
| geometry (systemControl &control, const property &prop) | |
| Construct from controlSystem and property, for reading from file. More... | |
| geometry (systemControl &control, const property &prop, const multiTriSurface &triSurface, const wordVector &motionCompName, const wordVector &propName) | |
| Construct from components. More... | |
| geometry (systemControl &control, const property &prop, const dictionary &dict, const multiTriSurface &triSurface, const wordVector &motionCompName, const wordVector &propName) | |
| Construct from components and dictionary that contains motionModel. More... | |
| virtual | ~geometry ()=default |
| Destructor. More... | |
| create_vCtor (geometry, systemControl,(systemControl &control, const property &prop),(control, prop)) | |
| Virtual constructor. More... | |
| 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)) | |
| Virtual constructor. More... | |
| auto | size () const |
| Size of tri-surface. More... | |
| auto | numPoints () const |
| Number of points in the set of surface walls. More... | |
| auto | numTriangles () const |
| Number of triangles in the set of surface walls. More... | |
| const auto & | points () const |
| Access to the points. More... | |
| const auto & | vertices () const |
| Access to the vertices. More... | |
| auto | getTriangleAccessor () const |
| Obtain an object for accessing triangles. More... | |
| auto & | surface () |
| Surface. More... | |
| const auto & | surface () const |
| Surface. More... | |
| realx3TriSurfaceField_D & | contactForceWall () |
| Access to contact force. More... | |
| const realx3TriSurfaceField_D & | contactForceWall () const |
| Access to contact force. More... | |
| const auto & | wallProperty () const |
| Access to property. More... | |
| const repository & | owner () const |
| Owner repository. More... | |
| repository & | owner () |
| Owner repository. More... | |
| auto | path () |
| Path to the repository folder. More... | |
| virtual word | motionModelTypeName () const =0 |
| The name of motion model. More... | |
| virtual const int8Vector_HD & | triMotionIndex () const =0 |
| Motion model index of triangles. More... | |
| virtual const int8Vector_HD & | pointMotionIndex () const =0 |
| Motion model index of points. More... | |
| const int8TriSurfaceField_D & | propertyId () const |
| Property ide of triangles. More... | |
| bool | beforeIteration () override |
| Operations before each iteration. More... | |
| bool | afterIteration () override |
| Operations after each iteration. More... | |
| bool | write () const |
| write More... | |
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 () |
| Find property id of each triangle based on the supplied material name and the surface wall that the triangle belongs to. More... | |
| void | zeroForce () |
| Initialize contact force to zero. More... | |
Protected Attributes | |
| const property & | wallProperty_ |
| Const reference to physical property of materials. More... | |
| repository & | geometryRepository_ |
| Repository to store geometry data at each simulation moment. More... | |
| multiTriSurface & | triSurface_ |
| All triangles in the set of wall surfaces. More... | |
| wordField & | motionComponentName_ |
| The name of motion component of each wall surface. More... | |
| wordField & | materialName_ |
| Material name of each wall surface More... | |
| int8TriSurfaceField_D & | propertyId_ |
| Property id of each triangle in the set of wall surfaces. More... | |
| realx3TriSurfaceField_D & | contactForceWall_ |
| Contact force on each triangle in the set of wall surfaces. More... | |
| realx3TriSurfaceField_D & | stressWall_ |
| Stress on ech triangle in the set of wall surfaces. More... | |
Protected Attributes inherited from demComponent | |
| word | componentName_ |
| systemControl & | control_ |
| Timers | timers_ |
Base class for geometry for managing tri-surfaces, geometry motion, and surface physical properties.
Definition at line 43 of file geometry.hpp.
| geometry | ( | systemControl & | control, |
| const property & | prop | ||
| ) |
Construct from controlSystem and property, for reading from file.
Definition at line 57 of file geometry.cpp.
References fatalExit.
| 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 | ||
| ) |
Construct from components and dictionary that contains motionModel.
Definition at line 214 of file geometry.cpp.
|
virtualdefault |
Destructor.
|
protected |
Find property id of each triangle based on the supplied material name and the surface wall that the triangle belongs to.
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:
|
inlineprotected |
Initialize contact force to zero.
Definition at line 82 of file geometry.hpp.
References geometry::contactForceWall_, and pFlow::zero3.
| TypeInfo | ( | "geometry" | ) |
Type info.
| create_vCtor | ( | geometry | , |
| systemControl | , | ||
| (systemControl &control, const property &prop) | , | ||
| (control, prop) | |||
| ) |
Virtual constructor.
| 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) | |||
| ) |
Virtual constructor.
|
inline |
Size of tri-surface.
Definition at line 148 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:
|
inline |
Number of points in the set of surface walls.
Definition at line 155 of file geometry.hpp.
References triSurface::numPoints(), and geometry::triSurface_.
Here is the call graph for this function:
|
inline |
Number of triangles in the set of surface walls.
Definition at line 162 of file geometry.hpp.
References geometry::size().
Here is the call graph for this function:
|
inline |
Access to the points.
Definition at line 169 of file geometry.hpp.
References triSurface::points(), and geometry::triSurface_.
Here is the call graph for this function:
|
inline |
Access to the vertices.
Definition at line 176 of file geometry.hpp.
References geometry::triSurface_, and triSurface::vertices().
Here is the call graph for this function:
|
inline |
Obtain an object for accessing triangles.
Definition at line 182 of file geometry.hpp.
References triSurface::getTriangleAccessor(), and geometry::triSurface_.
Here is the call graph for this function:
|
inline |
Surface.
Definition at line 188 of file geometry.hpp.
References geometry::triSurface_.
Referenced by geometry::findPropertyId(), and interactionBase::surface().
Here is the caller graph for this function:
|
inline |
|
inline |
Access to contact force.
Definition at line 201 of file geometry.hpp.
References geometry::contactForceWall_.
|
inline |
Access to contact force.
Definition at line 208 of file geometry.hpp.
References geometry::contactForceWall_.
|
inline |
Access to property.
Definition at line 214 of file geometry.hpp.
References geometry::wallProperty_.
|
inline |
Owner repository.
Definition at line 221 of file geometry.hpp.
References geometry::geometryRepository_.
Referenced by geometry::path(), and geometry::write().
Here is the caller graph for this function:
|
inline |
Owner repository.
Definition at line 228 of file geometry.hpp.
References geometry::geometryRepository_.
|
inline |
Path to the repository folder.
Definition at line 234 of file geometry.hpp.
References geometry::owner(), and repository::path().
Here is the call graph for this function:
|
pure virtual |
The name of motion model.
Implemented in geometryMotion< MotionModelType >.
Referenced by interaction::create().
Here is the caller graph for this function:
|
pure virtual |
Motion model index of triangles.
Implemented in geometryMotion< MotionModelType >.
|
pure virtual |
Motion model index of points.
Implemented in geometryMotion< MotionModelType >.
|
inline |
Property ide of triangles.
Definition at line 252 of file geometry.hpp.
References geometry::propertyId_.
|
overridevirtual |
Operations before each iteration.
Implements demComponent.
Reimplemented in geometryMotion< MotionModelType >.
Definition at line 274 of file geometry.cpp.
|
overridevirtual |
Operations after each iteration.
Implements demComponent.
Reimplemented in geometryMotion< MotionModelType >.
Definition at line 281 of file geometry.cpp.
References LAMBDA_HD.
|
inline |
write
Definition at line 266 of file geometry.hpp.
References geometry::owner(), and repository::write().
Here is the call graph for this function:
|
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:
|
static |
Definition at line 302 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:
|
protected |
Const reference to physical property of materials.
Definition at line 52 of file geometry.hpp.
Referenced by geometry::findPropertyId(), and geometry::wallProperty().
|
protected |
Repository to store geometry data at each simulation moment.
Definition at line 55 of file geometry.hpp.
Referenced by geometry::owner().
|
protected |
All triangles in the set of wall surfaces.
Definition at line 58 of file geometry.hpp.
Referenced by geometry::getTriangleAccessor(), geometry::numPoints(), geometry::points(), geometry::size(), geometry::surface(), and geometry::vertices().
|
protected |
The name of motion component of each wall surface.
Definition at line 61 of file geometry.hpp.
|
protected |
Material name of each wall surface
Definition at line 64 of file geometry.hpp.
Referenced by geometry::findPropertyId().
|
protected |
Property id of each triangle in the set of wall surfaces.
Definition at line 67 of file geometry.hpp.
Referenced by geometry::findPropertyId(), and geometry::propertyId().
|
protected |
Contact force on each triangle in the set of wall surfaces.
Definition at line 70 of file geometry.hpp.
Referenced by geometry::contactForceWall(), and geometry::zeroForce().
|
protected |
Stress on ech triangle in the set of wall surfaces.
Definition at line 73 of file geometry.hpp.