Go to the documentation of this file.
46 inletOutletFvPatchVectorField(
p, iF),
61 inletOutletFvPatchVectorField(ptf,
p, iF, mapper),
62 relative_(ptf.relative_),
75 inletOutletFvPatchVectorField(
p, iF),
76 relative_(
dict.getOrDefault(
"relative",
false)),
79 this->phiName_ =
dict.getOrDefault<
word>(
"phi",
"phi");
91 inletOutletFvPatchVectorField(srfvpvf),
92 relative_(srfvpvf.relative_),
104 inletOutletFvPatchVectorField(srfvpvf, iF),
105 relative_(srfvpvf.relative_),
126 this->internalField().
mesh()
127 .ddtScheme(this->internalField().
name())
146 scalar time = this->db().time().value();
150 cos(theta)*UInf_ +
sin(theta)*(srf.
axis() ^ UInf_)
155 valueFraction() = 1.0 -
pos0(refValue() &
patch().Sf());
167 writeEntry(
"value",
os);
virtual void write(Ostream &) const
Write.
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
Global zero (0)
dimensionedScalar sin(const dimensionedScalar &ds)
const Type & value() const
Return const reference to value.
dimensionedScalar pos0(const dimensionedScalar &ds)
vectorField velocity(const vectorField &positions) const
Return velocity vector from positions.
Top level model for single rotating frame.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (s...
const vector & axis() const
Return the axis of rotation.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void write(Ostream &) const
Write.
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
const dimensionedVector & omega() const
Return the angular velocity field [rad/s].
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
SteadyState implicit/explicit ddt which returns 0.
SRFFreestreamVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
const std::string patch
OpenFOAM patch number as a std::string.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar cos(const dimensionedScalar &ds)