SLFMFoam does not depend on *_POSTECH libraries

This commit is contained in:
ignis 2017-08-21 13:32:07 +09:00
parent cd6edbb818
commit b1d623fff5
2 changed files with 11 additions and 11 deletions

View file

@ -11,13 +11,12 @@ EXE_INC = \
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/ODE/lnInclude \
-I$(DEV_PATH)/chemistryModel_POSTECH/lnInclude \
-I$(DEV_PATH)/combustionModels_POSTECH/lnInclude
-I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \
-I$(LIB_SRC)/combustionModels/lnInclude
EXE_LIBS = \
-L$(FOAM_USER_LIBBIN) \
-lchemistryModel_POSTECH \
-lcombustionModels_POSTECH \
-lchemistryModel \
-lcombustionModels \
-lfiniteVolume \
-lfvOptions \
-lmeshTools \

View file

@ -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<combustionModels::rhoChemistryCombustion> combustion
autoPtr<combustionModels::rhoCombustionModel> reaction
(
dynamic_cast <combustionModels::rhoChemistryCombustion*> (pRxn)
combustionModels::rhoCombustionModel::New(mesh)
);
autoPtr<rhoChemistryModel> chemistry = combustion->chem();
rhoReactionThermo& thermo = chemistry->thermo();
rhoReactionThermo& thermo = reaction->thermo();
thermo.validate(args.executable(), "h", "e");
basicSpecieMixture& composition = thermo.composition();
@ -84,7 +83,8 @@ autoPtr<compressible::turbulenceModel> turbulence
);
// Set the turbulence into the reaction model
combustion->setTurbulence(turbulence());
reaction->setTurbulence(turbulence());
Info<< "Creating field dpdt\n" << endl;
volScalarField dpdt
@ -102,6 +102,7 @@ volScalarField dpdt
Info<< "Creating field kinetic energy K\n" << endl;
volScalarField K("K", 0.5*magSqr(U));
multivariateSurfaceInterpolationScheme<scalar>::fieldTable fields;
forAll(Y, i)