Go to the documentation of this file.
172 #ifndef epsilonWallFunctionFvPatchScalarField_H
173 #define epsilonWallFunctionFvPatchScalarField_H
188 class epsilonWallFunctionFvPatchScalarField
190 public fixedValueFvPatchField<scalar>
204 static const Enum<blendingType> blendingTypeNames;
210 const enum blendingType blending_;
bool initialised_
Initialised flag.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual label & master()
Return non-const access to the master patch ID.
Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho());volVectorField rhoU(IOobject("rhoU", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *U);volScalarField rhoE(IOobject("rhoE", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), rho *(e+0.5 *magSqr(U)));surfaceScalarField pos(IOobject("pos", runTime.timeName(), mesh), mesh, dimensionedScalar("pos", dimless, 1.0));surfaceScalarField neg(IOobject("neg", runTime.timeName(), mesh), mesh, dimensionedScalar("neg", dimless, -1.0));surfaceScalarField phi("phi", fvc::flux(rhoU));Info<< "Creating turbulence model\n"<< endl;autoPtr< compressible::turbulenceModel > turbulence(compressible::turbulenceModel::New(rho, U, phi, thermo))
A class for managing temporary objects.
virtual void updateWeightedCoeffs(const scalarField &weights)
Update the coefficients associated with the patch field.
static scalar tolerance_
Tolerance used in weighted calculations.
virtual void createAveragingWeights()
epsilonWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
const dimensionedScalar epsilon0
Electric constant: default SI units: [F/m].
scalarField & epsilon(bool init=false)
Return non-const access to the master's epsilon field.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
const dimensionedScalar G0
Conductance quantum: default SI units: [S].
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
This boundary condition provides a wall constraint on the turbulent kinetic energy dissipation rate,...
virtual void calculate(const turbulenceModel &turbulence, const List< scalar > &cornerWeights, const fvPatch &patch, scalarField &G, scalarField &epsilon)
Calculate the epsilon and G.
const bool lowReCorrection_
Apply low-Re correction term (default = no)
virtual void write(Ostream &) const
Write.
scalarField & G(bool init=false)
Return non-const access to the master's G field.
Abstract base class for turbulence models (RAS, LES and laminar).
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
scalarField G_
Local copy of turbulence G field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual void manipulateMatrix(fvMatrix< scalar > &matrix)
Manipulate matrix.
virtual void calculateTurbulenceFields(const turbulenceModel &turbulence, scalarField &G0, scalarField &epsilon0)
Main driver to calculate the turbulence fields.
virtual epsilonWallFunctionFvPatchScalarField & epsilonPatch(const label patchi)
Helper function to return non-const access to an epsilon patch.
scalarField epsilon_
Local copy of turbulence epsilon field.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
TypeName("epsilonWallFunction")
Runtime type information.
label master_
Master patch ID.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Foam::fvPatchFieldMapper.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
const fvPatch & patch() const
Return patch.
virtual ~epsilonWallFunctionFvPatchScalarField()=default
Destructor.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
List< List< scalar > > cornerWeights_
List of averaging corner weights.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...