42 zeroGradientFvPatchScalarField(p, iF),
57 zeroGradientFvPatchScalarField(p, iF, dict),
73 zeroGradientFvPatchScalarField(ptf, p, iF, mapper),
75 phiName_(ptf.phiName_),
76 rhoName_(ptf.rhoName_)
86 zeroGradientFvPatchScalarField(wbppsf),
87 UName_(wbppsf.UName_),
88 phiName_(wbppsf.phiName_),
89 rhoName_(wbppsf.rhoName_)
100 zeroGradientFvPatchScalarField(wbppsf, iF),
101 UName_(wbppsf.UName_),
102 phiName_(wbppsf.phiName_),
103 rhoName_(wbppsf.rhoName_)
116 const freestreamFvPatchVectorField& Up =
117 refCast<const freestreamFvPatchVectorField>
133 phip = patch().Sf() & Up.freestreamValue();
140 phip = rhop*(patch().Sf() & Up.freestreamValue());
145 <<
"dimensions of phi are not correct" 146 <<
"\n on patch " << this->patch().name()
147 <<
" of field " << this->internalField().name()
148 <<
" in file " << this->internalField().objectPath()
152 zeroGradientFvPatchScalarField::updateCoeffs();
159 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
160 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
161 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
162 writeEntry(
"value", os);
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
freestreamPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
GeometricField< vector, fvPatchField, volMesh > volVectorField
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
virtual void write(Ostream &) const
Write.
const dimensionSet & dimensions() const
Return dimensions.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionSet dimDensity
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
This boundary condition provides a free-stream condition for pressure. It is a zero-gradient conditio...
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const dimensionSet dimArea(sqr(dimLength))
virtual void write(Ostream &) const
Write.
const dimensionSet dimVelocity