functionObjects::forces: Corrected lookup of fluidThermo

This commit is contained in:
Henry Weller
2016-05-23 21:45:07 +01:00
parent be2ceff465
commit f67d8dd695
2 changed files with 5 additions and 5 deletions

View File

@ -1,21 +1,21 @@
EXE_INC = \
-I$(LIB_SRC)/fileFormats/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
LIB_LIBS = \
-lfluidThermophysicalModels \
-lincompressibleTransportModels \
-lcompressibleTransportModels \
-lturbulenceModels \
-lincompressibleTurbulenceModels \
-lcompressibleTurbulenceModels \
-lincompressibleTransportModels \
-lfluidThermophysicalModels \
-lspecie \
-lfileFormats \
-lfiniteVolume \

View File

@ -224,10 +224,10 @@ Foam::functionObjects::forces::devRhoReff() const
return rho()*turb.devReff();
}
else if (obr_.foundObject<fluidThermo>(fluidThermo::typeName))
else if (obr_.foundObject<fluidThermo>(fluidThermo::dictName))
{
const fluidThermo& thermo =
obr_.lookupObject<fluidThermo>(fluidThermo::typeName);
obr_.lookupObject<fluidThermo>(fluidThermo::dictName);
const volVectorField& U = obr_.lookupObject<volVectorField>(UName_);