50 initialPoints_(p.localPoints()),
67 if (!dict.
found(
"value"))
72 if (dict.
found(
"initialPoints"))
78 initialPoints_ = p.localPoints();
94 initialPoints_(ptf.initialPoints_, mapper),
107 motion_(ptf.motion_),
108 initialPoints_(ptf.initialPoints_),
122 initialPoints_.autoMap(m);
140 initialPoints_.rmap(uSDoFptf.initialPoints_, addr);
155 bool firstIter =
false;
165 if (
db().foundObject<uniformDimensionedVectorField>(
"g"))
177 gravity*motion_.
mass(),
185 motion_.
transform(initialPoints_) - initialPoints_
199 initialPoints_.
writeEntry(
"initialPoints", os);
label timeIndex() const
Return current time index.
const Time & time() const
Return time.
bool updated() const
Return true if the boundary condition has already been updated.
A list of keyword definitions, which are a keyword followed by any number of values (e...
To & refCast(From &r)
Reference type cast template function.
scalar mass() const
Return the mass.
scalar deltaT0Value() const
Return old time step value.
Foam::pointPatchFieldMapper.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
const Type & value() const
Return const reference to value.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
point transform(const point &initialPoints) const
Transform the given initial state point by the current motion.
const objectRegistry & db() const
Return local objectRegistry.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
virtual void write(Ostream &) const
Write.
Pre-declare SubField and related Field type.
Foam::uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionedVector & g
void newTime()
Store the motion state at the beginning of the time-step.
scalar deltaTValue() const
Return time step value.
Basic pointPatch represents a set of points from the mesh.
void write(Ostream &) const
Write.
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
virtual void rmap(const pointPatchField< vector > &, const labelList &)
Reverse map the given pointPatchField onto this pointPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field< vector > vectorField
Specialisation of Field<T> for vector.
const DimensionedField< vector, pointMesh > & internalField() const
Return dimensioned internal field reference.
Mesh consisting of general polyhedral cells.
virtual void write(Ostream &) const
Write.
uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &)
Construct from patch and internal field.
virtual void rmap(const pointPatchField< Type > &, const labelList &)
Reverse map the given PointPatchField onto.
void update(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)
Symplectic integration of velocities, orientation and position.
label size() const
Return size.