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");
90 inletOutletFvPatchVectorField(srfvpvf),
91 relative_(srfvpvf.relative_),
103 inletOutletFvPatchVectorField(srfvpvf, iF),
104 relative_(srfvpvf.relative_),
119 const SRF::SRFModel& srf =
120 db().lookupObject<SRF::SRFModel>(
"SRFProperties");
125 this->internalField().
mesh()
126 .ddtScheme(this->internalField().
name())
129 if (ddtScheme == fv::steadyStateDdtScheme<scalar>::typeName)
134 refValue() = UInf_ - srf.velocity(
patch().Cf());
145 scalar time = this->db().time().value();
146 scalar theta = time*
mag(srf.omega().value());
149 cos(theta)*UInf_ +
sin(theta)*(srf.axis() ^ UInf_)
150 - srf.velocity(
patch().Cf());
154 valueFraction() =
neg(refValue() &
patch().Sf());
177 SRFFreestreamVelocityFvPatchVectorField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
fvPatchField< vector > fvPatchVectorField
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
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.
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.
dimensionedScalar neg(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
dimensionedScalar cos(const dimensionedScalar &ds)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
A class for handling words, derived from Foam::string.
A FieldMapper for finite-volume patch fields.
SRFFreestreamVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar sin(const dimensionedScalar &ds)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
OBJstream os(runTime.globalPath()/outputName)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (s...
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.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)