46 fixedValuePointPatchVectorField(
p, iF,
dict),
50 if (!
dict.found(
"value"))
61 p0_ =
p.localPoints();
75 fixedValuePointPatchVectorField(ptf,
p, iF, mapper),
76 amplitude_(ptf.amplitude_),
89 fixedValuePointPatchVectorField(ptf, iF),
90 amplitude_(ptf.amplitude_),
105 refCast<const oscillatingVelocityPointPatchVectorField>(ptf);
107 fixedValuePointPatchVectorField::map(oVptf, mapper);
109 mapper(p0_, oVptf.p0_);
119 refCast<const oscillatingVelocityPointPatchVectorField>(ptf);
121 fixedValuePointPatchVectorField::reset(oVptf);
123 p0_.
reset(oVptf.p0_);
140 (p0_ + amplitude_*
sin(omega_*t.
value()) -
p.localPoints())
144 fixedValuePointPatchVectorField::updateCoeffs();
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Type & value() const
Return const reference to value.
Abstract base class for field mapping.
const Time & time() const
Return the top-level database.
Foam::oscillatingVelocityPointPatchVectorField.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void reset(const pointPatchVectorField &)
Reset the pointPatchField to the given pointPatchField.
virtual void map(const pointPatchVectorField &, const fieldMapper &)
Map the given pointPatchField onto this pointPatchField.
oscillatingVelocityPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
Abstract base class for point-mesh patch fields.
virtual void write(Ostream &) const
Write.
Basic pointPatch represents a set of points from the mesh.
Mesh consisting of general polyhedral cells.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
makePointPatchTypeField(pointPatchVectorField, angularOscillatingDisplacementPointPatchVectorField)
const dimensionSet & dimLength
dimensionedScalar sin(const dimensionedScalar &ds)
const dimensionSet & dimTime
Field< vector > vectorField
Specialisation of Field<T> for vector.
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)