Added kineticTheoryModels namespace and put the viscosityModels in it to

avoid name-clashes with the standard viscosityModels.

The other kineticTheoryModels have yet to be put in the kineticTheoryModels
namespace.
This commit is contained in:
henry
2008-06-18 23:11:09 +01:00
parent 54df3819a8
commit ad19741845
61 changed files with 170 additions and 168 deletions

View File

@ -1,4 +1,4 @@
wclean libso phaseModel wclean libso phaseModel
wclean libso interfacialModels wclean libso interfacialModels
wclean libso kineticTheoryModel wclean libso kineticTheoryModels
wclean wclean

View File

@ -3,5 +3,5 @@ set -x
wmake libso phaseModel wmake libso phaseModel
wmake libso interfacialModels wmake libso interfacialModels
wmake libso kineticTheoryModel wmake libso kineticTheoryModels
wmake wmake

View File

@ -56,14 +56,13 @@ class Ergun
{ {
public: public:
//- Runtime type information //- Runtime type information
TypeName("Ergun"); TypeName("Ergun");
// Constructors // Constructors
//- Construct from components //- Construct from components
Ergun Ergun
( (
@ -74,9 +73,8 @@ public:
); );
// Destructor //- Destructor
virtual ~Ergun();
~Ergun();
// Member Functions // Member Functions

View File

@ -56,7 +56,7 @@ class Gibilaro
{ {
public: public:
//- Runtime type information //- Runtime type information
TypeName("Gibilaro"); TypeName("Gibilaro");
@ -73,9 +73,8 @@ public:
); );
// Destructor //- Destructor
virtual ~Gibilaro();
~Gibilaro();
// Member Functions // Member Functions

View File

@ -26,7 +26,7 @@ Class
Foam::GidaspowErgunWenYu Foam::GidaspowErgunWenYu
Description Description
D. Gidaspow, Multiphase flow and fluidization, D. Gidaspow, Multiphase flow and fluidization,
Academic Press, New York, 1994. Academic Press, New York, 1994.
SourceFiles SourceFiles
@ -54,7 +54,7 @@ class GidaspowErgunWenYu
{ {
public: public:
//- Runtime type information //- Runtime type information
TypeName("GidaspowErgunWenYu"); TypeName("GidaspowErgunWenYu");
@ -71,9 +71,8 @@ public:
); );
// Destructor //- Destructor
virtual ~GidaspowErgunWenYu();
~GidaspowErgunWenYu();
// Member Functions // Member Functions

View File

@ -31,10 +31,10 @@ Description
Int. J. Multiphase Flow, Vol. 22, Suppl, pp. 21-66 (1996) Int. J. Multiphase Flow, Vol. 22, Suppl, pp. 21-66 (1996)
Eq. 86-87, p. 40 Eq. 86-87, p. 40
This is identical to the Wen and Yu, Rowe model Table 3.6 p.56 in This is identical to the Wen and Yu, Rowe model Table 3.6 p.56 in
the Ph.D. thesis of Berend van Wachem the Ph.D. thesis of Berend van Wachem
'Derivation, Implementation and Validation 'Derivation, Implementation and Validation
of of
Computer Simulation Models Computer Simulation Models
for Gas-Solid Fluidized Beds' for Gas-Solid Fluidized Beds'
@ -80,9 +80,8 @@ public:
); );
// Destructor //- Destructor
virtual ~GidaspowSchillerNaumann();
~GidaspowSchillerNaumann();
// Member Functions // Member Functions

View File

@ -52,7 +52,7 @@ class SchillerNaumann
{ {
public: public:
//- Runtime type information //- Runtime type information
TypeName("SchillerNaumann"); TypeName("SchillerNaumann");
@ -69,9 +69,8 @@ public:
); );
// Destructor //- Destructor
virtual ~SchillerNaumann();
~SchillerNaumann();
// Member Functions // Member Functions

View File

