Go to the documentation of this file.
44 for(
int32 i=0; i<surfSize; i++)
46 propId.push_back(pId);
78 "motionComponentName",
126 if(!findPropertyId())
155 motionComponentName_(
158 "motionComponentName",
207 if(!findPropertyId())
235 auto motionDictPtr = IOobject::make<dictionary>
248 word model = motionDictPtr().getObject<
dictionary>().getVal<word>(
"motionModel");
253 if( systemControlvCtorSelector_.search(geomModel) )
255 auto objPtr = systemControlvCtorSelector_[geomModel] (control, prop);
264 <<
"Avaiable ones are: \n\n"
266 systemControlvCtorSelector_
284 auto Force = contactForceWall_.deviceVectorAll();
285 auto area = triSurface_.area().deviceVectorAll();
286 auto stress = stressWall_.deviceVectorAll();
287 auto numTri =triSurface_.size();
290 Kokkos::parallel_for(
291 "geometry::calculateStress",
294 stress[i] = Force[i]/area[i];
317 if( dictionaryvCtorSelector_.search(geomModel) )
319 auto objPtr = dictionaryvCtorSelector_[geomModel]
336 <<
"Avaiable ones are: \n\n"
338 dictionaryvCtorSelector_
wordField & materialName_
Material name of each wall surface
const char * motionModelFile__
bool findPropertyId()
Find property id of each triangle based on the supplied material name and the surface wall that the t...
static uniquePtr< geometry > create(systemControl &control, const property &prop)
iOstream & printKeys(iOstream &os, const wordHashMap< T > &m)
T & emplaceObject(const objectFile &objf, Args &&... args)
const property & wallProperty_
Const reference to physical property of materials.
iOstream & endl(iOstream &os)
Add newline and flush stream.
bool afterIteration() override
Operations after each iteration.
#define fatalErrorInFunction
word angleBracketsNames(const word &w1, const word &w2)
#define ForAll(i, container)
bool beforeIteration() override
Operations before each iteration.
bool nameToIndex(const word &name, uint32 &idx) const
Get the name of material in index idx Return true, if the name found, otherwise false.
virtual fileSystem path() const
T getVal(const word &keyword) const
property holds the pure properties of materials.
const repository & geometry() const
Base class for geometry for managing tri-surfaces, geometry motion, and surface physical properties.
base for geometry that manages control
int8TriSurfaceField_D & propertyId_
Property id of each triangle in the set of wall surfaces.
const char * geometryRepository_
geometry(systemControl &control, const property &prop)
Construct from controlSystem and property, for reading from file.