36void Foam::rotatingPressureInletOutletVelocityFvPatchVectorField::
37calcTangentialVelocity()
39 const scalar t = this->db().time().timeOutputValue();
45 (-
om) ^ (
patch().Cf() - axisHat*(axisHat &
patch().Cf()))
77 omega_(ptf.omega_.
clone())
79 calcTangentialVelocity();
94 calcTangentialVelocity();
105 omega_(rppvf.omega_.
clone())
107 calcTangentialVelocity();
119 omega_(rppvf.omega_.clone())
121 calcTangentialVelocity();
133 os.writeEntry(
"phi", phiName());
134 omega_->writeData(
os);
146 rotatingPressureInletOutletVelocityFvPatchVectorField
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...
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A FieldMapper for finite-volume patch fields.
virtual void write(Ostream &) const
Write.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This velocity inlet/outlet boundary condition is applied to velocity boundaries where the pressure is...
const word & phiName() const
Return the name of phi.
pressureInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
const vectorField & tangentialVelocity() const
Return the tangential velocity.
This velocity inlet/outlet boundary condition is applied to patches in a rotating frame where the pre...
virtual void write(Ostream &) const
Write.
virtual tmp< fvPatchField< vector > > clone() const
Return a clone.
rotatingPressureInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
Define a concrete fvPatchField type and add to run-time tables Example, (fvPatchScalarField,...
const std::string patch
OpenFOAM patch number as a std::string.
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.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
fvPatchField< vector > fvPatchVectorField