42 directionMixedFvPatchVectorField(
p, iF),
53 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi"))
57 refValue() -=
n*(
n & refValue());
59 valueFraction() =
Zero;
61 if (
dict.found(
"value"))
68 else if (
p.time().completeCase())
71 valueFraction() =
neg(phip)*(
I -
sqr(
n));
73 directionMixedFvPatchVectorField::updateCoeffs();
79 <<
"Unable to evaluate function for incomplete case "
80 "and 'value' entry not provided."
95 directionMixedFvPatchVectorField(ptf,
p, iF, mapper),
98 ptf.tangentialVelocity_,
102 phiName_(ptf.phiName_)
113 directionMixedFvPatchVectorField(ptf, iF),
116 ptf.tangentialVelocity_,
119 phiName_(ptf.phiName_)
131 directionMixedFvPatchVectorField::map(ptf, mapper);
132 tangentialVelocity_.map(!mapper.
direct());
141 directionMixedFvPatchVectorField::reset(ptf);
142 tangentialVelocity_.reset();
155 if (tangentialVelocity_.update())
157 refValue() -=
n*(
n & refValue());
163 valueFraction() =
neg(phip)*(
I -
sqr(
n));
165 directionMixedFvPatchVectorField::updateCoeffs();
177 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
185 void Foam::pressureInletOutletVelocityFvPatchVectorField::operator=
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?
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 > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Velocity inlet/outlet boundary condition for patches where the pressure is specified in some manner,...
virtual void write(Ostream &) const
Write.
virtual void map(const fvPatchField< vector > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void reset(const fvPatchField< vector > &)
Reset the fvPatchField to the given fvPatchField.
pressureInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, fvMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void transform(GeometricField< Type, GeoMesh > &rtf, const GeometricField< tensor, GeoMesh > &trf, const GeometricField< Type, GeoMesh > &tf)
makePatchTypeField(fvPatchScalarField, atmosphericBoundaryLayerTurbulentEpsilonFvPatchScalarField)
SurfaceField< scalar > surfaceScalarField
static const Identity< scalar > I
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
void evaluate(GeometricField< Type, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, GeoMesh > &x)
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensionedScalar neg(const dimensionedScalar &ds)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
void writeEntry(Ostream &os, const word &key, const DimensionedFieldFunction< DimensionedFieldType > &f)