Go to the documentation of this file.
42 mixedFvPatchVectorField(
p, iF),
47 refGrad() = vector::zero;
48 valueFraction() = 0.0;
61 mixedFvPatchVectorField(ptf,
p, iF, mapper),
75 mixedFvPatchVectorField(
p, iF),
76 phiName_(
dict.lookupOrDefault<
word>(
"phi",
"phi")),
77 rhoName_(
dict.lookupOrDefault<
word>(
"rho",
"rho"))
81 refGrad() = vector::zero;
82 valueFraction() = 0.0;
92 mixedFvPatchVectorField(pivpvf),
105 mixedFvPatchVectorField(pivpvf, iF),
131 Ut -=
n()*(Ut &
n());
135 refValue() = Ut +
n*phip/magSf;
142 refValue() = Ut +
n*phip/(rhop*magSf);
147 <<
"dimensions of phi are not correct" <<
nl
148 <<
" on patch " << this->patch().name()
154 valueFraction() = 1.0 -
pos(phip);
156 mixedFvPatchVectorField::updateCoeffs();
166 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
167 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
168 writeEntry(
"value", os);
174 void Foam::pressureInletOutletParSlipVelocityFvPatchVectorField::operator=
virtual void write(Ostream &) const
Write.
virtual void operator=(const UList< Type > &)
A class for handling words, derived from string.
A class for managing temporary objects.
const dimensionSet dimVelocity
const dimensionSet dimDensity
word phiName_
Flux field name.
rDeltaT dimensionedInternalField()
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
pressureInletOutletParSlipVelocityFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
const dimensionSet dimArea(sqr(dimLength))
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
volVectorField vectorField(fieldObject, mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
word rhoName_
Density field name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
errorManipArg< error, int > exit(error &err, const int errNo=1)
This velocity inlet/outlet boundary condition for pressure boundary where the pressure is specified....
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
virtual void write(Ostream &) const
Write.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar pos(const dimensionedScalar &ds)