@ -27,7 +27,7 @@ Class
Description Description
Syamlal, M., Rogers, W. and O'Brien, T. J. (1993) MFIX documentation, Syamlal, M., Rogers, W. and O'Brien, T. J. (1993) MFIX documentation,
Theory Guide. Technical Note DOE/METC-94/1004. Morgantown, West Virginia, Theory Guide. Technical Note DOE/METC-94/1004. Morgantown, West Virginia,
USA. USA.
SourceFiles SourceFiles
@ -55,7 +55,7 @@ class SyamlalOBrien
{ {
public: public:
//- Runtime type information //- Runtime type information
TypeName("SyamlalOBrien"); TypeName("SyamlalOBrien");
@ -72,9 +72,8 @@ public:
); );
// Destructor //- Destructor
virtual ~SyamlalOBrien();
~SyamlalOBrien();
// Member Functions // Member Functions

View File

@ -83,9 +83,8 @@ public:
); );
// Destructor //- Destructor
virtual ~WenYu();
~WenYu();
// Member Functions // Member Functions

View File

@ -95,9 +95,8 @@ public:
); );
// Destructor //- Destructor
virtual ~dragModel();
virtual ~dragModel();
// Selectors // Selectors
@ -118,7 +117,7 @@ public:
// ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua) // ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua)
// **********************************<2A>NB ! ***************************** // **********************************<2A>NB ! *****************************
// for numerical reasons alpha and beta has been // for numerical reasons alpha and beta has been
// extracted from the dragFunction K, // extracted from the dragFunction K,
// so you MUST divide K by alpha*beta when implemnting the drag function // so you MUST divide K by alpha*beta when implemnting the drag function
// **********************************<2A>NB ! ***************************** // **********************************<2A>NB ! *****************************
virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0; virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0;

View File

@ -63,9 +63,8 @@ public:
GidaspowConductivity(const dictionary& dict); GidaspowConductivity(const dictionary& dict);
// Destructor //- Destructor
virtual ~GidaspowConductivity();
~GidaspowConductivity();
// Member Functions // Member Functions

View File

@ -52,7 +52,7 @@ class HrenyaSinclairConductivity
{ {
dictionary coeffsDict_; dictionary coeffsDict_;
//- characteristic length of geometry //- characteristic length of geometry
dimensionedScalar L_; dimensionedScalar L_;
@ -68,9 +68,8 @@ public:
HrenyaSinclairConductivity(const dictionary& dict); HrenyaSinclairConductivity(const dictionary& dict);
// Destructor //- Destructor
virtual ~HrenyaSinclairConductivity();
~HrenyaSinclairConductivity();
// Member Functions // Member Functions

View File

@ -53,8 +53,8 @@ class SyamlalConductivity
public: public:
//- Runtime type information //- Runtime type information
TypeName("Syamlal"); TypeName("Syamlal");
// Constructors // Constructors
@ -63,9 +63,8 @@ public:
SyamlalConductivity(const dictionary& dict); SyamlalConductivity(const dictionary& dict);
// Destructor //- Destructor
virtual ~SyamlalConductivity();
~SyamlalConductivity();
// Member Functions // Member Functions

View File

@ -97,9 +97,8 @@ public:
); );
// Destructor //- Destructor
virtual ~conductivityModel();
virtual ~conductivityModel();
// Member Functions // Member Functions

View File

@ -53,8 +53,8 @@ class JohnsonJacksonFrictionalStress
public: public:
//- Runtime type information //- Runtime type information
TypeName("JohnsonJackson"); TypeName("JohnsonJackson");
// Constructors // Constructors
@ -63,9 +63,8 @@ public:
JohnsonJacksonFrictionalStress(const dictionary& dict); JohnsonJacksonFrictionalStress(const dictionary& dict);
// Destructor //- Destructor
virtual ~JohnsonJacksonFrictionalStress();
~JohnsonJacksonFrictionalStress();
// Member functions // Member functions
@ -79,7 +78,7 @@ public:
const dimensionedScalar& eta, const dimensionedScalar& eta,
const dimensionedScalar& p const dimensionedScalar& p
) const; ) const;
virtual tmp<volScalarField> frictionalPressurePrime virtual tmp<volScalarField> frictionalPressurePrime
( (
const volScalarField& alpha, const volScalarField& alpha,
@ -96,7 +95,7 @@ public:
const dimensionedScalar& alphaMax, const dimensionedScalar& alphaMax,
const volScalarField& pf, const volScalarField& pf,
const volTensorField& D, const volTensorField& D,
const dimensionedScalar& phi const dimensionedScalar& phi
) const; ) const;
}; };

