mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Updates to the compressible LES/RAS api
- removed repeated declaration of pure abstract functions - added function to return the turbulence effective thermal diffusivity for a patch
This commit is contained in:
@ -126,15 +126,6 @@ public:
|
||||
return alphaSgs_;
|
||||
}
|
||||
|
||||
//- Return thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphaSgs_ + alpha())
|
||||
);
|
||||
}
|
||||
|
||||
//- Return the sub-grid stress tensor.
|
||||
virtual tmp<volSymmTensorField> B() const;
|
||||
|
||||
|
||||
@ -127,15 +127,6 @@ public:
|
||||
return alphaSgs_;
|
||||
}
|
||||
|
||||
//- Return thermal conductivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphaSgs_ + alpha())
|
||||
);
|
||||
}
|
||||
|
||||
//- Return the sub-grid stress tensor
|
||||
virtual tmp<volSymmTensorField> B() const
|
||||
{
|
||||
|
||||
@ -189,12 +189,6 @@ public:
|
||||
}
|
||||
|
||||
|
||||
//- Return the SGS turbulent kinetic energy.
|
||||
virtual tmp<volScalarField> k() const = 0;
|
||||
|
||||
//- Return the SGS turbulent dissipation.
|
||||
virtual tmp<volScalarField> epsilon() const = 0;
|
||||
|
||||
//- Return the SGS turbulent viscosity
|
||||
virtual tmp<volScalarField> muSgs() const = 0;
|
||||
|
||||
@ -210,8 +204,22 @@ public:
|
||||
//- Return the SGS turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaSgs() const = 0;
|
||||
|
||||
//- Return the SGS thermal conductivity.
|
||||
virtual tmp<volScalarField> alphaEff() const = 0;
|
||||
//- Return the effective thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphaSgs() + alpha())
|
||||
);
|
||||
}
|
||||
|
||||
//- Return the effective turbulence thermal diffusivity for a patch
|
||||
virtual tmp<scalarField> alphaEff(const label patchI) const
|
||||
{
|
||||
return
|
||||
alphaSgs()().boundaryField()[patchI]
|
||||
+ alpha().boundaryField()[patchI];
|
||||
}
|
||||
|
||||
//- Return the sub-grid stress tensor.
|
||||
virtual tmp<volSymmTensorField> B() const = 0;
|
||||
@ -261,13 +269,13 @@ public:
|
||||
//- Correct Eddy-Viscosity and related properties.
|
||||
// This calls correct(const tmp<volTensorField>& gradU) by supplying
|
||||
// gradU calculated locally.
|
||||
void correct();
|
||||
virtual void correct();
|
||||
|
||||
//- Correct Eddy-Viscosity and related properties
|
||||
virtual void correct(const tmp<volTensorField>& gradU);
|
||||
|
||||
//- Read LESProperties dictionary
|
||||
virtual bool read() = 0;
|
||||
virtual bool read();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -149,15 +149,6 @@ public:
|
||||
return alphaSgs_;
|
||||
}
|
||||
|
||||
//- Return thermal conductivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphaSgs_ + alpha())
|
||||
);
|
||||
}
|
||||
|
||||
//- Return the sub-grid stress tensor.
|
||||
virtual tmp<volSymmTensorField> B() const;
|
||||
|
||||
|
||||
@ -153,13 +153,10 @@ public:
|
||||
return mut_;
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat_ + alpha())
|
||||
);
|
||||
return alphat_;
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
|
||||
@ -162,13 +162,10 @@ public:
|
||||
return mut_;
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat_ + alpha())
|
||||
);
|
||||
return alphat_;
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
|
||||
@ -146,13 +146,10 @@ public:
|
||||
return mut_;
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat_ + alpha())
|
||||
);
|
||||
return alphat_;
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
|
||||
@ -265,9 +265,6 @@ public:
|
||||
}
|
||||
|
||||
|
||||
//- Return the turbulence viscosity
|
||||
virtual tmp<volScalarField> mut() const = 0;
|
||||
|
||||
//- Return the effective viscosity
|
||||
virtual tmp<volScalarField> muEff() const
|
||||
{
|
||||
@ -278,22 +275,21 @@ public:
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const = 0;
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat() + alpha())
|
||||
);
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
virtual tmp<volScalarField> k() const = 0;
|
||||
|
||||
//- Return the turbulence kinetic energy dissipation rate
|
||||
virtual tmp<volScalarField> epsilon() const = 0;
|
||||
|
||||
//- Return the Reynolds stress tensor
|
||||
virtual tmp<volSymmTensorField> R() const = 0;
|
||||
|
||||
//- Return the effective stress tensor including the laminar stress
|
||||
virtual tmp<volSymmTensorField> devRhoReff() const = 0;
|
||||
|
||||
//- Return the source term for the momentum equation
|
||||
virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const = 0;
|
||||
//- Return the effective turbulent thermal diffusivity for a patch
|
||||
virtual tmp<scalarField> alphaEff(const label patchI) const
|
||||
{
|
||||
return
|
||||
alphat()().boundaryField()[patchI]
|
||||
+ alpha().boundaryField()[patchI];
|
||||
}
|
||||
|
||||
//- Return yPlus for the given patch
|
||||
virtual tmp<scalarField> yPlus
|
||||
@ -303,10 +299,10 @@ public:
|
||||
) const;
|
||||
|
||||
//- Solve the turbulence equations and correct the turbulence viscosity
|
||||
virtual void correct() = 0;
|
||||
virtual void correct();
|
||||
|
||||
//- Read RASProperties dictionary
|
||||
virtual bool read() = 0;
|
||||
virtual bool read();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -142,13 +142,10 @@ public:
|
||||
return mut_;
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat_ + alpha())
|
||||
);
|
||||
return alphat_;
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
|
||||
@ -178,13 +178,10 @@ public:
|
||||
return mut_;
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat_ + alpha())
|
||||
);
|
||||
return alphat_;
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
|
||||
@ -138,13 +138,10 @@ public:
|
||||
return mut_;
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat_ + alpha())
|
||||
);
|
||||
return alphat_;
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
|
||||
@ -222,13 +222,10 @@ public:
|
||||
return mut_;
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat_ + alpha())
|
||||
);
|
||||
return alphat_;
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
|
||||
@ -78,6 +78,27 @@ tmp<volScalarField> laminar::mut() const
|
||||
}
|
||||
|
||||
|
||||
tmp<volScalarField> laminar::alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"alphat",
|
||||
runTime_.timeName(),
|
||||
mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
),
|
||||
mesh_,
|
||||
dimensionedScalar("alphat", alpha().dimensions(), 0.0)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
tmp<volScalarField> laminar::k() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
|
||||
@ -89,6 +89,9 @@ public:
|
||||
return tmp<volScalarField>(new volScalarField("muEff", mu()));
|
||||
}
|
||||
|
||||
//- Return the turbulence thermal diffusivity, i.e. 0 for laminar flow
|
||||
virtual tmp<volScalarField> alphat() const;
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity,
|
||||
// i.e. the laminar thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
|
||||
@ -159,13 +159,10 @@ public:
|
||||
return mut_;
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField("alphaEff", alphat_ + alpha())
|
||||
);
|
||||
return alphat_;
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
|
||||
@ -99,6 +99,9 @@ public:
|
||||
return tmp<volScalarField>(new volScalarField("muEff", mu()));
|
||||
}
|
||||
|
||||
//- Return the turbulence thermal diffusivity, i.e. 0 for laminar flow
|
||||
virtual tmp<volScalarField> alphat() const;
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity,
|
||||
// i.e. the laminar thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const
|
||||
@ -106,6 +109,13 @@ public:
|
||||
return tmp<volScalarField>(new volScalarField("alphaEff", alpha()));
|
||||
}
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity for a patch,
|
||||
// i.e. the laminar thermal diffusivity
|
||||
virtual tmp<scalarField> alphaEff(const label patchI) const
|
||||
{
|
||||
return alpha().boundaryField()[patchI];
|
||||
}
|
||||
|
||||
//- Return the turbulence kinetic energy, i.e. 0 for laminar flow
|
||||
virtual tmp<volScalarField> k() const;
|
||||
|
||||
|
||||
@ -192,9 +192,15 @@ public:
|
||||
//- Return the effective viscosity
|
||||
virtual tmp<volScalarField> muEff() const = 0;
|
||||
|
||||
//- Return the effective turbulent thermal diffusivity
|
||||
//- Return the turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphat() const = 0;
|
||||
|
||||
//- Return the effective turbulence thermal diffusivity
|
||||
virtual tmp<volScalarField> alphaEff() const = 0;
|
||||
|
||||
//- Return the effective turbulence thermal diffusivity for a patch
|
||||
virtual tmp<scalarField> alphaEff(const label patchI) const = 0;
|
||||
|
||||
//- Return the turbulence kinetic energy
|
||||
virtual tmp<volScalarField> k() const = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user