38 mixedFvPatchVectorField(
p, iF,
dict, false),
39 dimensionedFreestreamValue_
49 if (
dict.found(
"value"))
56 else if (
p.time().completeCase())
63 <<
"Unable to evaluate function for incomplete case "
64 "and 'value' entry not provided."
81 mixedFvPatchVectorField(ptf,
p, iF, mapper),
82 dimensionedFreestreamValue_
84 ptf.dimensionedFreestreamValue_,
97 mixedFvPatchVectorField(ptf, iF),
98 dimensionedFreestreamValue_
100 ptf.dimensionedFreestreamValue_,
115 dimensionedFreestreamValue_.map(!mapper.
direct());
125 dimensionedFreestreamValue_.reset();
136 dimensionedFreestreamValue_.update();
147 if (
magUp[i] > vSmall)
149 vf[i] = 0.5 - 0.5*(Up[i] & nf[i])/
magUp[i];
#define forAll(list, i)
Loop across all elements in list.
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...
const dimensionSet & dimensions() const
Return dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for field mapping.
virtual bool direct() const
Is the mapper direct?
This boundary condition provides a free-stream condition for velocity.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void reset(const fvPatchVectorField &)
Reset the fvPatchField to the given fvPatchField.
const vectorField & freestreamValue() const
virtual void map(const fvPatchVectorField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
freestreamVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
Write.
friend Ostream & operator(Ostream &, const fvPatchField< Type > &)
virtual void operator=(const UList< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void reset(const fvPatchField< Type > &)
Reset the fvPatchField to the given fvPatchField.
virtual void map(const fvPatchField< Type > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)
Field< vector > vectorField
Specialisation of Field<T> for vector.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)