Go to the documentation of this file.
62 ).subDict(typeName +
"Coeffs")
80 UName_(dynamicMeshCoeffs_.lookupOrDefault<
word>(
"UName",
"U"))
87 <<
" but the current mesh has " <<
nPoints()
97 if ((cellZoneName !=
"none") && (cellSetName !=
"none"))
100 <<
"Either cellZone OR cellSet can be supplied, but not both. "
101 <<
"If neither is supplied, all cells will be included"
107 if (cellZoneName !=
"none")
109 Info<<
"Applying solid body motion to cellZone " << cellZoneName
117 <<
"Unable to find cellZone " << cellZoneName
118 <<
". Valid cellZones are:"
126 if (cellSetName !=
"none")
128 Info<<
"Applying solid body motion to cellSet " << cellSetName
141 Info<<
"Applying solid body motion to entire mesh" <<
endl;
151 label cellI = cellIDs[i];
159 movePts[pointI] =
true;
190 static bool hasWarned =
false;
198 SBMFPtr_().transformation(),
205 pointField transformedPts(undisplacedPoints_);
210 SBMFPtr_().transformation(),
218 if (foundObject<volVectorField>(UName_))
229 <<
"Did not find volVectorField " << UName_
230 <<
" Not updating " << UName_ <<
"boundary conditions."
~solidBodyMotionFvMesh()
Destructor.
vectorField pointField
pointField is a vectorField.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A class for handling words, derived from string.
autoPtr< BasicCompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const typename BasicCompressibleTurbulenceModel::transportModel &transport, const word &propertiesName)
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const cellList & cells() const
Abstract base class for geometry and/or topology changing fvMesh.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dictionary dynamicMeshCoeffs_
Dictionary of motion control parameters.
dimensionSet transform(const dimensionSet &)
Constant dispersed-phase particle diameter model.
fileName objectPath() const
Return complete path + object name.
labelList pointIDs_
Points to move when cell zone is supplied.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
solidBodyMotionFvMesh(const solidBodyMotionFvMesh &)
Disallow default bitwise copy construct.
Pre-declare SubField and related Field type.
Base class for defining solid-body motions.
virtual bool update()
Update the mesh for both mesh motion and topology change.
Macros for easy insertion into run-time selection tables.
bool movePoints()
Do what is neccessary if the mesh has moved.
pointIOField undisplacedPoints_
The reference points which are transformed.
A collection of cell labels.
label findZoneID(const word &zoneName) const
Find zone index given a name.
wordList names() const
Return a list of zone names.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual const faceList & faces() const
Return raw faces.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
U correctBoundaryConditions()
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label k
Boltzmann constant.
const dimensionedScalar c
Speed of light in a vacuum.
A List with indirect addressing.
A face is a list of labels corresponding to mesh vertices.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
void size(const label)
Override size to be inconsistent with allocated storage.
Generic GeometricField class.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
A cell is defined as a list of faces with extra functionality.
bool moveAllCells_
Flag to indicate whether all cells should move.
void set(entry *)
Assign a new entry, overwrite any existing entry.