From c24a69be11e692419d6a7942a4c3030340dbeee7 Mon Sep 17 00:00:00 2001 From: ignis Date: Sat, 27 Jan 2018 02:12:43 +0900 Subject: [PATCH] postSootFoam combustionModel header path correction --- .../solvers/combustion/postSootFoam/Make/options | 2 +- .../solvers/combustion/postSootFoam/createFields.H | 9 ++++----- .../solvers/combustion/postSootFoam/postSootFoam.C | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/applications/solvers/combustion/postSootFoam/Make/options b/applications/solvers/combustion/postSootFoam/Make/options index ec7af9cbf..48e2394a3 100644 --- a/applications/solvers/combustion/postSootFoam/Make/options +++ b/applications/solvers/combustion/postSootFoam/Make/options @@ -24,7 +24,7 @@ EXE_INC = \ -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/properties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ - -I$(LIB_SRC)/thermophysicalModels/combustionModels/lnInclude + -I$(LIB_SRC)/combustionModels/lnInclude EXE_LIBS = \ -lchemistryModel \ diff --git a/applications/solvers/combustion/postSootFoam/createFields.H b/applications/solvers/combustion/postSootFoam/createFields.H index 74e136870..83a6e7c59 100644 --- a/applications/solvers/combustion/postSootFoam/createFields.H +++ b/applications/solvers/combustion/postSootFoam/createFields.H @@ -1,13 +1,12 @@ Info<< "\nCreating thermophysical model for Fluid mesh\n" << endl; #include "readGravitationalAcceleration.H" -combustionModels::rhoCombustionModel* pRxn = (combustionModels::rhoCombustionModel::New(mesh)).ptr(); -autoPtr combustion +autoPtr combustion ( - dynamic_cast (pRxn) + combustionModels::rhoCombustionModel::New(mesh) ); -autoPtr chemistry = combustion->chem(); -rhoReactionThermo& thermo = chemistry->thermo(); + +rhoReactionThermo& thermo = combustion->thermo(); thermo.validate(args.executable(), "ha"); SLGThermo slgThermo(mesh, thermo); basicSpecieMixture& composition = thermo.composition(); diff --git a/applications/solvers/combustion/postSootFoam/postSootFoam.C b/applications/solvers/combustion/postSootFoam/postSootFoam.C index ba916501a..4895ed2c1 100644 --- a/applications/solvers/combustion/postSootFoam/postSootFoam.C +++ b/applications/solvers/combustion/postSootFoam/postSootFoam.C @@ -33,7 +33,7 @@ Description #include "fvCFD.H" #include "turbulentFluidThermoModel.H" #include "basicReactingMultiphaseCloud.H" -#include "rhoChemistryCombustion.H" +#include "rhoCombustionModel.H" #include "radiationModel.H" #include "fvOptions.H" #include "SLGThermo.H"