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:
h.weller@opencfd.co.uk
2008-06-18 23:11:09 +01:00
committed by graham
parent c27f98559e
commit 4a07840b5d
61 changed files with 170 additions and 168 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -31,10 +31,10 @@ Description
Int. J. Multiphase Flow, Vol. 22, Suppl, pp. 21-66 (1996)
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
'Derivation, Implementation and Validation
of
'Derivation, Implementation and Validation
of
Computer Simulation Models
for Gas-Solid Fluidized Beds'
@ -80,9 +80,8 @@ public:
);
// Destructor
~GidaspowSchillerNaumann();
//- Destructor
virtual ~GidaspowSchillerNaumann();
// Member Functions

View File

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

View File

@ -27,7 +27,7 @@ Class
Description
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.
SourceFiles
@ -55,7 +55,7 @@ class SyamlalOBrien
{
public:
//- Runtime type information
TypeName("SyamlalOBrien");
@ -72,9 +72,8 @@ public:
);
// Destructor
~SyamlalOBrien();
//- Destructor
virtual ~SyamlalOBrien();
// Member Functions

View File

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

View File

@ -95,9 +95,8 @@ public:
);
// Destructor
virtual ~dragModel();
//- Destructor
virtual ~dragModel();
// Selectors
@ -118,7 +117,7 @@ public:
// ddt(beta*rhob*Ub) + ... = ... alpha*beta*K*(Ub-Ua)
// **********************************<2A>NB ! *****************************
// 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
// **********************************<2A>NB ! *****************************
virtual tmp<volScalarField> K(const volScalarField& Ur) const = 0;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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