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 Ut -=
n()*(Ut &
n());
108 refValue() = Ut +
n*phip/magSf;
115 refValue() = Ut +
n*phip/(rhop*magSf);
120 <<
"dimensions of phi are not correct" <<
nl
121 <<
" on patch " << this->patch().name()
122 <<
" of field " << this->internalField().name()
123 <<
" in file " << this->internalField().objectPath()
127 valueFraction() =
neg(phip);
129 mixedFvPatchVectorField::updateCoeffs();
139 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
140 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
147 void Foam::pressureInletOutletParSlipVelocityFvPatchVectorField::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.
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 > &)
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...
This velocity inlet/outlet boundary condition for pressure boundary where the pressure is specified....
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
pressureInletOutletParSlipVelocityFvPatchVectorField(const pressureInletOutletParSlipVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fieldMapper &)
Construct by mapping given.
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)