Skip to content
Snippets Groups Projects
Commit e17c195c authored by henry's avatar henry
Browse files

Corrected for the changes to the name and location of the turbulance models.

parent 79b0d0ca
No related branches found
No related tags found
No related merge requests found
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/LESmodels/LESdeltas/lnInclude \
-I$(LIB_SRC)/LESmodels \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude -I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/turbulenceModels/RAS \
-I$(LIB_SRC)/turbulenceModels/LES \
-I$(LIB_SRC)/turbulenceModels/LES/LESdeltas/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude
LIB_LIBS = \ LIB_LIBS = \
-lfiniteVolume \
-lmeshTools \
-lincompressibleTransportModels \
-lincompressibleTurbulenceModels \
-lincompressibleLESmodels \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lspecie \ -lspecie \
-lcompressibleLESmodels \
-lincompressibleLESmodels \
-lcompressibleTurbulenceModels \ -lcompressibleTurbulenceModels \
-lincompressibleTurbulenceModels \ -lcompressibleLESmodels
-lincompressibleTransportModels \
-lfiniteVolume \
-lmeshTools \
-lsampling
...@@ -30,12 +30,10 @@ License ...@@ -30,12 +30,10 @@ License
#include "Time.H" #include "Time.H"
#include "incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H" #include "incompressible/singlePhaseTransportModel/singlePhaseTransportModel.H"
#include "incompressible/RASmodel/RASmodel.H"
#include "incompressible/turbulenceModel/turbulenceModel.H"
#include "incompressible/LESmodel/LESmodel.H" #include "incompressible/LESmodel/LESmodel.H"
#include "basicThermo.H" #include "basicThermo.H"
#include "compressible/turbulenceModel/turbulenceModel.H" #include "compressible/RASmodel/RASmodel.H"
#include "compressible/LESmodel/LESmodel.H" #include "compressible/LESmodel/LESmodel.H"
...@@ -52,19 +50,20 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const ...@@ -52,19 +50,20 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
{ {
if if
( (
obr_.foundObject<compressible::turbulenceModel>("turbulenceProperties") obr_.foundObject<compressible::RASmodel>("turbulenceProperties")
) )
{ {
const compressible::turbulenceModel& ras const compressible::RASmodel& ras
= obr_.lookupObject<compressible::turbulenceModel> = obr_.lookupObject<compressible::RASmodel>
("turbulenceProperties"); ("turbulenceProperties");
return ras.devRhoReff(); return ras.devRhoReff();
} }
else if (obr_.foundObject<turbulenceModel>("turbulenceProperties")) else if (obr_.foundObject<incompressible::RASmodel>("turbulenceProperties"))
{ {
const turbulenceModel& ras const incompressible::RASmodel& ras
= obr_.lookupObject<turbulenceModel>("turbulenceProperties"); = obr_.lookupObject<incompressible::RASmodel>
("turbulenceProperties");
return rhoRef_*ras.devReff(); return rhoRef_*ras.devReff();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment