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>
130 phip = patch().Sf() & Up.freestreamValue();
137 phip = rhop*(patch().Sf() & Up.freestreamValue());
142 <<
"dimensions of phi are not correct" 143 <<
"\n on patch " << this->patch().name()
144 <<
" of field " << this->internalField().name()
145 <<
" in file " << this->internalField().objectPath()
149 zeroGradientFvPatchScalarField::updateCoeffs();
156 writeEntryIfDifferent<word>(os,
"U",
"U", UName_);
157 writeEntryIfDifferent<word>(os,
"phi",
"phi", phiName_);
158 writeEntryIfDifferent<word>(os,
"rho",
"rho", rhoName_);
159 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...
virtual void write(Ostream &) const
Write.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
const dimensionSet & dimensions() const
Return dimensions.
A class for handling words, derived from string.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const dimensionSet dimDensity
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
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...
virtual void write(Ostream &) const
Write.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const dimensionSet dimArea(sqr(dimLength))
const dimensionSet dimVelocity