created incompressible namespace for incompressible LES models

This commit is contained in:
andy 2008-06-18 17:43:42 +01:00
parent c6d765ccb3
commit b3cb7c3dd3
53 changed files with 177 additions and 54 deletions

View File

@ -37,7 +37,7 @@
singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<LESmodel> sgsModel
autoPtr<incompressible::LESmodel> sgsModel
(
LESmodel::New(U, phi, laminarTransport)
incompressible::LESmodel::New(U, phi, laminarTransport)
);

View File

@ -37,7 +37,7 @@
singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<LESmodel> sgsModel
autoPtr<incompressible::LESmodel> sgsModel
(
LESmodel::New(U, phi, laminarTransport)
incompressible::LESmodel::New(U, phi, laminarTransport)
);

View File

@ -146,7 +146,7 @@
interfaceProperties interface(alpha1, U, twoPhaseProperties);
// Construct LES model
autoPtr<LESmodel> turbulence
autoPtr<incompressible::LESmodel> turbulence
(
LESmodel::New(U, phi, twoPhaseProperties)
incompressible::LESmodel::New(U, phi, twoPhaseProperties)
);

View File

@ -92,7 +92,7 @@
interfaceProperties interface(gamma, U, twoPhaseProperties());
// Construct LES model
autoPtr<LESmodel> turbulence
autoPtr<incompressible::LESmodel> turbulence
(
LESmodel::New(U, phi, twoPhaseProperties())
incompressible::LESmodel::New(U, phi, twoPhaseProperties())
);

View File

@ -79,7 +79,7 @@
twoPhaseMixture twoPhaseProperties(U, phiv, "gamma");
// Create LES model
autoPtr<LESmodel> turbulence
autoPtr<incompressible::LESmodel> turbulence
(
LESmodel::New(U, phiv, twoPhaseProperties)
incompressible::LESmodel::New(U, phiv, twoPhaseProperties)
);

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -115,6 +117,7 @@ bool devOneEqEddy::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -61,6 +61,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -136,6 +138,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LESmodels
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -109,7 +109,7 @@
interfaceProperties interface(gamma, U, twoPhaseProperties);
// Construct LES model
autoPtr<LESmodel> turbulence
autoPtr<incompressible::LESmodel> turbulence
(
LESmodel::New(U, phi, twoPhaseProperties)
incompressible::LESmodel::New(U, phi, twoPhaseProperties)
);

View File

