Go to the documentation of this file.
53 initialPoints_(
p.localPoints()),
70 if (!
dict.found(
"value"))
75 if (
dict.found(
"initialPoints"))
81 initialPoints_ =
p.localPoints();
89 const uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField& ptf,
91 const DimensionedField<vector, pointMesh>& iF,
92 const pointPatchFieldMapper& mapper
95 fixedValuePointPatchField<
vector>(ptf,
p, iF, mapper),
97 initialPoints_(ptf.initialPoints_, mapper),
110 motion_(ptf.motion_),
111 initialPoints_(ptf.initialPoints_),
143 initialPoints_.
rmap(uSDoFptf.initialPoints_, addr);
155 const Time& t =
mesh.time();
158 bool firstIter =
false;
159 if (curTimeIndex_ != t.timeIndex())
162 curTimeIndex_ = t.timeIndex();
180 gravity*motion_.
mass(),
188 motion_.
transform(initialPoints_) - initialPoints_
212 uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void autoMap(const pointPatchFieldMapper &)
virtual void rmap(const pointPatchField< vector > &, const labelList &)
virtual void updateCoeffs()
void autoMap(const FieldMapper &map, const bool applyFlip=true)
static constexpr const zero Zero
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
friend Ostream & operator(Ostream &, const Field< Type > &)
const objectRegistry & db() const
uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &)
Basic pointPatch represents a set of points from the mesh.
bool foundObject(const word &name, const bool recursive=false) const
Mesh consisting of general polyhedral cells.
Foam::pointPatchFieldMapper.
scalar deltaTValue() const noexcept
Field< vector > vectorField
Specialisation of Field<T> for vector.
void write(Ostream &) const
scalar deltaT0Value() const noexcept
void update(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)
label timeIndex() const noexcept
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
Generic templated field type.
virtual void updateCoeffs()
const DimensionedField< Type, pointMesh > & internalField() const
virtual void write(Ostream &) const
UniformDimensionedField< vector > uniformDimensionedVectorField
const Type & lookupObject(const word &name, const bool recursive=false) const
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void write(Ostream &) const
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
const uniformDimensionedVectorField & g
virtual void autoMap(const pointPatchFieldMapper &)
Vector< scalar > vector
A scalar version of the templated Vector.
Foam::uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField.
void writeEntry(const word &keyword, Ostream &os) const
point transform(const point &initialPoints) const
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 &)
pointPatchField< vector > pointPatchVectorField
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const Time & time() const noexcept
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...