Go to the documentation of this file.
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
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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
dimensionedScalar sin(const dimensionedScalar &ds)
friend Ostream & operator(Ostream &, const Field< Type > &)
const Type & value() const
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
Foam::pointPatchFieldMapper.
scalar deltaTValue() const noexcept
Field< vector > vectorField
Specialisation of Field<T> for vector.
virtual void updateCoeffs()
makePointPatchTypeField(pointPatchVectorField, solidBodyMotionDisplacementPointPatchVectorField)
virtual void write(Ostream &) const
Generic templated field type.
virtual void updateCoeffs()
const DimensionedField< Type, pointMesh > & internalField() const
virtual void write(Ostream &) const
Lookup type of boundary radiation properties.
ITstream & lookup(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) 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,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
virtual void autoMap(const pointPatchFieldMapper &)
Vector< scalar > vector
A scalar version of the templated Vector.
void writeEntry(const word &keyword, Ostream &os) const
virtual void autoMap(const pointPatchFieldMapper &)
virtual void rmap(const pointPatchField< vector > &, const labelList &)
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 &)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
pointPatchField< vector > pointPatchVectorField
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 > &)