sign change on thermalDissipation source (consistency with momentum source)

- rename thermalDissipationEff() -> thermalDissipationEquilibrium()
This commit is contained in:
Mark Olesen
2009-07-13 16:08:58 +02:00
parent d01f653d32
commit 5b09b44b16
20 changed files with 52 additions and 48 deletions

View File

@ -197,15 +197,16 @@ tmp<volScalarField> LESModel::thermalDissipation() const
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( - (
( this->mu()*dev(twoSymm(tgradU())) ) && tgradU() ( this->mu()*dev(twoSymm(tgradU())) ) && tgradU()
) + this->rho() * this->epsilon() )
- this->rho() * this->epsilon()
) )
); );
} }
tmp<volScalarField> LESModel::thermalDissipationEff() const tmp<volScalarField> LESModel::thermalDissipationEquilibrium() const
{ {
tmp<volTensorField> tgradU = fvc::grad(this->U()); tmp<volTensorField> tgradU = fvc::grad(this->U());
@ -215,13 +216,13 @@ tmp<volScalarField> LESModel::thermalDissipationEff() const
( (
IOobject IOobject
( (
"thermalDissipationEff", "thermalDissipationEquilibrium",
runTime_.timeName(), runTime_.timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( - (
this->muEff()*dev(twoSymm(tgradU())) this->muEff()*dev(twoSymm(tgradU()))
- ((2.0/3.0)*I) * this->rho() * this->k() - ((2.0/3.0)*I) * this->rho() * this->k()
) && tgradU() ) && tgradU()

View File

@ -300,7 +300,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const; virtual tmp<volScalarField> thermalDissipationEquilibrium() const;
//- Correct Eddy-Viscosity and related properties. //- Correct Eddy-Viscosity and related properties.
// This calls correct(const tmp<volTensorField>& gradU) by supplying // This calls correct(const tmp<volTensorField>& gradU) by supplying

View File

@ -207,15 +207,16 @@ tmp<volScalarField> RASModel::thermalDissipation() const
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( - (
( this->mu()*dev(twoSymm(tgradU())) ) && tgradU() ( this->mu()*dev(twoSymm(tgradU())) ) && tgradU()
) + this->rho() * this->epsilon() )
- this->rho() * this->epsilon()
) )
); );
} }
tmp<volScalarField> RASModel::thermalDissipationEff() const tmp<volScalarField> RASModel::thermalDissipationEquilibrium() const
{ {
tmp<volTensorField> tgradU = fvc::grad(this->U()); tmp<volTensorField> tgradU = fvc::grad(this->U());
@ -225,13 +226,13 @@ tmp<volScalarField> RASModel::thermalDissipationEff() const
( (
IOobject IOobject
( (
"thermalDissipationEff", "thermalDissipationEquilibrium",
runTime_.timeName(), runTime_.timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( - (
this->muEff()*dev(twoSymm(tgradU())) this->muEff()*dev(twoSymm(tgradU()))
- ((2.0/3.0)*I) * this->rho() * this->k() - ((2.0/3.0)*I) * this->rho() * this->k()
) && tgradU() ) && tgradU()

View File

@ -352,7 +352,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const; virtual tmp<volScalarField> thermalDissipationEquilibrium() const;
//- Return yPlus for the given patch //- Return yPlus for the given patch
virtual tmp<scalarField> yPlus(const label patchI) const; virtual tmp<scalarField> yPlus(const label patchI) const;

View File

@ -193,13 +193,13 @@ tmp<volScalarField> laminar::thermalDissipation() const
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( this->mu()*dev(twoSymm(tgradU())) ) && tgradU() - ( this->mu()*dev(twoSymm(tgradU())) ) && tgradU()
) )
); );
} }
tmp<volScalarField> laminar::thermalDissipationEff() const tmp<volScalarField> laminar::thermalDissipationEquilibrium() const
{ {
tmp<volTensorField> tgradU = fvc::grad(this->U()); tmp<volTensorField> tgradU = fvc::grad(this->U());
@ -209,13 +209,13 @@ tmp<volScalarField> laminar::thermalDissipationEff() const
( (
IOobject IOobject
( (
"thermalDissipationEff", "thermalDissipationEquilibrium",
runTime_.timeName(), runTime_.timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( this->mu()*dev(twoSymm(tgradU())) ) && tgradU() - ( this->mu()*dev(twoSymm(tgradU())) ) && tgradU()
) )
); );
} }