@ -162,9 +162,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
}
else if (turbulenceProperties.found("LESmodel"))
{
autoPtr<LESmodel> sgsModel
autoPtr<incompressible::LESmodel> sgsModel
(
LESmodel::New(U, phi, laminarTransport)
incompressible::LESmodel::New(U, phi, laminarTransport)
);
execFlowFunctionObjects(args, runTime);

View File

@ -132,9 +132,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
}
else if (turbulenceProperties.found("LESmodel"))
{
autoPtr<LESmodel> sgsModel
autoPtr<incompressible::LESmodel> sgsModel
(
LESmodel::New(U, phi, laminarTransport)
incompressible::LESmodel::New(U, phi, laminarTransport)
);
PePtr.set

View File

@ -16,9 +16,9 @@ volVectorField U
singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<LESmodel> sgsModel
autoPtr<incompressible::LESmodel> sgsModel
(
LESmodel::New(U, phi, laminarTransport)
incompressible::LESmodel::New(U, phi, laminarTransport)
);
volScalarField::GeometricBoundaryField d = nearWallDist(mesh).y();

View File

@ -83,9 +83,9 @@ int main(int argc, char *argv[])
singlePhaseTransportModel laminarTransport(U, phi);
autoPtr<LESmodel> sgsModel
autoPtr<incompressible::LESmodel> sgsModel
(
LESmodel::New(U, phi, laminarTransport)
incompressible::LESmodel::New(U, phi, laminarTransport)
);
volScalarField::GeometricBoundaryField d = nearWallDist(mesh).y();

View File

@ -75,10 +75,10 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
return les.devRhoBeff();
}
else if (obr_.foundObject<LESmodel>("turbulenceProperties"))
else if (obr_.foundObject<incompressible::LESmodel>("turbulenceProperties"))
{
const LESmodel& les
= obr_.lookupObject<LESmodel>("turbulenceProperties");
const incompressible::LESmodel& les
= obr_.lookupObject<incompressible::LESmodel>("turbulenceProperties");
return rhoRef_*les.devBeff();
}

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Namespace
Foam::compressible::LESmodels
Foam::compressible
Description
Namespace for compressible LES models.

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -126,6 +128,7 @@ bool DeardorffDiffStress::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::DeardorffDiffStress
Foam::incompressible::LES::DeardorffDiffStress
Description
Differential SGS Stress Equation Model for incompressible flows
@ -60,6 +60,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -128,6 +130,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -30,6 +30,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -110,6 +112,7 @@ bool GenEddyVisc::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::GenEddyVisc
Foam::incompressible::LES::GenEddyVisc
Description
General base class for all incompressible models that can be implemented
@ -46,6 +46,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -129,6 +131,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -30,6 +30,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -174,6 +176,7 @@ bool GenSGSStress::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::GenSGSStress
Foam::incompressible::LES::GenSGSStress
Description
General base class for all incompressible models that directly
@ -47,6 +47,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -137,6 +139,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -132,6 +134,7 @@ bool LESmodel::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,14 +23,14 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Namespace
Foam::LESmodels
Foam::incompressible
Description
Namespace for incompressible LES models.
Class
Foam::LESmodel
Foam::incompressible::LESmodel
Description
Base class for all incompressible flow LES SGS models.
@ -64,6 +64,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
/*---------------------------------------------------------------------------*\
Class LESmodel Declaration
@ -263,6 +265,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -30,6 +30,8 @@ License
namespace Foam
{
namespace incompressible
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -70,7 +72,7 @@ autoPtr<LESmodel> LESmodel::New
(
"LESmodel::select(const volVectorField&, const "
"surfaceScalarField&, transportModel&)"
) << "Unknown LESmodel type " << LESmodelTypeName
) << "Unknown LESmodel type " << LESmodelTypeName
<< endl << endl
<< "Valid LESmodel types are :" << endl
<< dictionaryConstructorTablePtr_->toc()
@ -83,6 +85,7 @@ autoPtr<LESmodel> LESmodel::New
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -129,6 +131,7 @@ bool LRRDiffStress::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::LRRDiffStress
Foam::incompressible::LES::LRRDiffStress
Description
Differential SGS Stress Equation Model for incompressible flows.
@ -58,6 +58,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -127,6 +129,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -84,6 +86,7 @@ bool Smagorinsky::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::Smagorinsky
Foam::incompressible::LES::Smagorinsky
Description
The Isochoric Smagorinsky Model for incompressible flows.
@ -57,6 +57,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -129,6 +131,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -108,6 +110,7 @@ bool Smagorinsky2::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::Smagorinsky2
Foam::incompressible::LES::Smagorinsky2
Description
The Isochoric Smagorinsky Model for incompressible flows
@ -56,6 +56,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -119,6 +121,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -32,6 +32,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -238,6 +240,7 @@ bool SpalartAllmaras::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::SpalartAllmaras
Foam::incompressible::LES::SpalartAllmaras
Description
SpalartAllmaras for incompressible flows
@ -43,6 +43,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -153,6 +155,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -134,6 +136,7 @@ bool dynMixedSmagorinsky::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::dynMixedSmagorinsky
Foam::incompressible::LES::dynMixedSmagorinsky
Description
The Mixed Isochoric Smagorinsky Model for incompressible flows.
@ -68,6 +68,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -138,6 +140,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -173,6 +175,7 @@ bool dynOneEqEddy::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::dynOneEqEddy
Foam::incompressible::LES::dynOneEqEddy
Description
One Equation Eddy Viscosity Model for incompressible flows.
@ -64,6 +64,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -143,6 +145,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -153,6 +155,7 @@ bool dynSmagorinsky::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::dynSmagorinsky
Foam::incompressible::LES::dynSmagorinsky
Description
The Isochoric dynamic Smagorinsky Model for incompressible flows.
@ -73,6 +73,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -143,6 +145,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -32,6 +32,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -99,7 +101,7 @@ tmp<volScalarField> laminar::nuSgs() const
dimensionedScalar("nuSgs", nu().dimensions(), 0.0)
)
);
}
}
tmp<volScalarField> laminar::nuEff() const
{
@ -158,6 +160,7 @@ bool laminar::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::laminar
Foam::incompressible::LES::laminar
Description
LES model for laminar incompressible flow.
@ -44,6 +44,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -59,7 +61,7 @@ class laminar
// Disallow default bitwise copy construct and assignment
laminar(const laminar&);
laminar& operator=(const laminar&);
laminar& operator=(const laminar&);
public:
@ -86,7 +88,7 @@ public:
// Member Functions
//- Return SGS kinetic energy
tmp<volScalarField> k() const;
@ -118,6 +120,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -164,6 +166,7 @@ bool locDynOneEqEddy::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::locDynOneEqEddy
Foam::incompressible::LES::locDynOneEqEddy
Description
Localised Dynamic One Equation Eddy Viscosity Model for incompressible
@ -72,6 +72,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -161,6 +163,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -137,6 +139,7 @@ bool mixedSmagorinsky::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::mixedSmagorinsky
Foam::incompressible::LES::mixedSmagorinsky
Description
The mixed Isochoric Smagorinsky Model for incompressible flows.
@ -67,6 +67,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -144,6 +146,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -113,6 +115,7 @@ bool oneEqEddy::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::oneEqEddy
Foam::incompressible::LES::oneEqEddy
Description
One Equation Eddy Viscosity Model for incompressible flows
@ -61,6 +61,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -136,6 +138,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -30,6 +30,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -116,6 +118,7 @@ bool scaleSimilarity::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::scaleSimilarity
Foam::incompressible::LES::scaleSimilarity
Description
General base class for all scale similarity models
@ -47,6 +47,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -122,6 +124,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -118,6 +120,7 @@ bool spectEddyVisc::read()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::spectEddyVisc
Foam::incompressible::LES::spectEddyVisc
Description
The Isochoric spectral Eddy Viscosity Model for incompressible flows.
@ -61,6 +61,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -126,6 +128,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -35,6 +35,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -143,6 +145,7 @@ void vanDriestDelta::correct()
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::vanDriestDelta
Foam::incompressible::LES::vanDriestDelta
Description
Simple cube-root of cell volume delta used in incompressible LES models.
@ -42,6 +42,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -102,6 +104,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -34,6 +34,8 @@ License
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -110,7 +112,7 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate
const scalarField& ry = patch().deltaCoeffs();
const fvPatchVectorField& U =
const fvPatchVectorField& U =
patch().lookupPatchField<volVectorField, vector>("U");
scalarField magUp = mag(U.patchInternalField() - U);
@ -127,7 +129,7 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate
scalar magUpara = magUp[facei];
scalar utau = sqrt((nuSgsw[facei] + nuw[facei])*magFaceGradU[facei]);
if(utau > VSMALL)
{
int iter = 0;
@ -140,21 +142,21 @@ void nuSgsWallFunctionFvPatchScalarField::evaluate
scalar f =
- utau/(ry[facei]*nuw[facei])
+ magUpara/utau
+ magUpara/utau
+ 1/E*(fkUu - 1.0/6.0*kUu*sqr(kUu));
scalar df =
- 1.0/(ry[facei]*nuw[facei])
- magUpara/sqr(utau)
- 1/E*kUu*fkUu/utau;
scalar utauNew = utau - f/df;
err = mag((utau - utauNew)/utau);
utau = utauNew;
} while (utau > VSMALL && err > 0.01 && ++iter < 10);
nuSgsw[facei] =
nuSgsw[facei] =
max(sqr(max(utau, 0))/magFaceGradU[facei] - nuw[facei], 0.0);
}
else
@ -172,6 +174,7 @@ makePatchTypeField(fvPatchScalarField, nuSgsWallFunctionFvPatchScalarField);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// ************************************************************************* //

View File

@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Class
Foam::LESmodels::nuSgsWallFunctionFvPatchScalarField
Foam::incompressible::LES::nuSgsWallFunctionFvPatchScalarField
Description
wall function boundary condition for incompressible flows
@ -42,6 +42,8 @@ SourceFiles
namespace Foam
{
namespace incompressible
{
namespace LES
{
@ -139,6 +141,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace LES
} // End namespace incompressible
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //