42 mixedFvPatchVectorField(
p, iF,
dict, false),
43 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
44 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho"))
52 valueFraction() = 0.0;
65 mixedFvPatchVectorField(ptf,
p, iF, mapper),
66 phiName_(ptf.phiName_),
67 rhoName_(ptf.rhoName_)
78 mixedFvPatchVectorField(pivpvf, iF),
79 phiName_(pivpvf.phiName_),
80 rhoName_(pivpvf.rhoName_)
104 refValue() =
n*phip/magS;
111 refValue() =
n*phip/(rhop*magS);
116 <<
"dimensions of phi are not correct"
117 <<
"\n on patch " << this->patch().name()
118 <<
" of field " << this->internalField().name()
119 <<
" in file " << this->internalField().objectPath()
123 valueFraction() =
neg(phip);
125 mixedFvPatchVectorField::updateCoeffs();
143 void Foam::pressureNormalInletOutletVelocityFvPatchVectorField::operator=
150 valueFraction()*(patch().nf()*(patch().nf() & pvf))
151 + (1 - valueFraction())*pvf
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.
Generic GeometricField class.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base class for field mapping.
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 > &)
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...
This velocity inlet/outlet boundary condition is applied to patches where the pressure is specified....
virtual void write(Ostream &) const
Write.
pressureNormalInletOutletVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for managing temporary objects.
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionSet dimMassFlux
const dimensionSet dimVolumetricFlux
SurfaceField< scalar > surfaceScalarField
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
VolField< scalar > volScalarField
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensionedScalar neg(const dimensionedScalar &ds)
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)