48 amplitude_(
dict.lookup(
"amplitude")),
49 omega_(
dict.lookup<scalar>(
"omega"))
51 if (!
dict.found(
"value"))
62 p0_ =
p.localPoints();
77 amplitude_(ptf.amplitude_),
91 amplitude_(ptf.amplitude_),
106 refCast<const oscillatingVelocityPointPatchVectorField>(ptf);
110 mapper(p0_, oVptf.p0_);
120 refCast<const oscillatingVelocityPointPatchVectorField>(ptf);
124 p0_.
reset(oVptf.p0_);
141 (p0_ + amplitude_*
sin(omega_*t.
value()) -
p.localPoints())
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pre-declare SubField and related Field type.
void reset(const Field< Type > &)
Reset the field values to the given field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalar deltaTValue() const
Return time step value.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const Type & value() const
Return const reference to value.
A FixedValue boundary condition for pointField.
const Time & time() const
Return time.
Foam::oscillatingVelocityPointPatchVectorField.
virtual void write(Ostream &) const
Write.
virtual void reset(const pointPatchField< vector > &)
Reset the pointPatchField to the given pointPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const pointPatchField< vector > &, const pointPatchFieldMapper &)
Map the given pointPatchField onto this pointPatchField.
oscillatingVelocityPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
Foam::pointPatchFieldMapper.
Abstract base class for point-mesh patch fields.
virtual void write(Ostream &) const
Write.
const DimensionedField< Type, pointMesh > & internalField() const
Return dimensioned internal field reference.
const pointPatch & patch() const
Return patch.
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.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void reset(const pointPatchField< Type > &)
Reset the pointPatchField to the given pointPatchField.
virtual void map(const pointPatchField< Type > &, const pointPatchFieldMapper &)
Map the given pointPatchField onto this pointPatchField.
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
dimensionedScalar sin(const dimensionedScalar &ds)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Field< vector > vectorField
Specialisation of Field<T> for vector.