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 angularOscillatingDisplacementPointPatchVectorField>(ptf);
116 fixedValuePointPatchVectorField::map(aODptf, mapper);
118 mapper(p0_, aODptf.p0_);
128 refCast<const angularOscillatingDisplacementPointPatchVectorField>(ptf);
130 fixedValuePointPatchVectorField::reset(aODptf);
132 p0_.
reset(aODptf.p0_);
146 scalar angle = angle0_ + amplitude_*
sin(omega_*t.
value());
152 p0Rel*(
cos(angle) - 1)
153 + (axisHat ^ p0Rel*
sin(angle))
154 + (axisHat & p0Rel)*(1 -
cos(angle))*axisHat
157 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,...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Foam::angularOscillatingDisplacementPointPatchVectorField.
virtual void write(Ostream &) const
Write.
angularOscillatingDisplacementPointPatchVectorField(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)