mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated incompressible RAS boundary conditions to use generic turbulence model
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -27,7 +27,7 @@ License
|
|||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -184,8 +184,9 @@ void turbulentHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
|
|||||||
patch().lookupPatchField<volScalarField, scalar>(alphaEffName_);
|
patch().lookupPatchField<volScalarField, scalar>(alphaEffName_);
|
||||||
|
|
||||||
// retrieve (constant) specific heat capacity from transport dictionary
|
// retrieve (constant) specific heat capacity from transport dictionary
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
const scalar Cp0(readScalar(rasModel.transport().lookup("Cp0")));
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
const scalar Cp0(readScalar(turbulence.transport().lookup("Cp0")));
|
||||||
|
|
||||||
switch (heatSource_)
|
switch (heatSource_)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -28,7 +28,7 @@ License
|
|||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "surfaceFields.H"
|
#include "surfaceFields.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -131,10 +131,11 @@ void turbulentMixingLengthDissipationRateInletFvPatchScalarField::updateCoeffs()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Lookup Cmu corresponding to the turbulence model selected
|
// Lookup Cmu corresponding to the turbulence model selected
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
|
||||||
const scalar Cmu =
|
const scalar Cmu =
|
||||||
rasModel.coeffDict().lookupOrDefault<scalar>("Cmu", 0.09);
|
turbulence.coeffDict().lookupOrDefault<scalar>("Cmu", 0.09);
|
||||||
|
|
||||||
const scalar Cmu75 = pow(Cmu, 0.75);
|
const scalar Cmu75 = pow(Cmu, 0.75);
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -28,7 +28,7 @@ License
|
|||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "surfaceFields.H"
|
#include "surfaceFields.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -127,10 +127,11 @@ void turbulentMixingLengthFrequencyInletFvPatchScalarField::updateCoeffs()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Lookup Cmu corresponding to the turbulence model selected
|
// Lookup Cmu corresponding to the turbulence model selected
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
|
||||||
const scalar Cmu =
|
const scalar Cmu =
|
||||||
rasModel.coeffDict().lookupOrDefault<scalar>("Cmu", 0.09);
|
turbulence.coeffDict().lookupOrDefault<scalar>("Cmu", 0.09);
|
||||||
|
|
||||||
const scalar Cmu25 = pow(Cmu, 0.25);
|
const scalar Cmu25 = pow(Cmu, 0.25);
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "epsilonLowReWallFunctionFvPatchScalarField.H"
|
#include "epsilonLowReWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -132,11 +130,18 @@ void epsilonLowReWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
|
|
||||||
const label patchI = patch().index();
|
const label patchI = patch().index();
|
||||||
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
const scalarField& y = rasModel.y()[patchI];
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
const scalarField& y = turbulence.y()[patchI];
|
||||||
|
|
||||||
volScalarField& G =
|
volScalarField& G =
|
||||||
const_cast<volScalarField&>(db().lookupObject<volScalarField>(GName_));
|
const_cast<volScalarField&>
|
||||||
|
(
|
||||||
|
db().lookupObject<volScalarField>
|
||||||
|
(
|
||||||
|
turbulence.type() + ".G"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
DimensionedField<scalar, volMesh>& epsilon =
|
DimensionedField<scalar, volMesh>& epsilon =
|
||||||
const_cast<DimensionedField<scalar, volMesh>&>
|
const_cast<DimensionedField<scalar, volMesh>&>
|
||||||
@ -144,17 +149,17 @@ void epsilonLowReWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
dimensionedInternalField()
|
dimensionedInternalField()
|
||||||
);
|
);
|
||||||
|
|
||||||
const tmp<volScalarField> tk = rasModel.k();
|
const tmp<volScalarField> tk = turbulence.k();
|
||||||
const volScalarField& k = tk();
|
const volScalarField& k = tk();
|
||||||
|
|
||||||
const tmp<volScalarField> tnu = rasModel.nu();
|
const tmp<volScalarField> tnu = turbulence.nu();
|
||||||
const scalarField& nuw = tnu().boundaryField()[patchI];
|
const scalarField& nuw = tnu().boundaryField()[patchI];
|
||||||
|
|
||||||
const tmp<volScalarField> tnut = rasModel.nut();
|
const tmp<volScalarField> tnut = turbulence.nut();
|
||||||
const volScalarField& nut = tnut();
|
const volScalarField& nut = tnut();
|
||||||
const scalarField& nutw = nut.boundaryField()[patchI];
|
const scalarField& nutw = nut.boundaryField()[patchI];
|
||||||
|
|
||||||
const fvPatchVectorField& Uw = rasModel.U().boundaryField()[patchI];
|
const fvPatchVectorField& Uw = turbulence.U().boundaryField()[patchI];
|
||||||
const scalarField magGradUw(mag(Uw.snGrad()));
|
const scalarField magGradUw(mag(Uw.snGrad()));
|
||||||
|
|
||||||
const scalar Cmu25 = pow025(Cmu_);
|
const scalar Cmu25 = pow025(Cmu_);
|
||||||
@ -199,7 +204,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::epsilonLowReWallFunctionFvPatchScalarField
|
Foam::incompressible::epsilonLowReWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -74,8 +74,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class epsilonLowReWallFunctionFvPatchScalarField Declaration
|
Class epsilonLowReWallFunctionFvPatchScalarField Declaration
|
||||||
@ -180,7 +178,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "epsilonWallFunctionFvPatchScalarField.H"
|
#include "epsilonWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -38,8 +38,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -59,7 +57,6 @@ void epsilonWallFunctionFvPatchScalarField::checkType()
|
|||||||
|
|
||||||
void epsilonWallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
|
void epsilonWallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
|
||||||
{
|
{
|
||||||
writeEntryIfDifferent<word>(os, "G", "RASModel.G", GName_);
|
|
||||||
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
||||||
@ -75,7 +72,6 @@ epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(p, iF),
|
fixedInternalValueFvPatchField<scalar>(p, iF),
|
||||||
GName_("RASModel.G"),
|
|
||||||
Cmu_(0.09),
|
Cmu_(0.09),
|
||||||
kappa_(0.41),
|
kappa_(0.41),
|
||||||
E_(9.8)
|
E_(9.8)
|
||||||
@ -93,7 +89,6 @@ epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(ptf, p, iF, mapper),
|
fixedInternalValueFvPatchField<scalar>(ptf, p, iF, mapper),
|
||||||
GName_(ptf.GName_),
|
|
||||||
Cmu_(ptf.Cmu_),
|
Cmu_(ptf.Cmu_),
|
||||||
kappa_(ptf.kappa_),
|
kappa_(ptf.kappa_),
|
||||||
E_(ptf.E_)
|
E_(ptf.E_)
|
||||||
@ -110,7 +105,6 @@ epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(p, iF, dict),
|
fixedInternalValueFvPatchField<scalar>(p, iF, dict),
|
||||||
GName_(dict.lookupOrDefault<word>("G", "RASModel.G")),
|
|
||||||
Cmu_(dict.lookupOrDefault<scalar>("Cmu", 0.09)),
|
Cmu_(dict.lookupOrDefault<scalar>("Cmu", 0.09)),
|
||||||
kappa_(dict.lookupOrDefault<scalar>("kappa", 0.41)),
|
kappa_(dict.lookupOrDefault<scalar>("kappa", 0.41)),
|
||||||
E_(dict.lookupOrDefault<scalar>("E", 9.8))
|
E_(dict.lookupOrDefault<scalar>("E", 9.8))
|
||||||
@ -125,7 +119,6 @@ epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(ewfpsf),
|
fixedInternalValueFvPatchField<scalar>(ewfpsf),
|
||||||
GName_(ewfpsf.GName_),
|
|
||||||
Cmu_(ewfpsf.Cmu_),
|
Cmu_(ewfpsf.Cmu_),
|
||||||
kappa_(ewfpsf.kappa_),
|
kappa_(ewfpsf.kappa_),
|
||||||
E_(ewfpsf.E_)
|
E_(ewfpsf.E_)
|
||||||
@ -141,7 +134,6 @@ epsilonWallFunctionFvPatchScalarField::epsilonWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(ewfpsf, iF),
|
fixedInternalValueFvPatchField<scalar>(ewfpsf, iF),
|
||||||
GName_(ewfpsf.GName_),
|
|
||||||
Cmu_(ewfpsf.Cmu_),
|
Cmu_(ewfpsf.Cmu_),
|
||||||
kappa_(ewfpsf.kappa_),
|
kappa_(ewfpsf.kappa_),
|
||||||
E_(ewfpsf.E_)
|
E_(ewfpsf.E_)
|
||||||
@ -161,14 +153,21 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
|
|
||||||
const label patchI = patch().index();
|
const label patchI = patch().index();
|
||||||
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
const scalarField& y = rasModel.y()[patchI];
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
const scalarField& y = turbulence.y()[patchI];
|
||||||
|
|
||||||
const scalar Cmu25 = pow025(Cmu_);
|
const scalar Cmu25 = pow025(Cmu_);
|
||||||
const scalar Cmu75 = pow(Cmu_, 0.75);
|
const scalar Cmu75 = pow(Cmu_, 0.75);
|
||||||
|
|
||||||
volScalarField& G =
|
volScalarField& G =
|
||||||
const_cast<volScalarField&>(db().lookupObject<volScalarField>(GName_));
|
const_cast<volScalarField&>
|
||||||
|
(
|
||||||
|
db().lookupObject<volScalarField>
|
||||||
|
(
|
||||||
|
turbulence.type() + ".G"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
DimensionedField<scalar, volMesh>& epsilon =
|
DimensionedField<scalar, volMesh>& epsilon =
|
||||||
const_cast<DimensionedField<scalar, volMesh>&>
|
const_cast<DimensionedField<scalar, volMesh>&>
|
||||||
@ -176,17 +175,17 @@ void epsilonWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
dimensionedInternalField()
|
dimensionedInternalField()
|
||||||
);
|
);
|
||||||
|
|
||||||
const tmp<volScalarField> tk = rasModel.k();
|
const tmp<volScalarField> tk = turbulence.k();
|
||||||
const volScalarField& k = tk();
|
const volScalarField& k = tk();
|
||||||
|
|
||||||
const tmp<volScalarField> tnu = rasModel.nu();
|
const tmp<volScalarField> tnu = turbulence.nu();
|
||||||
const scalarField& nuw = tnu().boundaryField()[patchI];
|
const scalarField& nuw = tnu().boundaryField()[patchI];
|
||||||
|
|
||||||
const tmp<volScalarField> tnut = rasModel.nut();
|
const tmp<volScalarField> tnut = turbulence.nut();
|
||||||
const volScalarField& nut = tnut();
|
const volScalarField& nut = tnut();
|
||||||
const scalarField& nutw = nut.boundaryField()[patchI];
|
const scalarField& nutw = nut.boundaryField()[patchI];
|
||||||
|
|
||||||
const fvPatchVectorField& Uw = rasModel.U().boundaryField()[patchI];
|
const fvPatchVectorField& Uw = turbulence.U().boundaryField()[patchI];
|
||||||
|
|
||||||
const scalarField magGradUw(mag(Uw.snGrad()));
|
const scalarField magGradUw(mag(Uw.snGrad()));
|
||||||
|
|
||||||
@ -237,7 +236,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::epsilonWallFunctionFvPatchScalarField
|
Foam::incompressible::epsilonWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -47,7 +47,6 @@ Description
|
|||||||
|
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
G | turbulence generation field name | no | G
|
|
||||||
Cmu | model coefficient | no | 0.09
|
Cmu | model coefficient | no | 0.09
|
||||||
kappa | Von Karman constant | no | 0.41
|
kappa | Von Karman constant | no | 0.41
|
||||||
E | model coefficient | no | 9.8
|
E | model coefficient | no | 9.8
|
||||||
@ -80,8 +79,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class epsilonWallFunctionFvPatchScalarField Declaration
|
Class epsilonWallFunctionFvPatchScalarField Declaration
|
||||||
@ -95,9 +92,6 @@ protected:
|
|||||||
|
|
||||||
// Protected data
|
// Protected data
|
||||||
|
|
||||||
//- Name of turbulence generation field
|
|
||||||
word GName_;
|
|
||||||
|
|
||||||
//- Cmu coefficient
|
//- Cmu coefficient
|
||||||
scalar Cmu_;
|
scalar Cmu_;
|
||||||
|
|
||||||
@ -206,7 +200,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -168,8 +168,9 @@ void fWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
|
|
||||||
const label patchI = patch().index();
|
const label patchI = patch().index();
|
||||||
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
const v2f& v2fModel = refCast<const v2f>(rasModel);
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
const v2f& v2fModel = refCast<const v2f>(turbulence);
|
||||||
|
|
||||||
const scalarField& y = v2fModel.y()[patchI];
|
const scalarField& y = v2fModel.y()[patchI];
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "kappatJayatillekeWallFunctionFvPatchScalarField.H"
|
#include "kappatJayatillekeWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "wallFvPatch.H"
|
#include "wallFvPatch.H"
|
||||||
@ -36,8 +36,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -272,7 +270,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,8 +22,7 @@ License
|
|||||||
OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::
|
Foam::incompressible::kappatJayatillekeWallFunctionFvPatchScalarField
|
||||||
kappatJayatillekeWallFunctionFvPatchScalarField
|
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -72,8 +71,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class kappatJayatillekeWallFunctionFvPatchScalarField Declaration
|
Class kappatJayatillekeWallFunctionFvPatchScalarField Declaration
|
||||||
@ -208,7 +205,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "kLowReWallFunctionFvPatchScalarField.H"
|
#include "kLowReWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -36,8 +36,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -174,13 +172,14 @@ void kLowReWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
|
|
||||||
const label patchI = patch().index();
|
const label patchI = patch().index();
|
||||||
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
const scalarField& y = rasModel.y()[patchI];
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
const scalarField& y = turbulence.y()[patchI];
|
||||||
|
|
||||||
const tmp<volScalarField> tk = rasModel.k();
|
const tmp<volScalarField> tk = turbulence.k();
|
||||||
const volScalarField& k = tk();
|
const volScalarField& k = tk();
|
||||||
|
|
||||||
const tmp<volScalarField> tnu = rasModel.nu();
|
const tmp<volScalarField> tnu = turbulence.nu();
|
||||||
const scalarField& nuw = tnu().boundaryField()[patchI];
|
const scalarField& nuw = tnu().boundaryField()[patchI];
|
||||||
|
|
||||||
const scalar Cmu25 = pow025(Cmu_);
|
const scalar Cmu25 = pow025(Cmu_);
|
||||||
@ -248,7 +247,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::kLowReWallFunctionFvPatchScalarField
|
Foam::incompressible::kLowReWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -71,8 +71,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class kLowReWallFunctionFvPatchScalarField Declaration
|
Class kLowReWallFunctionFvPatchScalarField Declaration
|
||||||
@ -199,7 +197,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -34,8 +34,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -146,7 +144,6 @@ void kqRWallFunctionFvPatchField<Type>::write(Ostream& os) const
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::kqRWallFunctionFvPatchField
|
Foam::incompressible::kqRWallFunctionFvPatchField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -63,8 +63,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class kqRWallFunctionFvPatchField Declaration
|
Class kqRWallFunctionFvPatchField Declaration
|
||||||
@ -171,7 +169,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -34,8 +34,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -43,7 +41,6 @@ makePatchFields(kqRWallFunction);
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -44,7 +42,6 @@ makePatchTypeFieldTypedefs(kqRWallFunction);
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutLowReWallFunctionFvPatchScalarField.H"
|
#include "nutLowReWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -127,7 +125,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::nutLowReWallFunctionFvPatchScalarField
|
Foam::incompressible::nutLowReWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -61,8 +61,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutLowReWallFunctionFvPatchScalarField Declaration
|
Class nutLowReWallFunctionFvPatchScalarField Declaration
|
||||||
@ -158,7 +156,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutURoughWallFunctionFvPatchScalarField.H"
|
#include "nutURoughWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -302,7 +300,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::nutURoughWallFunctionFvPatchScalarField
|
Foam::incompressible::nutURoughWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -70,8 +70,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutURoughWallFunctionFvPatchScalarField Declaration
|
Class nutURoughWallFunctionFvPatchScalarField Declaration
|
||||||
@ -233,7 +231,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutUSpaldingWallFunctionFvPatchScalarField.H"
|
#include "nutUSpaldingWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -216,7 +214,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::nutUSpaldingWallFunctionFvPatchScalarField
|
Foam::incompressible::nutUSpaldingWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -74,8 +74,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutUSpaldingWallFunctionFvPatchScalarField Declaration
|
Class nutUSpaldingWallFunctionFvPatchScalarField Declaration
|
||||||
@ -182,7 +180,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutUTabulatedWallFunctionFvPatchScalarField.H"
|
#include "nutUTabulatedWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -214,7 +212,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::nutUTabulatedWallFunctionFvPatchScalarField
|
Foam::incompressible::nutUTabulatedWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -73,8 +73,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutUTabulatedWallFunctionFvPatchScalarField Declaration
|
Class nutUTabulatedWallFunctionFvPatchScalarField Declaration
|
||||||
@ -190,7 +188,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutUWallFunctionFvPatchScalarField.H"
|
#include "nutUWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -198,7 +196,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::nutUWallFunctionFvPatchScalarField
|
Foam::incompressible::nutUWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -60,8 +60,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutUWallFunctionFvPatchScalarField Declaration
|
Class nutUWallFunctionFvPatchScalarField Declaration
|
||||||
@ -168,7 +166,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,6 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutWallFunctionFvPatchScalarField.H"
|
#include "nutWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "wallFvPatch.H"
|
#include "wallFvPatch.H"
|
||||||
@ -36,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -194,7 +191,6 @@ void nutWallFunctionFvPatchScalarField::write(Ostream& os) const
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::nutWallFunctionFvPatchScalarField
|
Foam::incompressible::nutWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -61,8 +61,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutWallFunctionFvPatchScalarField Declaration
|
Class nutWallFunctionFvPatchScalarField Declaration
|
||||||
@ -173,7 +171,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutkAtmRoughWallFunctionFvPatchScalarField.H"
|
#include "nutkAtmRoughWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -44,11 +42,12 @@ tmp<scalarField> nutkAtmRoughWallFunctionFvPatchScalarField::calcNut() const
|
|||||||
{
|
{
|
||||||
const label patchI = patch().index();
|
const label patchI = patch().index();
|
||||||
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
const scalarField& y = rasModel.y()[patchI];
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
const tmp<volScalarField> tk = rasModel.k();
|
const scalarField& y = turbulence.y()[patchI];
|
||||||
|
const tmp<volScalarField> tk = turbulence.k();
|
||||||
const volScalarField& k = tk();
|
const volScalarField& k = tk();
|
||||||
const tmp<volScalarField> tnu = rasModel.nu();
|
const tmp<volScalarField> tnu = turbulence.nu();
|
||||||
const volScalarField& nu = tnu();
|
const volScalarField& nu = tnu();
|
||||||
const scalarField& nuw = nu.boundaryField()[patchI];
|
const scalarField& nuw = nu.boundaryField()[patchI];
|
||||||
|
|
||||||
@ -192,7 +191,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,8 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::
|
Foam::incompressible::nutkAtmRoughWallFunctionFvPatchScalarField
|
||||||
nutkAtmRoughWallFunctionFvPatchScalarField
|
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -82,8 +81,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutkAtmRoughWallFunctionFvPatchScalarField Declaration
|
Class nutkAtmRoughWallFunctionFvPatchScalarField Declaration
|
||||||
@ -210,7 +207,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutkRoughWallFunctionFvPatchScalarField.H"
|
#include "nutkRoughWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -35,8 +35,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -237,7 +235,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::nutkRoughWallFunctionFvPatchScalarField
|
Foam::incompressible::nutkRoughWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -74,8 +74,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutkRoughWallFunctionFvPatchScalarField Declaration
|
Class nutkRoughWallFunctionFvPatchScalarField Declaration
|
||||||
@ -213,7 +211,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "nutkWallFunctionFvPatchScalarField.H"
|
#include "nutkWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "wallFvPatch.H"
|
#include "wallFvPatch.H"
|
||||||
@ -36,8 +36,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -160,7 +158,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::nutkWallFunctionFvPatchScalarField
|
Foam::incompressible::nutkWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -61,8 +61,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class nutkWallFunctionFvPatchScalarField Declaration
|
Class nutkWallFunctionFvPatchScalarField Declaration
|
||||||
@ -158,7 +156,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "omegaWallFunctionFvPatchScalarField.H"
|
#include "omegaWallFunctionFvPatchScalarField.H"
|
||||||
#include "RASModel.H"
|
#include "incompressible/turbulenceModel/turbulenceModel.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
@ -38,8 +38,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
@ -59,7 +57,6 @@ void omegaWallFunctionFvPatchScalarField::checkType()
|
|||||||
|
|
||||||
void omegaWallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
|
void omegaWallFunctionFvPatchScalarField::writeLocalEntries(Ostream& os) const
|
||||||
{
|
{
|
||||||
writeEntryIfDifferent<word>(os, "G", "RASModel.G", GName_);
|
|
||||||
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
os.writeKeyword("Cmu") << Cmu_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
os.writeKeyword("kappa") << kappa_ << token::END_STATEMENT << nl;
|
||||||
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
os.writeKeyword("E") << E_ << token::END_STATEMENT << nl;
|
||||||
@ -76,7 +73,6 @@ omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(p, iF),
|
fixedInternalValueFvPatchField<scalar>(p, iF),
|
||||||
GName_("RASModel.G"),
|
|
||||||
Cmu_(0.09),
|
Cmu_(0.09),
|
||||||
kappa_(0.41),
|
kappa_(0.41),
|
||||||
E_(9.8),
|
E_(9.8),
|
||||||
@ -96,7 +92,6 @@ omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(ptf, p, iF, mapper),
|
fixedInternalValueFvPatchField<scalar>(ptf, p, iF, mapper),
|
||||||
GName_(ptf.GName_),
|
|
||||||
Cmu_(ptf.Cmu_),
|
Cmu_(ptf.Cmu_),
|
||||||
kappa_(ptf.kappa_),
|
kappa_(ptf.kappa_),
|
||||||
E_(ptf.E_),
|
E_(ptf.E_),
|
||||||
@ -115,7 +110,6 @@ omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(p, iF, dict),
|
fixedInternalValueFvPatchField<scalar>(p, iF, dict),
|
||||||
GName_(dict.lookupOrDefault<word>("G", "RASModel.G")),
|
|
||||||
Cmu_(dict.lookupOrDefault<scalar>("Cmu", 0.09)),
|
Cmu_(dict.lookupOrDefault<scalar>("Cmu", 0.09)),
|
||||||
kappa_(dict.lookupOrDefault<scalar>("kappa", 0.41)),
|
kappa_(dict.lookupOrDefault<scalar>("kappa", 0.41)),
|
||||||
E_(dict.lookupOrDefault<scalar>("E", 9.8)),
|
E_(dict.lookupOrDefault<scalar>("E", 9.8)),
|
||||||
@ -132,7 +126,6 @@ omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(owfpsf),
|
fixedInternalValueFvPatchField<scalar>(owfpsf),
|
||||||
GName_(owfpsf.GName_),
|
|
||||||
Cmu_(owfpsf.Cmu_),
|
Cmu_(owfpsf.Cmu_),
|
||||||
kappa_(owfpsf.kappa_),
|
kappa_(owfpsf.kappa_),
|
||||||
E_(owfpsf.E_),
|
E_(owfpsf.E_),
|
||||||
@ -150,7 +143,6 @@ omegaWallFunctionFvPatchScalarField::omegaWallFunctionFvPatchScalarField
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedInternalValueFvPatchField<scalar>(owfpsf, iF),
|
fixedInternalValueFvPatchField<scalar>(owfpsf, iF),
|
||||||
GName_(owfpsf.GName_),
|
|
||||||
Cmu_(owfpsf.Cmu_),
|
Cmu_(owfpsf.Cmu_),
|
||||||
kappa_(owfpsf.kappa_),
|
kappa_(owfpsf.kappa_),
|
||||||
E_(owfpsf.E_),
|
E_(owfpsf.E_),
|
||||||
@ -172,13 +164,20 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
|
|
||||||
const label patchI = patch().index();
|
const label patchI = patch().index();
|
||||||
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
const scalarField& y = rasModel.y()[patchI];
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
const scalarField& y = turbulence.y()[patchI];
|
||||||
|
|
||||||
const scalar Cmu25 = pow025(Cmu_);
|
const scalar Cmu25 = pow025(Cmu_);
|
||||||
|
|
||||||
volScalarField& G =
|
volScalarField& G =
|
||||||
const_cast<volScalarField&>(db().lookupObject<volScalarField>(GName_));
|
const_cast<volScalarField&>
|
||||||
|
(
|
||||||
|
db().lookupObject<volScalarField>
|
||||||
|
(
|
||||||
|
turbulence.type() + ".G"
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
DimensionedField<scalar, volMesh>& omega =
|
DimensionedField<scalar, volMesh>& omega =
|
||||||
const_cast<DimensionedField<scalar, volMesh>&>
|
const_cast<DimensionedField<scalar, volMesh>&>
|
||||||
@ -186,17 +185,17 @@ void omegaWallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
dimensionedInternalField()
|
dimensionedInternalField()
|
||||||
);
|
);
|
||||||
|
|
||||||
const tmp<volScalarField> tk = rasModel.k();
|
const tmp<volScalarField> tk = turbulence.k();
|
||||||
const volScalarField& k = tk();
|
const volScalarField& k = tk();
|
||||||
|
|
||||||
const tmp<volScalarField> tnu = rasModel.nu();
|
const tmp<volScalarField> tnu = turbulence.nu();
|
||||||
const scalarField& nuw = tnu().boundaryField()[patchI];
|
const scalarField& nuw = tnu().boundaryField()[patchI];
|
||||||
|
|
||||||
const tmp<volScalarField> tnut = rasModel.nut();
|
const tmp<volScalarField> tnut = turbulence.nut();
|
||||||
const volScalarField& nut = tnut();
|
const volScalarField& nut = tnut();
|
||||||
const scalarField& nutw = nut.boundaryField()[patchI];
|
const scalarField& nutw = nut.boundaryField()[patchI];
|
||||||
|
|
||||||
const fvPatchVectorField& Uw = rasModel.U().boundaryField()[patchI];
|
const fvPatchVectorField& Uw = turbulence.U().boundaryField()[patchI];
|
||||||
|
|
||||||
const scalarField magGradUw(mag(Uw.snGrad()));
|
const scalarField magGradUw(mag(Uw.snGrad()));
|
||||||
|
|
||||||
@ -242,7 +241,6 @@ makePatchTypeField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::incompressible::RASModels::omegaWallFunctionFvPatchScalarField
|
Foam::incompressible::omegaWallFunctionFvPatchScalarField
|
||||||
|
|
||||||
Group
|
Group
|
||||||
grpIcoWallFunctions
|
grpIcoWallFunctions
|
||||||
@ -54,7 +54,6 @@ Description
|
|||||||
|
|
||||||
\table
|
\table
|
||||||
Property | Description | Required | Default value
|
Property | Description | Required | Default value
|
||||||
G | turbulence generation field name | no | G
|
|
||||||
Cmu | model coefficient | no | 0.09
|
Cmu | model coefficient | no | 0.09
|
||||||
kappa | Von Karman constant | no | 0.41
|
kappa | Von Karman constant | no | 0.41
|
||||||
E | model coefficient | no | 9.8
|
E | model coefficient | no | 9.8
|
||||||
@ -85,8 +84,6 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
namespace incompressible
|
namespace incompressible
|
||||||
{
|
{
|
||||||
namespace RASModels
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class omegaWallFunctionFvPatchScalarField Declaration
|
Class omegaWallFunctionFvPatchScalarField Declaration
|
||||||
@ -100,9 +97,6 @@ protected:
|
|||||||
|
|
||||||
// Protected data
|
// Protected data
|
||||||
|
|
||||||
//- Name of turbulence generation field
|
|
||||||
word GName_;
|
|
||||||
|
|
||||||
//- Cmu coefficient
|
//- Cmu coefficient
|
||||||
scalar Cmu_;
|
scalar Cmu_;
|
||||||
|
|
||||||
@ -214,7 +208,6 @@ public:
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
} // End namespace RASModels
|
|
||||||
} // End namespace incompressible
|
} // End namespace incompressible
|
||||||
} // End namespace Foam
|
} // End namespace Foam
|
||||||
|
|
||||||
|
|||||||
@ -167,13 +167,14 @@ void v2WallFunctionFvPatchScalarField::updateCoeffs()
|
|||||||
|
|
||||||
const label patchI = patch().index();
|
const label patchI = patch().index();
|
||||||
|
|
||||||
const RASModel& rasModel = db().lookupObject<RASModel>("RASProperties");
|
const turbulenceModel& turbulence =
|
||||||
const scalarField& y = rasModel.y()[patchI];
|
db().lookupObject<turbulenceModel>("turbulenceModel");
|
||||||
|
const scalarField& y = turbulence.y()[patchI];
|
||||||
|
|
||||||
const tmp<volScalarField> tk = rasModel.k();
|
const tmp<volScalarField> tk = turbulence.k();
|
||||||
const volScalarField& k = tk();
|
const volScalarField& k = tk();
|
||||||
|
|
||||||
const tmp<volScalarField> tnu = rasModel.nu();
|
const tmp<volScalarField> tnu = turbulence.nu();
|
||||||
const scalarField& nuw = tnu().boundaryField()[patchI];
|
const scalarField& nuw = tnu().boundaryField()[patchI];
|
||||||
|
|
||||||
const scalar Cmu25 = pow025(Cmu_);
|
const scalar Cmu25 = pow025(Cmu_);
|
||||||
|
|||||||
Reference in New Issue
Block a user