Thermodynamyics: rename basicThermo -> fluidThermo and veryBasicThermo -> basicThermo

This commit is contained in:
Henry
2012-08-23 14:13:13 +01:00
parent 26abc53885
commit 830c0ef382
179 changed files with 770 additions and 770 deletions

View File

@ -23,7 +23,7 @@ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lspecie \ -lspecie \
-llaminarFlameSpeedModels \ -llaminarFlameSpeedModels \

View File

@ -50,7 +50,7 @@ PDRkEpsilon::PDRkEpsilon
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const surfaceScalarField& phi, const surfaceScalarField& phi,
const basicThermo& thermophysicalModel, const fluidThermo& thermophysicalModel,
const word& turbulenceModelName, const word& turbulenceModelName,
const word& modelName const word& modelName
) )

View File

@ -100,7 +100,7 @@ public:
const volScalarField& rho, const volScalarField& rho,
const volVectorField& U, const volVectorField& U,
const surfaceScalarField& phi, const surfaceScalarField& phi,
const basicThermo& thermophysicalModel, const fluidThermo& thermophysicalModel,
const word& turbulenceModelName = turbulenceModel::typeName, const word& turbulenceModelName = turbulenceModel::typeName,
const word& modelName = typeName const word& modelName = typeName
); );

View File

@ -13,7 +13,7 @@ EXE_LIBS = \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lspecie \ -lspecie \
-llaminarFlameSpeedModels \ -llaminarFlameSpeedModels \

View File

@ -14,7 +14,7 @@ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lchemistryModel \ -lchemistryModel \
-lODE \ -lODE \
-lthermophysicalFunctions \ -lthermophysicalFunctions \

View File

@ -13,6 +13,6 @@ EXE_LIBS = \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lfiniteVolume -lfiniteVolume

View File

@ -13,7 +13,7 @@ EXE_LIBS = \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lspecie \ -lspecie \
-llaminarFlameSpeedModels \ -llaminarFlameSpeedModels \

View File

@ -33,7 +33,7 @@ EXE_LIBS = \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lsolidProperties \ -lsolidProperties \
-lsolidMixtureProperties \ -lsolidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \

View File

@ -14,7 +14,7 @@ EXE_LIBS = \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lchemistryModel \ -lchemistryModel \
-lODE \ -lODE \
-lfiniteVolume \ -lfiniteVolume \

View File

@ -16,7 +16,7 @@ EXE_LIBS = \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lchemistryModel \ -lchemistryModel \
-lODE \ -lODE \
-lfiniteVolume \ -lfiniteVolume \

View File

@ -5,6 +5,6 @@ EXE_INC = \
LIB_LIBS = \ LIB_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie -lspecie

View File

@ -9,7 +9,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lrhoCentralFoam \ -lrhoCentralFoam \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \

View File

@ -10,7 +10,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lrhoCentralFoam \ -lrhoCentralFoam \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \

View File

@ -5,7 +5,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -6,7 +6,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -8,7 +8,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -7,7 +7,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -6,7 +6,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -9,7 +9,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lthermalPorousZone \ -lthermalPorousZone \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \

View File

@ -7,7 +7,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lfiniteVolume \ -lfiniteVolume \

View File

@ -4,7 +4,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -7,7 +7,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -5,7 +5,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -7,7 +7,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lmeshTools \ -lmeshTools \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -9,7 +9,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lradiationModels \ -lradiationModels \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \

View File

@ -20,7 +20,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lsolidThermo \ -lsolidThermo \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \

View File

@ -19,7 +19,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lsolidThermo \ -lsolidThermo \
-lspecie \ -lspecie \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \

View File

@ -34,7 +34,7 @@ EXE_LIBS = \
-llagrangian \ -llagrangian \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -37,7 +37,7 @@ EXE_LIBS = \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lcoalCombustion\ -lcoalCombustion\
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -37,7 +37,7 @@ Description
#include "fvCFD.H" #include "fvCFD.H"
#include "turbulenceModel.H" #include "turbulenceModel.H"
#include "basicThermoCloud.H" #include "fluidThermoCloud.H"
#include "coalCloud.H" #include "coalCloud.H"
#include "psiCombustionModel.H" #include "psiCombustionModel.H"
#include "IObasicSourceList.H" #include "IObasicSourceList.H"

View File

