71 #ifndef epsilonWallFunctionFvPatchScalarField_H 72 #define epsilonWallFunctionFvPatchScalarField_H 87 class epsilonWallFunctionFvPatchScalarField
89 public fixedValueFvPatchField<scalar>
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
scalarField & G(bool init=false)
Return non-const access to the master's G field.
virtual void write(Ostream &) const
Write.
This boundary condition provides a turbulence dissipation wall function condition for high Reynolds n...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionedScalar G0
Conductance quantum: default SI units: [S].
bool initialised_
Initialised flag.
virtual void calculateTurbulenceFields(const turbulenceModel &turbulence, scalarField &G0, scalarField &epsilon0)
Main driver to calculate the turbulence fields.
static scalar tolerance_
Tolerance used in weighted calculations.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Foam::fvPatchFieldMapper.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
virtual void calculate(const turbulenceModel &turbulence, const List< scalar > &cornerWeights, const fvPatch &patch, scalarField &G, scalarField &epsilon)
Calculate the epsilon and G.
autoPtr< compressible::turbulenceModel > turbulence
List< List< scalar > > cornerWeights_
List of averaging corner weights.
scalar kappa_
Von Karman constant.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void manipulateMatrix(fvMatrix< scalar > &matrix)
Manipulate matrix.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
scalar Cmu_
Cmu coefficient.
virtual void writeLocalEntries(Ostream &) const
Write local wall function variables.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Abstract base class for turbulence models (RAS, LES and laminar).
label master_
Master patch ID.
TypeName("epsilonWallFunction")
Runtime type information.
scalarField G_
Local copy of turbulence G field.
scalarField & epsilon(bool init=false)
Return non-const access to the master's epsilon field.
virtual void setMaster()
Set the master patch - master is responsible for updating all.
virtual epsilonWallFunctionFvPatchScalarField & epsilonPatch(const label patchi)
Helper function to return non-const access to an epsilon patch.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void checkType()
Check the type of the patch.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void createAveragingWeights()
Create the averaging weights for cells which are bounded by.
virtual label & master()
Return non-const access to the master patch ID.
scalarField epsilon_
Local copy of turbulence epsilon field.
const fvPatch & patch() const
Return patch.
epsilonWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
A class for managing temporary objects.
const dimensionedScalar epsilon0
Electric constant: default SI units: [F/m].
virtual ~epsilonWallFunctionFvPatchScalarField()
Destructor.