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