View File

@ -119,7 +119,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const; virtual tmp<volScalarField> thermalDissipationEquilibrium() const;
//- Correct the laminar viscosity //- Correct the laminar viscosity
virtual void correct(); virtual void correct();

View File

@ -90,7 +90,7 @@ dissipationSelector::dissipation() const
} }
else if (treatment_ == equilibrium) else if (treatment_ == equilibrium)
{ {
return turbModel_.thermalDissipationEff(); return turbModel_.thermalDissipationEquilibrium();
} }
else else
{ {

View File

@ -211,13 +211,13 @@ tmp<volScalarField> laminar::thermalDissipation() const
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( this->mu()*dev(twoSymm(tgradU())) ) && tgradU() - ( this->mu()*dev(twoSymm(tgradU())) ) && tgradU()
) )
); );
} }
tmp<volScalarField> laminar::thermalDissipationEff() const tmp<volScalarField> laminar::thermalDissipationEquilibrium() const
{ {
tmp<volTensorField> tgradU = fvc::grad(this->U()); tmp<volTensorField> tgradU = fvc::grad(this->U());
@ -227,13 +227,13 @@ tmp<volScalarField> laminar::thermalDissipationEff() const
( (
IOobject IOobject
( (
"thermalDissipationEff", "thermalDissipationEquilibrium",
runTime_.timeName(), runTime_.timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( this->mu()*dev(twoSymm(tgradU())) ) && tgradU() - ( this->mu()*dev(twoSymm(tgradU())) ) && tgradU()
) )
); );
} }

View File

@ -129,7 +129,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const; virtual tmp<volScalarField> thermalDissipationEquilibrium() const;
//- Correct the laminar viscosity //- Correct the laminar viscosity
virtual void correct(); virtual void correct();

View File

@ -217,7 +217,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const = 0; virtual tmp<volScalarField> thermalDissipationEquilibrium() const = 0;
//- Solve the turbulence equations and correct the turbulence viscosity //- Solve the turbulence equations and correct the turbulence viscosity
virtual void correct() = 0; virtual void correct() = 0;

View File

@ -156,15 +156,16 @@ tmp<volScalarField> LESModel::thermalDissipation() const
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( - (
( this->nu()*dev(twoSymm(tgradU())) ) && tgradU() ( this->nu()*dev(twoSymm(tgradU())) ) && tgradU()
) + this->epsilon() )
- this->epsilon()
) )
); );
} }
tmp<volScalarField> LESModel::thermalDissipationEff() const tmp<volScalarField> LESModel::thermalDissipationEquilibrium() const
{ {
tmp<volTensorField> tgradU = fvc::grad(this->U()); tmp<volTensorField> tgradU = fvc::grad(this->U());
@ -174,13 +175,13 @@ tmp<volScalarField> LESModel::thermalDissipationEff() const
( (
IOobject IOobject
( (
"thermalDissipationEff", "thermalDissipationEquilibrium",
runTime_.timeName(), runTime_.timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( - (
this->nuEff()*dev(twoSymm(tgradU())) this->nuEff()*dev(twoSymm(tgradU()))
- ((2.0/3.0)*I) * this->k() - ((2.0/3.0)*I) * this->k()
) && tgradU() ) && tgradU()

View File

@ -249,7 +249,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const; virtual tmp<volScalarField> thermalDissipationEquilibrium() const;
//- Correct Eddy-Viscosity and related properties. //- Correct Eddy-Viscosity and related properties.
// This calls correct(const tmp<volTensorField>& gradU) by supplying // This calls correct(const tmp<volTensorField>& gradU) by supplying

View File

@ -192,15 +192,16 @@ tmp<volScalarField> RASModel::thermalDissipation() const
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( - (
( this->nu()*dev(twoSymm(tgradU())) ) && tgradU() ( this->nu()*dev(twoSymm(tgradU())) ) && tgradU()
) + this->epsilon() )
- this->epsilon()
) )
); );
} }
tmp<volScalarField> RASModel::thermalDissipationEff() const tmp<volScalarField> RASModel::thermalDissipationEquilibrium() const
{ {
tmp<volTensorField> tgradU = fvc::grad(this->U()); tmp<volTensorField> tgradU = fvc::grad(this->U());
@ -210,13 +211,13 @@ tmp<volScalarField> RASModel::thermalDissipationEff() const
( (
IOobject IOobject
( (
"thermalDissipationEff", "thermalDissipationEquilibrium",
runTime_.timeName(), runTime_.timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( - (
this->nuEff()*dev(twoSymm(tgradU())) this->nuEff()*dev(twoSymm(tgradU()))
- ((2.0/3.0)*I) * this->k() - ((2.0/3.0)*I) * this->k()
) && tgradU() ) && tgradU()

View File

@ -333,7 +333,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const; virtual tmp<volScalarField> thermalDissipationEquilibrium() const;
//- Return yPlus for the given patch //- Return yPlus for the given patch
virtual tmp<scalarField> yPlus(const label patchI) const; virtual tmp<scalarField> yPlus(const label patchI) const;

View File

@ -192,13 +192,13 @@ tmp<volScalarField> laminar::thermalDissipation() const
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( this->nu()*dev(twoSymm(tgradU())) ) && tgradU() - ( this->nu()*dev(twoSymm(tgradU())) ) && tgradU()
) )
); );
} }
tmp<volScalarField> laminar::thermalDissipationEff() const tmp<volScalarField> laminar::thermalDissipationEquilibrium() const
{ {
tmp<volTensorField> tgradU = fvc::grad(this->U()); tmp<volTensorField> tgradU = fvc::grad(this->U());
@ -208,13 +208,13 @@ tmp<volScalarField> laminar::thermalDissipationEff() const
( (
IOobject IOobject
( (
"thermalDissipationEff", "thermalDissipationEquilibrium",
runTime_.timeName(), runTime_.timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( this->nu()*dev(twoSymm(tgradU())) ) && tgradU() - ( this->nu()*dev(twoSymm(tgradU())) ) && tgradU()
) )
); );
} }

