65 omega_(
dict.
get<scalar>(
"omega"))
67 if (!
dict.found(
"value"))
78 p0_ =
p.localPoints();
86 const oscillatingVelocityPointPatchVectorField& ptf,
88 const DimensionedField<vector, pointMesh>& iF,
89 const pointPatchFieldMapper& mapper
92 fixedValuePointPatchField<
vector>(ptf,
p, iF, mapper),
93 amplitude_(ptf.amplitude_),
107 amplitude_(ptf.amplitude_),
133 refCast<const oscillatingVelocityPointPatchVectorField>(ptf);
137 p0_.
rmap(oVptf.p0_, addr);
149 const Time& t =
mesh.time();
150 const pointPatch&
p = this->
patch();
154 (p0_ + amplitude_*
sin(omega_*t.value()) -
p.localPoints())
165 os.writeEntry(
"amplitude", amplitude_);
166 os.writeEntry(
"omega", omega_);
177 oscillatingVelocityPointPatchVectorField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
const pointPatch & patch() const noexcept
Return the patch.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
oscillatingVelocityPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &)
Construct from patch and internal field.
Foam::pointPatchFieldMapper.
virtual void write(Ostream &os) const
Write.
void writeEntry(const word &keyword, Ostream &os) const
Write the field as a dictionary entry.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Lookup type of boundary radiation properties.
Macros for easy insertion into run-time selection tables.
friend Ostream & operator(Ostream &, const Field< vector > &)
virtual void rmap(const pointPatchField< vector > &, const labelList &)
Reverse map the given pointPatchField onto this pointPatchField.
bool updated() const noexcept
True if the boundary condition has already been updated.
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar sin(const dimensionedScalar &ds)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
virtual void write(Ostream &) const
Write.
OBJstream os(runTime.globalPath()/outputName)
pointPatchField< vector > pointPatchVectorField
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
void rmap(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 reverse-map from the given field
Basic pointPatch represents a set of points from the mesh.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
virtual void autoMap(const pointPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void rmap(const pointPatchField< Type > &, const labelList &)
Reverse map the given PointPatchField onto.
Foam::oscillatingVelocityPointPatchVectorField.
const DimensionedField< vector, pointMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
static constexpr const zero Zero
Global zero (0)