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_),
120 const SRF::SRFModel& srf =
121 db().lookupObject<SRF::SRFModel>(
"SRFProperties");
126 this->internalField().
mesh()
127 .ddtScheme(this->internalField().
name())
130 if (ddtScheme == fv::steadyStateDdtScheme<scalar>::typeName)
135 refValue() = UInf_ - srf.velocity(
patch().Cf());
146 scalar time = this->db().time().value();
147 scalar theta = time*
mag(srf.omega().value());
150 cos(theta)*UInf_ +
sin(theta)*(srf.axis() ^ UInf_)
151 - srf.velocity(
patch().Cf());
155 valueFraction() = 1.0 -
pos0(refValue() &
patch().Sf());
167 writeEntry(
"value",
os);
178 SRFFreestreamVelocityFvPatchVectorField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
virtual void operator=(const UList< Type > &)
A class for handling words, derived from Foam::string.
static constexpr const zero Zero
dimensionedScalar sin(const dimensionedScalar &ds)
const Type & value() const
dimensionedScalar pos0(const dimensionedScalar &ds)
vectorField velocity(const vectorField &positions) const
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
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
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
const dimensionedVector & omega() const
virtual void updateCoeffs()
fvPatchField< vector > fvPatchVectorField
SteadyState implicit/explicit ddt which returns 0.
SRFFreestreamVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual void updateCoeffs()
Ostream & writeEntry(const keyType &key, const T &value)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
word name(const expressions::valueTypeCode typeCode)
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)