39Foam::SRFFreestreamVelocityFvPatchVectorField::
40SRFFreestreamVelocityFvPatchVectorField
46 inletOutletFvPatchVectorField(
p, iF),
52Foam::SRFFreestreamVelocityFvPatchVectorField::
53SRFFreestreamVelocityFvPatchVectorField
61 inletOutletFvPatchVectorField(ptf,
p, iF, mapper),
62 relative_(ptf.relative_),
67Foam::SRFFreestreamVelocityFvPatchVectorField::
68SRFFreestreamVelocityFvPatchVectorField
75 inletOutletFvPatchVectorField(
p, iF),
76 relative_(
dict.getOrDefault(
"relative", false)),
85Foam::SRFFreestreamVelocityFvPatchVectorField::
86SRFFreestreamVelocityFvPatchVectorField
91 inletOutletFvPatchVectorField(srfvpvf),
92 relative_(srfvpvf.relative_),
97Foam::SRFFreestreamVelocityFvPatchVectorField::
98SRFFreestreamVelocityFvPatchVectorField
104 inletOutletFvPatchVectorField(srfvpvf, iF),
105 relative_(srfvpvf.relative_),
126 this->internalField().
mesh()
127 .ddtScheme(this->internalField().
name())
135 refValue() = UInf_ - srf.
velocity(patch().Cf());
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);
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...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Freestream velocity condition to be used in conjunction with the single rotating frame (SRF) model (s...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Top level model for single rotating frame.
vectorField velocity(const vectorField &positions) const
Return velocity vector from positions.
const vector & axis() const
Return the axis of rotation.
const dimensionedVector & omega() const
Return the angular velocity field [rad/s].
void size(const label n)
Older name for setAddressableSize.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
const Type & value() const
Return const reference to value.
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
virtual void operator=(const UList< vector > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
SteadyState implicit/explicit ddt which returns 0.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar sin(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
dimensionedScalar cos(const dimensionedScalar &ds)