@ -9,7 +9,7 @@ coalCloud coalParcels
); );
Info<< "\nConstructing limestone cloud" << endl; Info<< "\nConstructing limestone cloud" << endl;
basicThermoCloud limestoneParcels fluidThermoCloud limestoneParcels
( (
"limestoneCloud1", "limestoneCloud1",
rho, rho,

View File

@ -21,7 +21,7 @@ EXE_LIBS = \
-llagrangian \ -llagrangian \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lradiationModels \ -lradiationModels \
-lincompressibleRASModels \ -lincompressibleRASModels \

View File

@ -17,7 +17,7 @@ EXE_LIBS = \
-llagrangian \ -llagrangian \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lradiationModels \ -lradiationModels \
-lincompressibleRASModels \ -lincompressibleRASModels \

View File

@ -35,7 +35,7 @@ EXE_LIBS = \
-llagrangian \ -llagrangian \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -29,7 +29,7 @@ EXE_LIBS = \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lsolidProperties \ -lsolidProperties \
-lsolidMixtureProperties \ -lsolidMixtureProperties \
-lthermophysicalFunctions \ -lthermophysicalFunctions \

View File

@ -35,7 +35,7 @@ EXE_LIBS = \
-llagrangian \ -llagrangian \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -37,7 +37,7 @@ EXE_LIBS = \
-llagrangianIntermediate \ -llagrangianIntermediate \
-llagrangianSpray \ -llagrangianSpray \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -39,7 +39,7 @@ EXE_LIBS = \
-llagrangianIntermediate \ -llagrangianIntermediate \
-llagrangianSpray \ -llagrangianSpray \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -15,7 +15,7 @@ EXE_LIBS = \
-llagrangian \ -llagrangian \
-llagrangianIntermediate \ -llagrangianIntermediate \
-lthermophysicalFunctions \ -lthermophysicalFunctions \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lradiationModels \ -lradiationModels \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \

View File

@ -2,7 +2,7 @@ EXE_LIBS = \
-lautoMesh \ -lautoMesh \
-lbarotropicCompressibilityModel \ -lbarotropicCompressibilityModel \
-lsolidThermo \ -lsolidThermo \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lblockMesh \ -lblockMesh \
-lchemistryModel \ -lchemistryModel \
-lcoalCombustion \ -lcoalCombustion \

View File

@ -11,7 +11,7 @@ EXE_LIBS = \
-lincompressibleTransportModels \ -lincompressibleTransportModels \
-lincompressibleRASModels \ -lincompressibleRASModels \
-lincompressibleLESModels \ -lincompressibleLESModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \

View File

@ -47,7 +47,7 @@ Description
#include "incompressible/RAS/RASModel/RASModel.H" #include "incompressible/RAS/RASModel/RASModel.H"
#include "incompressible/LES/LESModel/LESModel.H" #include "incompressible/LES/LESModel/LESModel.H"
#include "basicThermo.H" #include "fluidThermo.H"
#include "compressible/RAS/RASModel/RASModel.H" #include "compressible/RAS/RASModel/RASModel.H"
#include "compressible/LES/LESModel/LESModel.H" #include "compressible/LES/LESModel/LESModel.H"
@ -265,7 +265,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
} }
else if (phi.dimensions() == dimensionSet(1, 0, -1, 0, 0)) else if (phi.dimensions() == dimensionSet(1, 0, -1, 0, 0))
{ {
autoPtr<basicThermo> thermo(basicThermo::New(mesh)); autoPtr<fluidThermo> thermo(fluidThermo::New(mesh));
volScalarField rho volScalarField rho
( (

View File

@ -33,7 +33,7 @@ Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "calc.H" #include "calc.H"
#include "basicThermo.H" #include "fluidThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -75,9 +75,9 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
) )
{ {
// thermophysical Mach // thermophysical Mach
autoPtr<basicThermo> thermo autoPtr<fluidThermo> thermo
( (
basicThermo::New(mesh) fluidThermo::New(mesh)
); );
volScalarField Cp(thermo->Cp()); volScalarField Cp(thermo->Cp());

View File

@ -7,5 +7,5 @@ EXE_LIBS = \
$(FOAM_LIBBIN)/postCalc.o \ $(FOAM_LIBBIN)/postCalc.o \
-lfiniteVolume \ -lfiniteVolume \
-lgenericPatchFields \ -lgenericPatchFields \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie -lspecie

View File

@ -18,9 +18,9 @@
{ {
volVectorField U(Uheader, mesh); volVectorField U(Uheader, mesh);
autoPtr<basicThermo> thermo autoPtr<fluidThermo> thermo
( (
basicThermo::New(mesh) fluidThermo::New(mesh)
); );
volScalarField Cp = thermo->Cp(); volScalarField Cp = thermo->Cp();

View File

@ -13,7 +13,7 @@ EXE_LIBS = \
-lincompressibleTransportModels \ -lincompressibleTransportModels \
-lincompressibleRASModels \ -lincompressibleRASModels \
-lincompressibleLESModels \ -lincompressibleLESModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \

View File

@ -39,7 +39,7 @@ Description
#include "incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H" #include "incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H"
#include "incompressible/RAS/RASModel/RASModel.H" #include "incompressible/RAS/RASModel/RASModel.H"
#include "incompressible/LES/LESModel/LESModel.H" #include "incompressible/LES/LESModel/LESModel.H"
#include "basicThermo.H" #include "fluidThermo.H"
#include "compressible/RAS/RASModel/RASModel.H" #include "compressible/RAS/RASModel/RASModel.H"
#include "compressible/LES/LESModel/LESModel.H" #include "compressible/LES/LESModel/LESModel.H"
@ -204,7 +204,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
IOdictionary RASProperties(RASPropertiesHeader); IOdictionary RASProperties(RASPropertiesHeader);
autoPtr<basicThermo> thermo(basicThermo::New(mesh)); autoPtr<fluidThermo> thermo(fluidThermo::New(mesh));
volScalarField rho volScalarField rho
( (
@ -252,7 +252,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
{ {
IOdictionary LESProperties(LESPropertiesHeader); IOdictionary LESProperties(LESPropertiesHeader);
autoPtr<basicThermo> thermo(basicThermo::New(mesh)); autoPtr<fluidThermo> thermo(fluidThermo::New(mesh));
volScalarField rho volScalarField rho
( (

View File

@ -5,7 +5,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lsolidThermo \ -lsolidThermo \
-lspecie \ -lspecie \
-lfiniteVolume \ -lfiniteVolume \

View File

@ -14,5 +14,5 @@ EXE_LIBS = \
-lgenericPatchFields \ -lgenericPatchFields \
-lspecie \ -lspecie \
-lsolid \ -lsolid \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lsolidThermo -lsolidThermo

View File

@ -1,6 +1,6 @@
autoPtr<veryBasicThermo> thermo autoPtr<basicThermo> thermo
( (
veryBasicThermo::New(mesh) basicThermo::New(mesh)
); );
const volScalarField& h = thermo->he(); const volScalarField& h = thermo->he();
@ -22,7 +22,7 @@ autoPtr<volVectorField> UPtr;
autoPtr<surfaceScalarField> phiPtr; autoPtr<surfaceScalarField> phiPtr;
autoPtr<compressible::turbulenceModel> turbulence; autoPtr<compressible::turbulenceModel> turbulence;
if (isA<basicThermo>(thermo())) if (isA<fluidThermo>(thermo()))
{ {
UPtr.reset UPtr.reset
( (
@ -51,6 +51,6 @@ if (isA<basicThermo>(thermo()))
rho, rho,
U, U,
phiPtr(), phiPtr(),
refCast<const basicThermo>(thermo()) refCast<const fluidThermo>(thermo())
); );
} }

View File

@ -7,7 +7,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lincompressibleTransportModels \ -lincompressibleTransportModels \
-lincompressibleRASModels \ -lincompressibleRASModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lfiniteVolume \ -lfiniteVolume \

View File

@ -38,7 +38,7 @@ Description
#include "incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H" #include "incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H"
#include "incompressible/RAS/RASModel/RASModel.H" #include "incompressible/RAS/RASModel/RASModel.H"
#include "basicThermo.H" #include "fluidThermo.H"
#include "compressible/RAS/RASModel/RASModel.H" #include "compressible/RAS/RASModel/RASModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -101,8 +101,8 @@ void calcCompressible
#include "compressibleCreatePhi.H" #include "compressibleCreatePhi.H"
autoPtr<basicThermo> pThermo(basicThermo::New(mesh)); autoPtr<fluidThermo> pThermo(fluidThermo::New(mesh));
basicThermo& thermo = pThermo(); fluidThermo& thermo = pThermo();
autoPtr<compressible::RASModel> model autoPtr<compressible::RASModel> model
( (

View File

@ -10,7 +10,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lincompressibleTransportModels \ -lincompressibleTransportModels \
-lincompressibleRASModels \ -lincompressibleRASModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lfiniteVolume \ -lfiniteVolume \

View File

@ -39,7 +39,7 @@ Description
#include "incompressible/RAS/RASModel/RASModel.H" #include "incompressible/RAS/RASModel/RASModel.H"
#include "nutWallFunction/nutWallFunctionFvPatchScalarField.H" #include "nutWallFunction/nutWallFunctionFvPatchScalarField.H"
#include "basicThermo.H" #include "fluidThermo.H"
#include "compressible/RAS/RASModel/RASModel.H" #include "compressible/RAS/RASModel/RASModel.H"
#include "mutWallFunction/mutWallFunctionFvPatchScalarField.H" #include "mutWallFunction/mutWallFunctionFvPatchScalarField.H"
@ -130,11 +130,11 @@ void calcCompressibleYPlus
#include "compressibleCreatePhi.H" #include "compressibleCreatePhi.H"
autoPtr<basicThermo> pThermo autoPtr<fluidThermo> pThermo
( (
basicThermo::New(mesh) fluidThermo::New(mesh)
); );
basicThermo& thermo = pThermo(); fluidThermo& thermo = pThermo();
autoPtr<compressible::RASModel> RASModel autoPtr<compressible::RASModel> RASModel
( (

View File

@ -6,7 +6,7 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lincompressibleRASModels \ -lincompressibleRASModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lfiniteVolume \ -lfiniteVolume \

View File

@ -4,5 +4,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie -lspecie

View File

@ -102,7 +102,7 @@ DebugSwitches
ChomiakInjector 0; ChomiakInjector 0;
Cloud<basicKinematicParcel> 0; Cloud<basicKinematicParcel> 0;
Cloud<basicReactingParcel> 0; Cloud<basicReactingParcel> 0;
Cloud<basicThermoParcel> 0; Cloud<fluidThermoParcel> 0;
Cloud<indexedParticle> 0; Cloud<indexedParticle> 0;
Cloud<parcel> 0; Cloud<parcel> 0;
Cloud<passiveParticle> 0; Cloud<passiveParticle> 0;
@ -170,9 +170,9 @@ DebugSwitches
KRR4 0; KRR4 0;
KinematicCloud<basicKinematicParcel> 0; KinematicCloud<basicKinematicParcel> 0;
KinematicCloud<basicReactingParcel> 0; KinematicCloud<basicReactingParcel> 0;
KinematicCloud<basicThermoParcel> 0; KinematicCloud<fluidThermoParcel> 0;
KinematicParcel<basicReactingParcel> 0; KinematicParcel<basicReactingParcel> 0;
KinematicParcel<basicThermoParcel> 0; KinematicParcel<fluidThermoParcel> 0;
LESModel 0; LESModel 0;
LESdelta 0; LESdelta 0;
LESfilter 0; LESfilter 0;
@ -280,9 +280,9 @@ DebugSwitches
TAB 0; TAB 0;
Table 0; Table 0;
ThermoCloud<basicReactingParcel> 0; ThermoCloud<basicReactingParcel> 0;
ThermoCloud<basicThermoParcel> 0; ThermoCloud<fluidThermoParcel> 0;
ThermoParcel<basicReactingParcel> 0; ThermoParcel<basicReactingParcel> 0;
ThermoParcel<basicThermoParcel> 0; ThermoParcel<fluidThermoParcel> 0;
UMIST 0; UMIST 0;
UMISTV 0; UMISTV 0;
UpwindFitData<cubicUpwindFitPolynomial> 0; UpwindFitData<cubicUpwindFitPolynomial> 0;
@ -321,9 +321,9 @@ DebugSwitches
basicMixture 0; basicMixture 0;
basicReactingCloud 0; basicReactingCloud 0;
basicReactingParcel 0; basicReactingParcel 0;
basicThermo 0; fluidThermo 0;
basicThermoCloud 0; fluidThermoCloud 0;
basicThermoParcel 0; fluidThermoParcel 0;
biLinearFit 0; biLinearFit 0;
binaryAbsorptionEmission 0; binaryAbsorptionEmission 0;
blended 0; blended 0;

View File

@ -24,7 +24,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "interRegionHeatTransferModel.H" #include "interRegionHeatTransferModel.H"
#include "basicThermo.H" #include "fluidThermo.H"
#include "fvm.H" #include "fvm.H"
#include "IObasicSourceList.H" #include "IObasicSourceList.H"
#include "zeroGradientFvPatchFields.H" #include "zeroGradientFvPatchFields.H"
@ -203,8 +203,8 @@ void Foam::interRegionHeatTransferModel::addSup
if (h.dimensions() == dimEnergy/dimMass) if (h.dimensions() == dimEnergy/dimMass)
{ {
const basicThermo& primaryThermo = const fluidThermo& primaryThermo =
mesh_.lookupObject<basicThermo>("thermophysicalProperties"); mesh_.lookupObject<fluidThermo>("thermophysicalProperties");
eEqn += htc_*Tmapped - fvm::Sp(htc_/primaryThermo.Cp(), h); eEqn += htc_*Tmapped - fvm::Sp(htc_/primaryThermo.Cp(), h);

View File

@ -108,8 +108,8 @@ calculateHtc()
"turbulenceModel" "turbulenceModel"
); );
const basicThermo& secondaryThermo = const fluidThermo& secondaryThermo =
secondaryMesh.lookupObject<basicThermo> secondaryMesh.lookupObject<fluidThermo>
( (
"thermophysicalProperties" "thermophysicalProperties"
); );

View File

@ -27,7 +27,7 @@ LIB_LIBS = \
-llagrangianIntermediate \ -llagrangianIntermediate \
-ldistributionModels \ -ldistributionModels \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -25,7 +25,7 @@ $(KINEMATICCOLLIDINGPARCEL)/makeBasicKinematicCollidingParcelSubmodels.C
/* thermo parcel sub-models */ /* thermo parcel sub-models */
THERMOPARCEL=$(DERIVEDPARCELS)/basicThermoParcel THERMOPARCEL=$(DERIVEDPARCELS)/fluidThermoParcel
$(THERMOPARCEL)/defineBasicThermoParcel.C $(THERMOPARCEL)/defineBasicThermoParcel.C
$(THERMOPARCEL)/makeBasicThermoParcelSubmodels.C $(THERMOPARCEL)/makeBasicThermoParcelSubmodels.C

View File

@ -25,8 +25,8 @@ $(KINEMATICPARCEL)/defineBasicKinematicParcel.C
$(KINEMATICPARCEL)/makeBasicKinematicParcelSubmodels.C $(KINEMATICPARCEL)/makeBasicKinematicParcelSubmodels.C
/* thermo parcel sub-models */ /* thermo parcel sub-models */
THERMOPARCEL=$(DERIVEDPARCELS)/basicThermoParcel THERMOPARCEL=$(DERIVEDPARCELS)/fluidThermoParcel
$(THERMOPARCEL)/basicThermoParcel.C $(THERMOPARCEL)/fluidThermoParcel.C
$(THERMOPARCEL)/defineBasicThermoParcel.C $(THERMOPARCEL)/defineBasicThermoParcel.C
$(THERMOPARCEL)/makeBasicThermoParcelSubmodels.C $(THERMOPARCEL)/makeBasicThermoParcelSubmodels.C

View File

@ -25,7 +25,7 @@ LIB_LIBS = \
-llagrangian \ -llagrangian \
-ldistributionModels \ -ldistributionModels \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -22,18 +22,18 @@ 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::basicThermoCloud Foam::fluidThermoCloud
Description Description
Cloud class to introduce thermodynamic parcels Cloud class to introduce thermodynamic parcels
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef basicThermoCloud_H #ifndef fluidThermoCloud_H
#define basicThermoCloud_H #define fluidThermoCloud_H
#include "ThermoCloud.H" #include "ThermoCloud.H"
#include "basicThermoParcel.H" #include "fluidThermoParcel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -45,10 +45,10 @@ namespace Foam
< <
Cloud Cloud
< <
basicThermoParcel fluidThermoParcel
> >
> >
> basicThermoCloud; > fluidThermoCloud;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -23,15 +23,15 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "basicThermoParcel.H" #include "fluidThermoParcel.H"
#include "Cloud.H" #include "Cloud.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTemplateTypeNameAndDebug(basicThermoParcel, 0); defineTemplateTypeNameAndDebug(fluidThermoParcel, 0);
defineTemplateTypeNameAndDebug(Cloud<basicThermoParcel>, 0); defineTemplateTypeNameAndDebug(Cloud<fluidThermoParcel>, 0);
} }
// ************************************************************************* // // ************************************************************************* //

View File

@ -22,18 +22,18 @@ 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::basicThermoParcel Foam::fluidThermoParcel
Description Description
Definition of basic thermo parcel Definition of basic thermo parcel
SourceFiles SourceFiles
basicThermoParcel.C fluidThermoParcel.C
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#ifndef basicThermoParcel_H #ifndef fluidThermoParcel_H
#define basicThermoParcel_H #define fluidThermoParcel_H
#include "contiguous.H" #include "contiguous.H"
#include "particle.H" #include "particle.H"
@ -44,10 +44,10 @@ SourceFiles
namespace Foam namespace Foam
{ {
typedef ThermoParcel<KinematicParcel<particle> > basicThermoParcel; typedef ThermoParcel<KinematicParcel<particle> > fluidThermoParcel;
template<> template<>
inline bool contiguous<basicThermoParcel>() inline bool contiguous<fluidThermoParcel>()
{ {
return true; return true;
} }

View File

@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "basicThermoCloud.H" #include "fluidThermoCloud.H"
#include "makeParcelCloudFunctionObjects.H" #include "makeParcelCloudFunctionObjects.H"
@ -41,17 +41,17 @@ License
namespace Foam namespace Foam
{ {
makeParcelCloudFunctionObjects(basicThermoCloud); makeParcelCloudFunctionObjects(fluidThermoCloud);
// Kinematic sub-models // Kinematic sub-models
makeThermoParcelForces(basicThermoCloud); makeThermoParcelForces(fluidThermoCloud);
makeParcelDispersionModels(basicThermoCloud); makeParcelDispersionModels(fluidThermoCloud);
makeParcelInjectionModels(basicThermoCloud); makeParcelInjectionModels(fluidThermoCloud);
makeParcelPatchInteractionModels(basicThermoCloud); makeParcelPatchInteractionModels(fluidThermoCloud);
// Thermo sub-models // Thermo sub-models
makeParcelHeatTransferModels(basicThermoCloud); makeParcelHeatTransferModels(fluidThermoCloud);
makeParcelSurfaceFilmModels(basicThermoCloud); makeParcelSurfaceFilmModels(fluidThermoCloud);
} }

View File

@ -27,7 +27,7 @@ LIB_LIBS = \
-llagrangianIntermediate \ -llagrangianIntermediate \
-ldistributionModels \ -ldistributionModels \
-lspecie \ -lspecie \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \
-lsolidProperties \ -lsolidProperties \

View File

@ -11,7 +11,7 @@ LIB_LIBS = \
-lincompressibleTransportModels \ -lincompressibleTransportModels \
-lincompressibleRASModels \ -lincompressibleRASModels \
-lincompressibleLESModels \ -lincompressibleLESModels \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleRASModels \ -lcompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \

View File

@ -33,7 +33,7 @@ License
#include "incompressible/RAS/RASModel/RASModel.H" #include "incompressible/RAS/RASModel/RASModel.H"
#include "incompressible/LES/LESModel/LESModel.H" #include "incompressible/LES/LESModel/LESModel.H"
#include "basicThermo.H" #include "fluidThermo.H"
#include "compressible/RAS/RASModel/RASModel.H" #include "compressible/RAS/RASModel/RASModel.H"
#include "compressible/LES/LESModel/LESModel.H" #include "compressible/LES/LESModel/LESModel.H"
@ -75,10 +75,10 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
return rho()*les.devReff(); return rho()*les.devReff();
} }
else if (obr_.foundObject<basicThermo>("thermophysicalProperties")) else if (obr_.foundObject<fluidThermo>("thermophysicalProperties"))
{ {
const basicThermo& thermo = const fluidThermo& thermo =
obr_.lookupObject<basicThermo>("thermophysicalProperties"); obr_.lookupObject<fluidThermo>("thermophysicalProperties");
const volVectorField& U = obr_.lookupObject<volVectorField>(UName_); const volVectorField& U = obr_.lookupObject<volVectorField>(UName_);

View File

@ -22,4 +22,4 @@ LIB_LIBS = \
-lincompressibleRASModels \ -lincompressibleRASModels \
-lcompressibleLESModels \ -lcompressibleLESModels \
-lincompressibleLESModels \ -lincompressibleLESModels \
-lbasicThermophysicalModels -lfluidThermophysicalModels

View File

@ -21,7 +21,7 @@ LIB_LIBS = \
-lspecie \ -lspecie \
-lspecie \ -lspecie \
-lsolid \ -lsolid \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lsolidChemistryModel \ -lsolidChemistryModel \
-lcompressibleTurbulenceModel \ -lcompressibleTurbulenceModel \
-lcompressibleRASModels \ -lcompressibleRASModels \

View File

@ -19,7 +19,7 @@ EXE_INC = \
LIB_LIBS = \ LIB_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lmeshTools \ -lmeshTools \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lliquidProperties \ -lliquidProperties \
-lliquidMixtureProperties \ -lliquidMixtureProperties \

View File

@ -38,7 +38,7 @@ Description
// Coupled BC. // Coupled BC.
neighbourFieldName T; neighbourFieldName T;
kappa basicThermo; kappa fluidThermo;
KName none; KName none;

View File

@ -35,7 +35,7 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::SLGThermo::SLGThermo(const fvMesh& mesh, basicThermo& thermo) Foam::SLGThermo::SLGThermo(const fvMesh& mesh, fluidThermo& thermo)
: :
MeshObject<fvMesh, SLGThermo>(mesh), MeshObject<fvMesh, SLGThermo>(mesh),
thermo_(thermo), thermo_(thermo),
@ -91,7 +91,7 @@ Foam::SLGThermo::~SLGThermo()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const Foam::basicThermo& Foam::SLGThermo::thermo() const const Foam::fluidThermo& Foam::SLGThermo::thermo() const
{ {
return thermo_; return thermo_;
} }

View File

@ -46,7 +46,7 @@ SourceFiles
#define SLGThermo_H #define SLGThermo_H
#include "MeshObject.H" #include "MeshObject.H"
#include "basicThermo.H" #include "fluidThermo.H"
#include "basicMultiComponentMixture.H" #include "basicMultiComponentMixture.H"
#include "liquidMixtureProperties.H" #include "liquidMixtureProperties.H"
#include "solidMixtureProperties.H" #include "solidMixtureProperties.H"
@ -67,7 +67,7 @@ class SLGThermo
// Private data // Private data
//- Thermo package //- Thermo package
basicThermo& thermo_; fluidThermo& thermo_;
//- Reference to the multi-component carrier phase thermo //- Reference to the multi-component carrier phase thermo
basicMultiComponentMixture* carrier_; basicMultiComponentMixture* carrier_;
@ -87,7 +87,7 @@ public:
// Constructors // Constructors
//- Construct from mesh //- Construct from mesh
SLGThermo(const fvMesh& mesh, basicThermo& thermo); SLGThermo(const fvMesh& mesh, fluidThermo& thermo);
//- Destructor //- Destructor
@ -99,7 +99,7 @@ public:
// Access // Access
//- Return reference to the thermo database //- Return reference to the thermo database
const basicThermo& thermo() const; const fluidThermo& thermo() const;
//- Return reference to the gaseous components //- Return reference to the gaseous components
const basicMultiComponentMixture& carrier() const; const basicMultiComponentMixture& carrier() const;

View File

@ -1,12 +1,12 @@
mixtures/basicMixture/basicMixture.C mixtures/basicMixture/basicMixture.C
mixtures/basicMixture/basicMixtures.C mixtures/basicMixture/basicMixtures.C
basicThermo/veryBasicThermo.C
basicThermo/veryBasicThermoNew.C
basicThermo/basicThermo.C basicThermo/basicThermo.C
basicThermo/basicThermoNew.C basicThermo/basicThermoNew.C
fluidThermo/fluidThermo.C
fluidThermo/fluidThermoNew.C
psiThermo/psiThermo/psiThermo.C psiThermo/psiThermo/psiThermo.C
psiThermo/psiThermo/psiThermoNew.C psiThermo/psiThermo/psiThermoNew.C
psiThermo/hePsiThermo/hePsiThermos.C psiThermo/hePsiThermo/hePsiThermos.C
@ -22,4 +22,4 @@ derivedFvPatchFields/energyJump/energyJumpFvPatchScalarField.C
derivedFvPatchFields/wallHeatTransfer/wallHeatTransferFvPatchScalarField.C derivedFvPatchFields/wallHeatTransfer/wallHeatTransferFvPatchScalarField.C
LIB = $(FOAM_LIBBIN)/libbasicThermophysicalModels LIB = $(FOAM_LIBBIN)/libfluidThermophysicalModels

View File

@ -25,6 +25,7 @@ License
#include "basicThermo.H" #include "basicThermo.H"
/* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */ /* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */
namespace Foam namespace Foam
@ -38,14 +39,119 @@ namespace Foam
Foam::basicThermo::basicThermo(const fvMesh& mesh) Foam::basicThermo::basicThermo(const fvMesh& mesh)
: :
veryBasicThermo(mesh) IOdictionary
(
IOobject
(
"thermophysicalProperties",
mesh.time().constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
),
p_
(
IOobject
(
"p",
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
T_
(
IOobject
(
"T",
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
alpha_
(
IOobject
(
"alpha",
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
)
{} {}
Foam::basicThermo::basicThermo(const fvMesh& mesh, const dictionary& dict) Foam::basicThermo::basicThermo
(
const fvMesh& mesh,
const dictionary& dict
)
: :
veryBasicThermo(mesh, dict) IOdictionary
(
IOobject
(
"thermophysicalProperties",
mesh.time().constant(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
dict
),
p_
(
IOobject
(
"p",
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
T_
(
IOobject
(
"T",
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
alpha_
(
IOobject
(
"alpha",
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
)
{} {}
@ -55,4 +161,36 @@ Foam::basicThermo::~basicThermo()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::volScalarField& Foam::basicThermo::p()
{
return p_;
}
const Foam::volScalarField& Foam::basicThermo::p() const
{
return p_;
}
const Foam::volScalarField& Foam::basicThermo::T() const
{
return T_;
}
const Foam::volScalarField& Foam::basicThermo::alpha() const
{
return alpha_;
}
bool Foam::basicThermo::read()
{
return regIOobject::read();
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -36,7 +36,10 @@ SourceFiles
#ifndef basicThermo_H #ifndef basicThermo_H
#define basicThermo_H #define basicThermo_H
#include "veryBasicThermo.H" #include "volFields.H"
#include "typeInfo.H"
#include "IOdictionary.H"
#include "autoPtr.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -49,9 +52,29 @@ namespace Foam
class basicThermo class basicThermo
: :
public veryBasicThermo public IOdictionary
{ {
protected:
// Protected data
// Fields
//- Pressure [Pa]
volScalarField p_;
//- Temperature [K]
volScalarField T_;
//- Laminar thermal diffusuvity [kg/m/s]
volScalarField alpha_;
//- Construct as copy (not implemented)
basicThermo(const basicThermo&);
public: public:
//- Runtime type information //- Runtime type information
@ -86,16 +109,174 @@ public:
// Member functions // Member functions
//- Update properties
virtual void correct() = 0;
// Access to thermodynamic state variables // Access to thermodynamic state variables
//- Compressibility [s^2/m^2] //- Pressure [Pa]
virtual const volScalarField& psi() const = 0; // Non-const access allowed for transport equations
virtual volScalarField& p();
//- Pressure [Pa]
virtual const volScalarField& p() const;
//- Density [kg/m^3]
virtual tmp<volScalarField> rho() const = 0;
//- Enthalpy/Internal energy [J/kg]
// Non-const access allowed for transport equations
virtual volScalarField& he() = 0;
//- Enthalpy/Internal energy [J/kg]
virtual const volScalarField& he() const = 0;
//- Enthalpy/Internal energy for cell-set [J/kg]
virtual tmp<scalarField> he
(
const scalarField& p,
const scalarField& T,
const labelList& cells
) const = 0;
//- Enthalpy/Internal energy for patch [J/kg]
virtual tmp<scalarField> he
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Chemical enthalpy [J/kg]
virtual tmp<volScalarField> hc() const = 0;
//- Temperature from enthalpy/internal energy for cell-set
virtual tmp<scalarField> THE
(
const scalarField& h,
const scalarField& p,
const scalarField& T0, // starting temperature
const labelList& cells
) const = 0;
//- Temperature from enthalpy/internal energy for patch
virtual tmp<scalarField> THE
(
const scalarField& h,
const scalarField& p,
const scalarField& T0, // starting temperature
const label patchi
) const = 0;
// Fields derived from thermodynamic state variables
//- Temperature [K]
virtual const volScalarField& T() const;
//- Heat capacity at constant pressure [J/kg/K]
virtual tmp<volScalarField> Cp() const = 0;
//- Heat capacity at constant pressure for patch [J/kg/K]
virtual tmp<scalarField> Cp
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Heat capacity at constant volume [J/kg/K]
virtual tmp<volScalarField> Cv() const = 0;
//- Heat capacity at constant volume for patch [J/kg/K]
virtual tmp<scalarField> Cv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- gamma = Cp/Cv []
virtual tmp<volScalarField> gamma() const = 0;
//- gamma = Cp/Cv for patch []
virtual tmp<scalarField> gamma
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Heat capacity at constant pressure/volume [J/kg/K]
virtual tmp<volScalarField> Cpv() const = 0;
//- Heat capacity at constant pressure/volume for patch [J/kg/K]
virtual tmp<scalarField> Cpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Heat capacity ratio []
virtual tmp<volScalarField> CpByCpv() const = 0;
//- Heat capacity ratio for patch []
virtual tmp<scalarField> CpByCpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
// Access to transport state variables // Access to transport state variables
//- Dynamic viscosity of mixture [kg/m/s] //- Thermal diffusivity for enthalpy of mixture [kg/m/s]
virtual const volScalarField& mu() const = 0; virtual const volScalarField& alpha() const;
// Fields derived from transport state variables
//- Thermal diffusivity for temperature of mixture [J/m/s/K]
virtual tmp<volScalarField> kappa() const = 0;
//- Thermal diffusivity of mixture for patch [J/m/s/K]
virtual tmp<scalarField> kappa
(
const label patchi
) const = 0;
//- Effective thermal diffusivity of mixture [J/m/s/K]
virtual tmp<volScalarField> kappaEff
(
const volScalarField&
) const = 0;
//- Effective thermal diffusivity of mixture for patch [J/m/s/K]
virtual tmp<scalarField> kappaEff
(
const scalarField& alphat,
const label patchi
) const = 0;
//- Effective thermal diffusivity of mixture [J/m/s/K]
virtual tmp<volScalarField> alphaEff
(
const volScalarField& alphat
) const = 0;
//- Effective thermal diffusivity of mixture for patch [J/m/s/K]
virtual tmp<scalarField> alphaEff
(
const scalarField& alphat,
const label patchi
) const = 0;
//- Read thermophysicalProperties dictionary
virtual bool read();
}; };

View File

@ -1,196 +0,0 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "veryBasicThermo.H"
/* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */
namespace Foam
{
defineTypeNameAndDebug(veryBasicThermo, 0);
defineRunTimeSelectionTable(veryBasicThermo, fvMesh);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::veryBasicThermo::veryBasicThermo(const fvMesh& mesh)
:
IOdictionary
(
IOobject
(
"thermophysicalProperties",
mesh.time().constant(),
mesh,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE
)
),
p_
(
IOobject
(
"p",
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
T_
(
IOobject
(
"T",
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
alpha_
(
IOobject
(
"alpha",
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
)
{}
Foam::veryBasicThermo::veryBasicThermo
(
const fvMesh& mesh,
const dictionary& dict
)
:
IOdictionary
(
IOobject
(
"thermophysicalProperties",
mesh.time().constant(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
dict
),
p_
(
IOobject
(
"p",
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
T_
(
IOobject
(
"T",
mesh.time().timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
),
alpha_
(
IOobject
(
"alpha",
mesh.time().timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
mesh,
dimensionSet(1, -1, -1, 0, 0)
)
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::veryBasicThermo::~veryBasicThermo()
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::volScalarField& Foam::veryBasicThermo::p()
{
return p_;
}
const Foam::volScalarField& Foam::veryBasicThermo::p() const
{
return p_;
}
const Foam::volScalarField& Foam::veryBasicThermo::T() const
{
return T_;
}
const Foam::volScalarField& Foam::veryBasicThermo::alpha() const
{
return alpha_;
}
bool Foam::veryBasicThermo::read()
{
return regIOobject::read();
}
// ************************************************************************* //

View File

@ -1,291 +0,0 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::veryBasicThermo
Description
Basic thermodynamic properties
SourceFiles
veryBasicThermo.C
veryBasicThermoNew.C
\*---------------------------------------------------------------------------*/
#ifndef veryBasicThermo_H
#define veryBasicThermo_H
#include "volFields.H"
#include "typeInfo.H"
#include "IOdictionary.H"
#include "autoPtr.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class veryBasicThermo Declaration
\*---------------------------------------------------------------------------*/
class veryBasicThermo
:
public IOdictionary
{
protected:
// Protected data
// Fields
//- Pressure [Pa]
volScalarField p_;
//- Temperature [K]
volScalarField T_;
//- Laminar thermal diffusuvity [kg/m/s]
volScalarField alpha_;
//- Construct as copy (not implemented)
veryBasicThermo(const veryBasicThermo&);
public:
//- Runtime type information
TypeName("veryBasicThermo");
//- Declare run-time constructor selection table
declareRunTimeSelectionTable
(
autoPtr,
veryBasicThermo,
fvMesh,
(const fvMesh& mesh),
(mesh)
);
// Constructors
//- Construct from mesh
veryBasicThermo(const fvMesh&);
//- Construct from mesh
veryBasicThermo(const fvMesh&, const dictionary&);
//- Selector
static autoPtr<veryBasicThermo> New(const fvMesh&);
//- Destructor
virtual ~veryBasicThermo();
// Member functions
//- Update properties
virtual void correct() = 0;
// Access to thermodynamic state variables
//- Pressure [Pa]
// Non-const access allowed for transport equations
virtual volScalarField& p();
//- Pressure [Pa]
virtual const volScalarField& p() const;
//- Density [kg/m^3]
virtual tmp<volScalarField> rho() const = 0;
//- Enthalpy/Internal energy [J/kg]
// Non-const access allowed for transport equations
virtual volScalarField& he() = 0;
//- Enthalpy/Internal energy [J/kg]
virtual const volScalarField& he() const = 0;
//- Enthalpy/Internal energy for cell-set [J/kg]
virtual tmp<scalarField> he
(
const scalarField& p,
const scalarField& T,
const labelList& cells
) const = 0;
//- Enthalpy/Internal energy for patch [J/kg]
virtual tmp<scalarField> he
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Chemical enthalpy [J/kg]
virtual tmp<volScalarField> hc() const = 0;
//- Temperature from enthalpy/internal energy for cell-set
virtual tmp<scalarField> THE
(
const scalarField& h,
const scalarField& p,
const scalarField& T0, // starting temperature
const labelList& cells
) const = 0;
//- Temperature from enthalpy/internal energy for patch
virtual tmp<scalarField> THE
(
const scalarField& h,
const scalarField& p,
const scalarField& T0, // starting temperature
const label patchi
) const = 0;
// Fields derived from thermodynamic state variables
//- Temperature [K]
virtual const volScalarField& T() const;
//- Heat capacity at constant pressure [J/kg/K]
virtual tmp<volScalarField> Cp() const = 0;
//- Heat capacity at constant pressure for patch [J/kg/K]
virtual tmp<scalarField> Cp
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Heat capacity at constant volume [J/kg/K]
virtual tmp<volScalarField> Cv() const = 0;
//- Heat capacity at constant volume for patch [J/kg/K]
virtual tmp<scalarField> Cv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- gamma = Cp/Cv []
virtual tmp<volScalarField> gamma() const = 0;
//- gamma = Cp/Cv for patch []
virtual tmp<scalarField> gamma
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Heat capacity at constant pressure/volume [J/kg/K]
virtual tmp<volScalarField> Cpv() const = 0;
//- Heat capacity at constant pressure/volume for patch [J/kg/K]
virtual tmp<scalarField> Cpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
//- Heat capacity ratio []
virtual tmp<volScalarField> CpByCpv() const = 0;
//- Heat capacity ratio for patch []
virtual tmp<scalarField> CpByCpv
(
const scalarField& p,
const scalarField& T,
const label patchi
) const = 0;
// Access to transport state variables
//- Thermal diffusivity for enthalpy of mixture [kg/m/s]
virtual const volScalarField& alpha() const;
// Fields derived from transport state variables
//- Thermal diffusivity for temperature of mixture [J/m/s/K]
virtual tmp<volScalarField> kappa() const = 0;
//- Thermal diffusivity of mixture for patch [J/m/s/K]
virtual tmp<scalarField> kappa
(
const label patchi
) const = 0;
//- Effective thermal diffusivity of mixture [J/m/s/K]
virtual tmp<volScalarField> kappaEff
(
const volScalarField&
) const = 0;
//- Effective thermal diffusivity of mixture for patch [J/m/s/K]
virtual tmp<scalarField> kappaEff
(
const scalarField& alphat,
const label patchi
) const = 0;
//- Effective thermal diffusivity of mixture [J/m/s/K]
virtual tmp<volScalarField> alphaEff
(
const volScalarField& alphat
) const = 0;
//- Effective thermal diffusivity of mixture for patch [J/m/s/K]
virtual tmp<scalarField> alphaEff
(
const scalarField& alphat,
const label patchi
) const = 0;
//- Read thermophysicalProperties dictionary
virtual bool read();
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //

View File

@ -26,7 +26,7 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "energyJumpFvPatchScalarField.H" #include "energyJumpFvPatchScalarField.H"
#include "temperatureJumpFvPatchScalarField.H" #include "temperatureJumpFvPatchScalarField.H"
#include "veryBasicThermo.H" #include "basicThermo.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -103,7 +103,7 @@ void Foam::energyJumpFvPatchScalarField::updateCoeffs()
if (this->cyclicPatch().owner()) if (this->cyclicPatch().owner())
{ {
const veryBasicThermo& thermo = db().lookupObject<veryBasicThermo> const basicThermo& thermo = db().lookupObject<basicThermo>
( (
"thermophysicalProperties" "thermophysicalProperties"
); );

View File

@ -25,7 +25,7 @@ License
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
#include "volFields.H" #include "volFields.H"
#include "veryBasicThermo.H" #include "basicThermo.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "fixedEnergyFvPatchScalarField.H" #include "fixedEnergyFvPatchScalarField.H"
@ -97,7 +97,7 @@ void Foam::fixedEnergyFvPatchScalarField::updateCoeffs()
return; return;
} }
const veryBasicThermo& thermo = db().lookupObject<veryBasicThermo> const basicThermo& thermo = db().lookupObject<basicThermo>
( (
"thermophysicalProperties" "thermophysicalProperties"
); );

View File

@ -27,7 +27,7 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
#include "volFields.H" #include "volFields.H"
#include "veryBasicThermo.H" #include "basicThermo.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -97,7 +97,7 @@ void Foam::gradientEnergyFvPatchScalarField::updateCoeffs()
return; return;
} }
const veryBasicThermo& thermo = db().lookupObject<veryBasicThermo> const basicThermo& thermo = db().lookupObject<basicThermo>
( (
"thermophysicalProperties" "thermophysicalProperties"
); );

View File

@ -27,7 +27,7 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
#include "volFields.H" #include "volFields.H"
#include "veryBasicThermo.H" #include "basicThermo.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -102,7 +102,7 @@ void Foam::mixedEnergyFvPatchScalarField::updateCoeffs()
return; return;
} }
const veryBasicThermo& thermo = db().lookupObject<veryBasicThermo> const basicThermo& thermo = db().lookupObject<basicThermo>
( (
"thermophysicalProperties" "thermophysicalProperties"
); );

View File

@ -27,7 +27,7 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "fvPatchFieldMapper.H" #include "fvPatchFieldMapper.H"
#include "volFields.H" #include "volFields.H"
#include "veryBasicThermo.H" #include "basicThermo.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -149,7 +149,7 @@ void Foam::wallHeatTransferFvPatchScalarField::updateCoeffs()
return; return;
} }
const veryBasicThermo& thermo = db().lookupObject<veryBasicThermo> const basicThermo& thermo = db().lookupObject<basicThermo>
( (
"thermophysicalProperties" "thermophysicalProperties"
); );

View File

@ -0,0 +1,58 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "fluidThermo.H"
/* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */
namespace Foam
{
defineTypeNameAndDebug(fluidThermo, 0);
defineRunTimeSelectionTable(fluidThermo, fvMesh);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
Foam::fluidThermo::fluidThermo(const fvMesh& mesh)
:
basicThermo(mesh)
{}
Foam::fluidThermo::fluidThermo(const fvMesh& mesh, const dictionary& dict)
:
basicThermo(mesh, dict)
{}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::fluidThermo::~fluidThermo()
{}
// ************************************************************************* //

View File

@ -0,0 +1,110 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::fluidThermo
Description
Basic thermodynamic properties
SourceFiles
fluidThermo.C
fluidThermoNew.C
\*---------------------------------------------------------------------------*/
#ifndef fluidThermo_H
#define fluidThermo_H
#include "basicThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class fluidThermo Declaration
\*---------------------------------------------------------------------------*/
class fluidThermo
:
public basicThermo
{
public:
//- Runtime type information
TypeName("fluidThermo");
//- Declare run-time constructor selection table
declareRunTimeSelectionTable
(
autoPtr,
fluidThermo,
fvMesh,
(const fvMesh& mesh),
(mesh)
);
// Constructors
//- Construct from mesh
fluidThermo(const fvMesh&);
//- Construct from mesh
fluidThermo(const fvMesh&, const dictionary&);
//- Selector
static autoPtr<fluidThermo> New(const fvMesh&);
//- Destructor
virtual ~fluidThermo();
// Member functions
// Access to thermodynamic state variables
//- Compressibility [s^2/m^2]
virtual const volScalarField& psi() const = 0;
// Access to transport state variables
//- Dynamic viscosity of mixture [kg/m/s]
virtual const volScalarField& mu() const = 0;
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //

View File

@ -23,11 +23,11 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "veryBasicThermo.H" #include "fluidThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::autoPtr<Foam::veryBasicThermo> Foam::veryBasicThermo::New Foam::autoPtr<Foam::fluidThermo> Foam::fluidThermo::New
( (
const fvMesh& mesh const fvMesh& mesh
) )
@ -57,14 +57,14 @@ Foam::autoPtr<Foam::veryBasicThermo> Foam::veryBasicThermo::New
if (cstrIter == fvMeshConstructorTablePtr_->end()) if (cstrIter == fvMeshConstructorTablePtr_->end())
{ {
FatalErrorIn("veryBasicThermo::New(const fvMesh&)") FatalErrorIn("fluidThermo::New(const fvMesh&)")
<< "Unknown veryBasicThermo type " << modelType << nl << nl << "Unknown fluidThermo type " << modelType << nl << nl
<< "Valid veryBasicThermo types are:" << nl << "Valid fluidThermo types are:" << nl
<< fvMeshConstructorTablePtr_->sortedToc() << nl << fvMeshConstructorTablePtr_->sortedToc() << nl
<< exit(FatalError); << exit(FatalError);
} }
return autoPtr<veryBasicThermo>(cstrIter()(mesh)); return autoPtr<fluidThermo>(cstrIter()(mesh));
} }

View File

@ -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/>.
InClass InClass
Foam::basicThermo Foam::fluidThermo
Description Description
Macros for creating 'basic' density-based thermo packages Macros for creating 'basic' density-based thermo packages
@ -83,7 +83,7 @@ addToRunTimeSelectionTable \
\ \
addToRunTimeSelectionTable \ addToRunTimeSelectionTable \
( \ ( \
basicThermo, \ fluidThermo, \
Cthermo##Mixture##Transport##Type##Thermo##EqnOfState, \ Cthermo##Mixture##Transport##Type##Thermo##EqnOfState, \
fvMesh \ fvMesh \
); );
@ -124,7 +124,7 @@ addToRunTimeSelectionTable \
\ \
addToRunTimeSelectionTable \ addToRunTimeSelectionTable \
( \ ( \
basicThermo, \ fluidThermo, \
Cthermo##Mixture##icoPoly##Order##Type##ThermoPhysics, \ Cthermo##Mixture##icoPoly##Order##Type##ThermoPhysics, \
fvMesh \ fvMesh \
); );

View File

@ -38,7 +38,7 @@ namespace Foam
Foam::psiThermo::psiThermo(const fvMesh& mesh) Foam::psiThermo::psiThermo(const fvMesh& mesh)
: :
basicThermo(mesh), fluidThermo(mesh),
psi_ psi_
( (

View File

@ -36,7 +36,7 @@ SourceFiles
#ifndef psiThermo_H #ifndef psiThermo_H
#define psiThermo_H #define psiThermo_H
#include "basicThermo.H" #include "fluidThermo.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -50,7 +50,7 @@ namespace Foam
class psiThermo class psiThermo
: :
public basicThermo public fluidThermo
{ {
protected: protected:

View File

@ -38,7 +38,7 @@ namespace Foam
Foam::rhoThermo::rhoThermo(const fvMesh& mesh) Foam::rhoThermo::rhoThermo(const fvMesh& mesh)
: :
basicThermo(mesh), fluidThermo(mesh),
rho_ rho_
( (
IOobject IOobject
@ -85,7 +85,7 @@ Foam::rhoThermo::rhoThermo(const fvMesh& mesh)
Foam::rhoThermo::rhoThermo(const fvMesh& mesh, const dictionary& dict) Foam::rhoThermo::rhoThermo(const fvMesh& mesh, const dictionary& dict)
: :
basicThermo(mesh, dict), fluidThermo(mesh, dict),
rho_ rho_
( (
IOobject IOobject

View File

@ -36,7 +36,7 @@ SourceFiles
#ifndef rhoThermo_H #ifndef rhoThermo_H
#define rhoThermo_H #define rhoThermo_H
#include "basicThermo.H" #include "fluidThermo.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -50,7 +50,7 @@ namespace Foam
class rhoThermo class rhoThermo
: :
public basicThermo public fluidThermo
{ {
protected: protected:

View File

@ -9,7 +9,7 @@ EXE_INC = \
-I$(LIB_SRC)/ODE/lnInclude -I$(LIB_SRC)/ODE/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lreactionThermophysicalModels \ -lreactionThermophysicalModels \
-lspecie \ -lspecie \
-lthermophysicalFunctions \ -lthermophysicalFunctions \

View File

@ -14,7 +14,7 @@ EXE_INC = \
LIB_LIBS = \ LIB_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lbasicThermophysicalModels \ -lfluidThermophysicalModels \
-lspecie \ -lspecie \
-lsolidThermo \ -lsolidThermo \
-lmeshTools \ -lmeshTools \

View File

@ -142,7 +142,7 @@ void Foam::radiation::radiationModel::correct()
Foam::tmp<Foam::fvScalarMatrix> Foam::radiation::radiationModel::Sh Foam::tmp<Foam::fvScalarMatrix> Foam::radiation::radiationModel::Sh
( (
basicThermo& thermo fluidThermo& thermo
) const ) const
{ {
volScalarField& he = thermo.he(); volScalarField& he = thermo.he();

View File

@ -45,7 +45,7 @@ SourceFiles
#include "autoPtr.H" #include "autoPtr.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
#include "volFields.H" #include "volFields.H"
#include "basicThermo.H" #include "fluidThermo.H"
#include "fvMatrices.H" #include "fvMatrices.H"
#include "blackBodyEmission.H" #include "blackBodyEmission.H"
@ -177,7 +177,7 @@ public:
virtual tmp<DimensionedField<scalar, volMesh> > Ru() const = 0; virtual tmp<DimensionedField<scalar, volMesh> > Ru() const = 0;
//- Energy source term //- Energy source term
virtual tmp<fvScalarMatrix> Sh(basicThermo& thermo) const; virtual tmp<fvScalarMatrix> Sh(fluidThermo& thermo) const;
}; };

View File

@ -60,7 +60,7 @@ Foam::radiation::greyMeanAbsorptionEmission::greyMeanAbsorptionEmission
speciesNames_(0), speciesNames_(0),
specieIndex_(label(0)), specieIndex_(label(0)),
lookUpTablePtr_(), lookUpTablePtr_(),
thermo_(mesh.lookupObject<basicThermo>("thermophysicalProperties")), thermo_(mesh.lookupObject<fluidThermo>("thermophysicalProperties")),
EhrrCoeff_(readScalar(coeffsDict_.lookup("EhrrCoeff"))), EhrrCoeff_(readScalar(coeffsDict_.lookup("EhrrCoeff"))),
Yj_(nSpecies_) Yj_(nSpecies_)
{ {

View File

@ -89,7 +89,7 @@ SourceFiles
#include "absorptionEmissionModel.H" #include "absorptionEmissionModel.H"
#include "HashTable.H" #include "HashTable.H"
#include "absorptionCoeffs.H" #include "absorptionCoeffs.H"
#include "basicThermo.H" #include "fluidThermo.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -134,7 +134,7 @@ private:
mutable autoPtr<interpolationLookUpTable<scalar> > lookUpTablePtr_; mutable autoPtr<interpolationLookUpTable<scalar> > lookUpTablePtr_;
//- SLG thermo package //- SLG thermo package
const basicThermo& thermo_; const fluidThermo& thermo_;
//- Emission constant coefficient //- Emission constant coefficient
const scalar EhrrCoeff_; const scalar EhrrCoeff_;

Some files were not shown because too many files have changed in this diff Show More