Go to the documentation of this file.
129 #ifndef totalPressureFvPatchScalarField_H
130 #define totalPressureFvPatchScalarField_H
143 class totalPressureFvPatchScalarField
145 public fixedValueFvPatchScalarField
181 const DimensionedField<scalar, volMesh>&
188 const DimensionedField<scalar, volMesh>&,
198 const DimensionedField<scalar, volMesh>&,
199 const fvPatchFieldMapper&
209 virtual tmp<fvPatchScalarField>
clone()
const
211 return tmp<fvPatchScalarField>
221 const DimensionedField<scalar, volMesh>&
225 virtual tmp<fvPatchScalarField>
clone
227 const DimensionedField<scalar, volMesh>& iF
230 return tmp<fvPatchScalarField>
242 const word&
UName()
const
323 const fvPatchFieldMapper&
337 using fixedValueFvPatchScalarField::updateCoeffs;
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling words, derived from string.
scalarField p0_
Total pressure.
A class for managing temporary objects.
scalar gamma_
Heat capacity ratio.
TypeName("totalPressure")
Runtime type information.
word UName_
Name of the velocity field.
scalar & gamma()
Return reference to the heat capacity ratio to allow adjustment.
This boundary condition provides a total pressure condition. Four variants are possible:
Pre-declare SubField and related Field type.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
const word & phiName() const
Return the name of the flux field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const word & UName() const
Return the name of the velocity field.
scalar gamma() const
Return the heat capacity ratio.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const word & rhoName() const
Return the name of the density field.
const scalarField & p0() const
Return the total pressure.
word psiName_
Name of the compressibility field used to calculate the wave speed.
const word & psiName() const
Return the name of the compressibility field.
word rhoName_
Name of the density field used to normalise the mass flux.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
word phiName_
Name of the flux transporting the field.
virtual void write(Ostream &) const
Write.
Foam::fvPatchFieldMapper.
totalPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
scalarField & p0()
Return reference to the total pressure to allow adjustment.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.