View File

@ -63,9 +63,8 @@ public:
SchaefferFrictionalStress(const dictionary& dict); SchaefferFrictionalStress(const dictionary& dict);
// Destructor //- Destructor
virtual ~SchaefferFrictionalStress();
~SchaefferFrictionalStress();
// Member functions // Member functions
@ -96,7 +95,7 @@ public:
const dimensionedScalar& alphaMax, const dimensionedScalar& alphaMax,
const volScalarField& pf, const volScalarField& pf,
const volTensorField& D, const volTensorField& D,
const dimensionedScalar& phi const dimensionedScalar& phi
) const; ) const;
}; };

View File

@ -97,9 +97,8 @@ public:
); );
// Destructor //- Destructor
virtual ~frictionalStressModel();
virtual ~frictionalStressModel();
// Member Functions // Member Functions
@ -130,7 +129,7 @@ public:
const dimensionedScalar& alphaMax, const dimensionedScalar& alphaMax,
const volScalarField& pf, const volScalarField& pf,
const volTensorField& D, const volTensorField& D,
const dimensionedScalar& phi const dimensionedScalar& phi
) const = 0; ) const = 0;
}; };

View File

@ -53,8 +53,8 @@ class LunPressure
public: public:
//- Runtime type information //- Runtime type information
TypeName("Lun"); TypeName("Lun");
// Constructors // Constructors
@ -63,9 +63,8 @@ public:
LunPressure(const dictionary& dict); LunPressure(const dictionary& dict);
// Destructor //- Destructor
virtual ~LunPressure();
~LunPressure();
// Member Functions // Member Functions

View File

@ -53,19 +53,18 @@ class SyamlalRogersOBrienPressure
public: public:
//- Runtime type information //- Runtime type information
TypeName("SyamlalRogersOBrien"); TypeName("SyamlalRogersOBrien");
// Constructors // Constructors
//- Construct from components //- Construct from components
SyamlalRogersOBrienPressure(const dictionary& dict); SyamlalRogersOBrienPressure(const dictionary& dict);
// Destructor //- Destructor
virtual ~SyamlalRogersOBrienPressure();
~SyamlalRogersOBrienPressure();
// Member Functions // Member Functions

View File

@ -65,7 +65,7 @@ Foam::kineticTheoryModel::kineticTheoryModel
equilibrium_(kineticTheoryProperties_.lookup("equilibrium")), equilibrium_(kineticTheoryProperties_.lookup("equilibrium")),
viscosityModel_ viscosityModel_
( (
viscosityModel::New kineticTheoryModels::viscosityModel::New
( (
kineticTheoryProperties_ kineticTheoryProperties_
) )

View File

@ -43,13 +43,12 @@ SourceFiles
#include "radialModel.H" #include "radialModel.H"
#include "granularPressureModel.H" #include "granularPressureModel.H"
#include "frictionalStressModel.H" #include "frictionalStressModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
//class viscosityModel;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class kineticTheoryModel Declaration Class kineticTheoryModel Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -79,7 +78,7 @@ class kineticTheoryModel
//- use generation == dissipation //- use generation == dissipation
Switch equilibrium_; Switch equilibrium_;
autoPtr<viscosityModel> viscosityModel_; autoPtr<kineticTheoryModels::viscosityModel> viscosityModel_;
autoPtr<conductivityModel> conductivityModel_; autoPtr<conductivityModel> conductivityModel_;
@ -152,9 +151,8 @@ public:
); );
// Destructor //- Destructor
virtual ~kineticTheoryModel();
~kineticTheoryModel();
// Member Functions // Member Functions

View File

@ -53,8 +53,8 @@ class CarnahanStarlingRadial
public: public:
//- Runtime type information //- Runtime type information
TypeName("CarnahanStarling"); TypeName("CarnahanStarling");
// Constructors // Constructors
@ -63,9 +63,8 @@ public:
CarnahanStarlingRadial(const dictionary& dict); CarnahanStarlingRadial(const dictionary& dict);
// Destructor //- Destructor
virtual ~CarnahanStarlingRadial();
~CarnahanStarlingRadial();
// Member Functions // Member Functions

View File

