44uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::
45uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
53 initialPoints_(
p.localPoints()),
58uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::
59uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
81 initialPoints_ =
p.localPoints();
86uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::
87uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
97 initialPoints_(ptf.initialPoints_, mapper),
102uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::
103uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField
110 motion_(ptf.motion_),
111 initialPoints_(ptf.initialPoints_),
143 initialPoints_.
rmap(uSDoFptf.initialPoints_, addr);
158 bool firstIter =
false;
180 gravity*motion_.
mass(),
188 motion_.
transform(initialPoints_) - initialPoints_
Macros for easy insertion into run-time selection tables.
const uniformDimensionedVectorField & g
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const Mesh & mesh() const
Return mesh.
Generic templated field type.
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
label timeIndex() const noexcept
Return current time index.
scalar deltaTValue() const noexcept
Return time step value.
scalar deltaT0Value() const noexcept
Return old time step value.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
void rmap(const atmBoundaryLayer &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
const Type & value() const
Return const reference to value.
A FixedValue boundary condition for pointField.
virtual bool write()
Write the output fields.
const Time & time() const
Return the top-level database.
bool foundObject(const word &name, const bool recursive=false) const
Is the named Type found?
const Time & time() const noexcept
Return time registry.
const Type & lookupObject(const word &name, const bool recursive=false) const
Foam::pointPatchFieldMapper.
Abstract base class for point-mesh patch fields.
const objectRegistry & db() const
Return local objectRegistry.
const DimensionedField< Type, pointMesh > & internalField() const
Return dimensioned internal field reference.
bool updated() const
Return true if the boundary condition has already been updated.
Basic pointPatch represents a set of points from the mesh.
Mesh consisting of general polyhedral cells.
void newTime()
Store the motion state at the beginning of the time-step.
void update(bool firstIter, const vector &fGlobal, const vector &tauGlobal, scalar deltaT, scalar deltaT0)
Symplectic integration of velocities, orientation and position.
void write(Ostream &) const
Write.
point transform(const point &initialPoints) const
Transform the given initial state point by the current motion.
scalar mass() const
Return the mass.
Foam::uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField.
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void rmap(const pointPatchField< vector > &, const labelList &)
Reverse map the given pointPatchField onto this pointPatchField.
OBJstream os(runTime.globalPath()/outputName)
To & refCast(From &r)
Reference type cast template function.
Field< vector > vectorField
Specialisation of Field<T> for vector.
static constexpr const zero Zero
Global zero (0)
#define makePointPatchTypeField(PatchTypeField, typePatchTypeField)