46 fixedValuePointPatchVectorField(
p, iF,
dict),
53 if (!
dict.found(
"value"))
64 p0_ =
p.localPoints();
78 fixedValuePointPatchVectorField(ptf,
p, iF, mapper),
82 amplitude_(ptf.amplitude_),
95 fixedValuePointPatchVectorField(ptf, iF),
99 amplitude_(ptf.amplitude_),
114 refCast<const angularOscillatingVelocityPointPatchVectorField>(ptf);
116 fixedValuePointPatchVectorField::map(aOVptf, mapper);
118 mapper(p0_, aOVptf.p0_);
128 refCast<const angularOscillatingVelocityPointPatchVectorField>(ptf);
130 fixedValuePointPatchVectorField::reset(aOVptf);
132 p0_.
reset(aOVptf.p0_);
147 scalar angle = angle0_ + amplitude_*
sin(omega_*t.
value());
155 + p0Rel*(
cos(angle) - 1)
156 + (axisHat ^ p0Rel*
sin(angle))
157 + (axisHat & p0Rel)*(1 -
cos(angle))*axisHat
162 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...
void reset(const Field< Type > &)
Reset the field values to the given field.
friend Ostream & operator(Ostream &, const Field< vector > &)
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.
Foam::angularOscillatingVelocityPointPatchVectorField.
virtual void write(Ostream &) const
Write.
angularOscillatingVelocityPointPatchVectorField(const pointPatch &, const DimensionedField< vector, pointMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
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.
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.
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 & dimless
const dimensionSet & dimLength
dimensionedScalar sin(const dimensionedScalar &ds)
const dimensionSet & dimTime
Field< vector > vectorField
Specialisation of Field<T> for vector.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)
dimensionedScalar cos(const dimensionedScalar &ds)