@ -53,8 +53,8 @@ class GidaspowRadial
public: public:
//- Runtime type information //- Runtime type information
TypeName("Gidaspow"); TypeName("Gidaspow");
// Constructors // Constructors
@ -63,9 +63,8 @@ public:
GidaspowRadial(const dictionary& dict); GidaspowRadial(const dictionary& dict);
// Destructor //- Destructor
virtual ~GidaspowRadial();
~GidaspowRadial();
// Member Functions // Member Functions

View File

@ -53,8 +53,8 @@ class LunSavageRadial
public: public:
//- Runtime type information //- Runtime type information
TypeName("LunSavage"); TypeName("LunSavage");
// Constructors // Constructors
@ -63,9 +63,8 @@ public:
LunSavageRadial(const dictionary& dict); LunSavageRadial(const dictionary& dict);
// Destructor //- Destructor
virtual ~LunSavageRadial();
~LunSavageRadial();
// Member Functions // Member Functions

View File

@ -53,8 +53,8 @@ class SinclairJacksonRadial
public: public:
//- Runtime type information //- Runtime type information
TypeName("SinclairJackson"); TypeName("SinclairJackson");
// Constructors // Constructors
@ -63,9 +63,8 @@ public:
SinclairJacksonRadial(const dictionary& dict); SinclairJacksonRadial(const dictionary& dict);
// Destructor //- Destructor
virtual ~SinclairJacksonRadial();
~SinclairJacksonRadial();
// Member Functions // Member Functions

View File

@ -97,9 +97,8 @@ public:
); );
// Destructor //- Destructor
virtual ~radialModel();
virtual ~radialModel();
// Member Functions // Member Functions

View File