View File

@ -111,7 +111,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const; virtual tmp<volScalarField> thermalDissipationEquilibrium() const;
//- Correct the laminar viscosity //- Correct the laminar viscosity
virtual void correct(); virtual void correct();

View File

@ -90,7 +90,7 @@ dissipationSelector::dissipation() const
} }
else if (treatment_ == equilibrium) else if (treatment_ == equilibrium)
{ {
return turbModel_.thermalDissipationEff(); return turbModel_.thermalDissipationEquilibrium();
} }
else else
{ {

View File

@ -215,13 +215,13 @@ tmp<volScalarField> laminar::thermalDissipation() const
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( this->nu()*dev(twoSymm(tgradU())) ) && tgradU() - ( this->nu()*dev(twoSymm(tgradU())) ) && tgradU()
) )
); );
} }
tmp<volScalarField> laminar::thermalDissipationEff() const tmp<volScalarField> laminar::thermalDissipationEquilibrium() const
{ {
tmp<volTensorField> tgradU = fvc::grad(this->U()); tmp<volTensorField> tgradU = fvc::grad(this->U());
@ -231,13 +231,13 @@ tmp<volScalarField> laminar::thermalDissipationEff() const
( (
IOobject IOobject
( (
"thermalDissipationEff", "thermalDissipationEquilibrium",
runTime_.timeName(), runTime_.timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::NO_WRITE IOobject::NO_WRITE
), ),
( this->nu()*dev(twoSymm(tgradU())) ) && tgradU() - ( this->nu()*dev(twoSymm(tgradU())) ) && tgradU()
) )
); );
} }

View File

@ -117,7 +117,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const; virtual tmp<volScalarField> thermalDissipationEquilibrium() const;
//- Correct the laminar viscosity //- Correct the laminar viscosity
virtual void correct(); virtual void correct();

View File

@ -197,7 +197,7 @@ public:
//- The source for the enthalpy equation resulting from //- The source for the enthalpy equation resulting from
// the effective viscous dissipation // the effective viscous dissipation
// (ie, when turbulent production and dissipation are in equilibrium) // (ie, when turbulent production and dissipation are in equilibrium)
virtual tmp<volScalarField> thermalDissipationEff() const = 0; virtual tmp<volScalarField> thermalDissipationEquilibrium() const = 0;
//- Solve the turbulence equations and correct the turbulence viscosity //- Solve the turbulence equations and correct the turbulence viscosity
virtual void correct() = 0; virtual void correct() = 0;