Go to the documentation of this file.
45 fixedValueFvPatchScalarField(
p, iF),
66 fixedValueFvPatchScalarField(
p, iF,
dict),
67 M_(
dict.getOrDefault<scalar>(
"M", 0)),
68 pBack_(
dict.
get<scalar>(
"pBack")),
69 c1_(
dict.getOrDefault<scalar>(
"c1", 0)),
70 A1_(
dict.getOrDefault<scalar>(
"A1", 0)),
71 phiName_(
dict.getOrDefault<
word>(
"phi",
"phi")),
72 rhoName_(
dict.getOrDefault<
word>(
"rho",
"rho")),
73 UName_(
dict.getOrDefault<
word>(
"U",
"U")),
75 relax_(
dict.getOrDefault<scalar>(
"relax", 0))
88 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
93 phiName_(ptf.phiName_),
94 rhoName_(ptf.rhoName_),
107 fixedValueFvPatchScalarField(tppsf),
109 pBack_(tppsf.pBack_),
112 phiName_(tppsf.phiName_),
113 rhoName_(tppsf.rhoName_),
114 UName_(tppsf.UName_),
115 choked_(tppsf.choked_),
127 fixedValueFvPatchScalarField(tppsf, iF),
129 pBack_(tppsf.pBack_),
132 phiName_(tppsf.phiName_),
133 rhoName_(tppsf.rhoName_),
134 UName_(tppsf.UName_),
135 choked_(tppsf.choked_),
152 this->internalField().name()
155 const label patchi =
patch().index();
157 const scalarField pb(
p.oldTime().boundaryField()[patchi]);
159 const fvsPatchField<scalar>&
phi =
169 const fluidThermo* thermoPtr =
175 const vectorField UbOld(
U.oldTime().boundaryField()[patchi]);
178 Ub = relax_*UbOld + (1 - relax_)*Ub;
182 const fvPatchField<scalar>&
rho =
203 <<
"Pelase specify M in the dictionary"
210 if (A1_ == 0.0 || c1_ == 0.0)
224 if (
M[i] < 0 || r[i] >=1)
227 <<
"or pBack/ptot ratio is larger then one"
239 pbNew = relax_*pb + (1 -relax_)*pbNew;
243 fixedValueFvPatchScalarField::updateCoeffs();
261 writeEntry(
"value",
os);
272 outletMachNumberPressureFvPatchScalarField
fvPatchField< scalar > fvPatchScalarField
virtual void write(Ostream &) const
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from Foam::string.
const dimensionSet dimVelocity
const dimensionSet dimDensity
Type gAverage(const FieldField< Field, Type > &f)
static const word dictName
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Fundamental fluid thermodynamic properties.
Ostream & endl(Ostream &os)
Type gSum(const FieldField< Field, Type > &f)
virtual tmp< volScalarField > gamma() const =0
virtual void updateCoeffs()
Field< vector > vectorField
Specialisation of Field<T> for vector.
const dimensionSet dimArea(sqr(dimLength))
Generic templated field type.
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
outletMachNumberPressureFvPatchScalarField(const fvPatch &p, const DimensionedField< scalar, volMesh > &iF)
errorManipArg< error, int > exit(error &err, const int errNo=1)
GeometricField< vector, fvPatchField, volMesh > volVectorField
#define FatalErrorInFunction
dimensionedSymmTensor sqr(const dimensionedVector &dv)
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Ostream & writeEntry(const keyType &key, const T &value)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
virtual void write(Ostream &os) const
Generic GeometricField class.
This boundary condition maintains a certain subsonic Mach number at an outlet patch by dynamically ad...
#define WarningInFunction
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...