@ -31,16 +31,21 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{
namespace kineticTheoryModels
{ {
defineTypeNameAndDebug(GidaspowViscosity, 0); defineTypeNameAndDebug(GidaspowViscosity, 0);
addToRunTimeSelectionTable(viscosityModel, GidaspowViscosity, dictionary); addToRunTimeSelectionTable(viscosityModel, GidaspowViscosity, dictionary);
} }
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::GidaspowViscosity::GidaspowViscosity(const dictionary& dict) Foam::kineticTheoryModels::GidaspowViscosity::GidaspowViscosity
(
const dictionary& dict
)
: :
viscosityModel(dict) viscosityModel(dict)
{} {}
@ -48,13 +53,14 @@ Foam::GidaspowViscosity::GidaspowViscosity(const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::GidaspowViscosity::~GidaspowViscosity() Foam::kineticTheoryModels::GidaspowViscosity::~GidaspowViscosity()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField> Foam::GidaspowViscosity::mua Foam::tmp<Foam::volScalarField>
Foam::kineticTheoryModels::GidaspowViscosity::mua
( (
const volScalarField& alpha, const volScalarField& alpha,
const volScalarField& Theta, const volScalarField& Theta,

View File

@ -41,6 +41,8 @@ SourceFiles
namespace Foam namespace Foam
{ {
namespace kineticTheoryModels
{
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class GidaspowViscosity Declaration Class GidaspowViscosity Declaration
@ -53,19 +55,17 @@ class GidaspowViscosity
public: public:
//- Runtime type information //- Runtime type information
TypeName("Gidaspow"); TypeName("Gidaspow");
// Constructors // Constructors
//- Construct from components //- Construct from components
GidaspowViscosity(const dictionary& dict); GidaspowViscosity(const dictionary& dict);
// Destructor //- Destructor
virtual ~GidaspowViscosity();
~GidaspowViscosity();
// Member functions // Member functions
@ -84,6 +84,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace kineticTheoryModels
} // End namespace Foam } // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,6 +31,8 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{
namespace kineticTheoryModels
{ {
defineTypeNameAndDebug(HrenyaSinclairViscosity, 0); defineTypeNameAndDebug(HrenyaSinclairViscosity, 0);
@ -41,11 +43,11 @@ namespace Foam
dictionary dictionary
); );
} }
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::HrenyaSinclairViscosity::HrenyaSinclairViscosity Foam::kineticTheoryModels::HrenyaSinclairViscosity::HrenyaSinclairViscosity
( (
const dictionary& dict const dictionary& dict
) )
@ -58,13 +60,14 @@ Foam::HrenyaSinclairViscosity::HrenyaSinclairViscosity
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::HrenyaSinclairViscosity::~HrenyaSinclairViscosity() Foam::kineticTheoryModels::HrenyaSinclairViscosity::~HrenyaSinclairViscosity()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField> Foam::HrenyaSinclairViscosity::mua Foam::tmp<Foam::volScalarField>
Foam::kineticTheoryModels::HrenyaSinclairViscosity::mua
( (
const volScalarField& alpha, const volScalarField& alpha,
const volScalarField& Theta, const volScalarField& Theta,
@ -76,7 +79,7 @@ Foam::tmp<Foam::volScalarField> Foam::HrenyaSinclairViscosity::mua
{ {
const scalar sqrtPi = sqrt(mathematicalConstant::pi); const scalar sqrtPi = sqrt(mathematicalConstant::pi);
volScalarField lamda = volScalarField lamda =
scalar(1) + da/(6.0*sqrt(2.0)*(alpha + scalar(1.0e-5)))/L_; scalar(1) + da/(6.0*sqrt(2.0)*(alpha + scalar(1.0e-5)))/L_;
return rhoa*da*sqrt(Theta)* return rhoa*da*sqrt(Theta)*

View File

@ -41,6 +41,8 @@ SourceFiles
namespace Foam namespace Foam
{ {
namespace kineticTheoryModels
{
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class HrenyaSinclairViscosity Declaration Class HrenyaSinclairViscosity Declaration
@ -50,17 +52,18 @@ class HrenyaSinclairViscosity
: :
public viscosityModel public viscosityModel
{ {
// Private data
dictionary coeffsDict_; dictionary coeffsDict_;
//- characteristic length of geometry //- characteristic length of geometry
dimensionedScalar L_; dimensionedScalar L_;
public: public:
//- Runtime type information //- Runtime type information
TypeName("HrenyaSinclair"); TypeName("HrenyaSinclair");
// Constructors // Constructors
@ -69,9 +72,8 @@ public:
HrenyaSinclairViscosity(const dictionary& dict); HrenyaSinclairViscosity(const dictionary& dict);
// Destructor //- Destructor
virtual ~HrenyaSinclairViscosity();
~HrenyaSinclairViscosity();
// Member functions // Member functions
@ -90,6 +92,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace kineticTheoryModels
} // End namespace Foam } // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,16 +31,21 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{
namespace kineticTheoryModels
{ {
defineTypeNameAndDebug(SyamlalViscosity, 0); defineTypeNameAndDebug(SyamlalViscosity, 0);
addToRunTimeSelectionTable(viscosityModel, SyamlalViscosity, dictionary); addToRunTimeSelectionTable(viscosityModel, SyamlalViscosity, dictionary);
} }
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::SyamlalViscosity::SyamlalViscosity(const dictionary& dict) Foam::kineticTheoryModels::SyamlalViscosity::SyamlalViscosity
(
const dictionary& dict
)
: :
viscosityModel(dict) viscosityModel(dict)
{} {}
@ -48,13 +53,13 @@ Foam::SyamlalViscosity::SyamlalViscosity(const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::SyamlalViscosity::~SyamlalViscosity() Foam::kineticTheoryModels::SyamlalViscosity::~SyamlalViscosity()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField> Foam::SyamlalViscosity::mua Foam::tmp<Foam::volScalarField> Foam::kineticTheoryModels::SyamlalViscosity::mua
( (
const volScalarField& alpha, const volScalarField& alpha,
const volScalarField& Theta, const volScalarField& Theta,

View File

@ -41,6 +41,8 @@ SourceFiles
namespace Foam namespace Foam
{ {
namespace kineticTheoryModels
{
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class SyamlalViscosity Declaration Class SyamlalViscosity Declaration
@ -53,8 +55,9 @@ class SyamlalViscosity
public: public:
//- Runtime type information //- Runtime type information
TypeName("Syamlal"); TypeName("Syamlal");
// Constructors // Constructors
@ -62,9 +65,8 @@ public:
SyamlalViscosity(const dictionary& dict); SyamlalViscosity(const dictionary& dict);
// Destructor //- Destructor
virtual ~SyamlalViscosity();
~SyamlalViscosity();
// Member functions // Member functions
@ -83,6 +85,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace kineticTheoryModels
} // End namespace Foam } // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -30,16 +30,17 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{
namespace kineticTheoryModels
{ {
defineTypeNameAndDebug(noneViscosity, 0); defineTypeNameAndDebug(noneViscosity, 0);
addToRunTimeSelectionTable(viscosityModel, noneViscosity, dictionary); addToRunTimeSelectionTable(viscosityModel, noneViscosity, dictionary);
} }
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::noneViscosity::noneViscosity(const dictionary& dict) Foam::kineticTheoryModels::noneViscosity::noneViscosity(const dictionary& dict)
: :
viscosityModel(dict) viscosityModel(dict)
{} {}
@ -47,13 +48,13 @@ Foam::noneViscosity::noneViscosity(const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::noneViscosity::~noneViscosity() Foam::kineticTheoryModels::noneViscosity::~noneViscosity()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::tmp<Foam::volScalarField> Foam::noneViscosity::mua Foam::tmp<Foam::volScalarField> Foam::kineticTheoryModels::noneViscosity::mua
( (
const volScalarField& alpha, const volScalarField& alpha,
const volScalarField& Theta, const volScalarField& Theta,

View File

@ -41,6 +41,8 @@ SourceFiles
namespace Foam namespace Foam
{ {
namespace kineticTheoryModels
{
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class noneViscosity Declaration Class noneViscosity Declaration
@ -53,19 +55,18 @@ class noneViscosity
public: public:
//- Runtime type information //- Runtime type information
TypeName("none"); TypeName("none");
// Constructors // Constructors
//- Construct from components //- Construct from components
noneViscosity(const dictionary& dict); noneViscosity(const dictionary& dict);
// Destructor //- Destructor
virtual ~noneViscosity();
~noneViscosity();
// Member functions // Member functions
@ -84,6 +85,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace kineticTheoryModels
} // End namespace Foam } // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -28,16 +28,17 @@ License
// * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::viscosityModel> Foam::viscosityModel::New Foam::autoPtr<Foam::kineticTheoryModels::viscosityModel>
Foam::kineticTheoryModels::viscosityModel::New
( (
const dictionary& dict const dictionary& dict
) )
{ {
word viscosityModelType(dict.lookup("viscosityModel")); word viscosityModelType(dict.lookup("viscosityModel"));
Info<< "Selecting viscosityModel " Info<< "Selecting viscosityModel "
<< viscosityModelType << endl; << viscosityModelType << endl;
dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(viscosityModelType); dictionaryConstructorTablePtr_->find(viscosityModelType);

View File

@ -29,15 +29,18 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{
namespace kineticTheoryModels
{ {
defineTypeNameAndDebug(viscosityModel, 0); defineTypeNameAndDebug(viscosityModel, 0);
defineRunTimeSelectionTable(viscosityModel, dictionary); defineRunTimeSelectionTable(viscosityModel, dictionary);
} }
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::viscosityModel::viscosityModel Foam::kineticTheoryModels::viscosityModel::viscosityModel
( (
const dictionary& dict const dictionary& dict
) )
@ -48,7 +51,7 @@ Foam::viscosityModel::viscosityModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::viscosityModel::~viscosityModel() Foam::kineticTheoryModels::viscosityModel::~viscosityModel()
{} {}

View File

@ -44,6 +44,8 @@ SourceFiles
namespace Foam namespace Foam
{ {
namespace kineticTheoryModels
{
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class viscosityModel Declaration Class viscosityModel Declaration
@ -99,9 +101,8 @@ public:
); );
// Destructor //- Destructor
virtual ~viscosityModel();
virtual ~viscosityModel();
// Member Functions // Member Functions
@ -120,6 +121,7 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace kineticTheoryModels
} // End namespace Foam } // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -95,9 +95,8 @@ public:
); );
// Destructor //- Destructor
virtual ~phaseModel();
~phaseModel();
// Member Functions // Member Functions
@ -131,7 +130,7 @@ public:
{ {
return U_; return U_;
} }
const surfaceScalarField& phi() const const surfaceScalarField& phi() const
{ {
return *phiPtr_; return *phiPtr_;

View File

@ -107,9 +107,8 @@ public:
static autoPtr<className> New(); static autoPtr<className> New();
// Destructor //- Destructor
~className();
~className();
// Member Functions // Member Functions