Go to the documentation of this file.
65 omega_(
dict.
get<scalar>(
"omega"))
78 p0_ =
p.localPoints();
93 amplitude_(ptf.amplitude_),
107 amplitude_(ptf.amplitude_),
133 refCast<const oscillatingVelocityPointPatchVectorField>(ptf);
137 p0_.rmap(oVptf.p0_, addr);
154 (p0_ + amplitude_*
sin(omega_*t.
value()) -
p.localPoints())
165 os.writeEntry(
"amplitude", amplitude_);
166 os.writeEntry(
"omega", omega_);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static constexpr const zero Zero
Global zero (0)
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
dimensionedScalar sin(const dimensionedScalar &ds)
const Type & value() const
Return const reference to value.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Basic pointPatch represents a set of points from the mesh.
Mesh consisting of general polyhedral cells.
const pointPatch & patch() const
Return patch.
Foam::pointPatchFieldMapper.
scalar deltaTValue() const noexcept
Return time step value.
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
virtual void write(Ostream &) const
Write.
Generic templated field type.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const DimensionedField< vector, pointMesh > & internalField() const
Return dimensioned internal field reference.
virtual void write(Ostream &) const
Write.
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
bool updated() const
Return true if the boundary condition has already been updated.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
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 rmap(const pointPatchField< Type > &, const labelList &)
Reverse map the given PointPatchField onto.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Foam::oscillatingVelocityPointPatchVectorField.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
oscillatingVelocityPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &)
Construct from patch and internal field.