63 if (!this->readValueEntry(
dict))
74 const rotatingWallVelocityFvPatchVectorField& ptf,
76 const DimensionedField<vector, volMesh>& iF,
77 const fvPatchFieldMapper& mapper
80 fixedValueFvPatchField<
vector>(ptf,
p, iF, mapper),
83 omega_(ptf.omega_.clone())
94 origin_(rwvpvf.origin_),
96 omega_(rwvpvf.omega_.clone())
108 origin_(rwvpvf.origin_),
110 omega_(rwvpvf.omega_.clone())
123 const scalar t = this->db().time().timeOutputValue();
124 scalar
om = omega_->value(t);
129 (-
om)*((
patch().Cf() - origin_) ^ (axis_/
mag(axis_)))
137 fixedValueFvPatchVectorField::updateCoeffs();
146 omega_->writeData(
os);
158 rotatingWallVelocityFvPatchVectorField
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
fvPatchField< vector > fvPatchVectorField
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
rotatingWallVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
Lookup type of boundary radiation properties.
Macros for easy insertion into run-time selection tables.
This boundary condition provides a rotational velocity condition.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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)
void operator=(const Field< vector > &)
Copy assignment.
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Field< vector > vectorField
Specialisation of Field<T> for vector.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)