reactingMixture: use the foamChemistryReader directly rather than chemistryReader::New
This formalises the flexible and extensible OpenFOAM thermodynamics and reaction format as the direct input to OpenFOAM solvers. The CHEMKIN format is still supported by first converting to the OpenFOAM format using the chemkinToFoam utility.
This commit is contained in:
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo";
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
|
||||
rm -rf 0 chemFoam.out constant/reactions constant/thermo \
|
||||
validation/OF_vs_CHEMKINII.eps validation/chemkinII
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -7,6 +7,10 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
runApplication chemkinToFoam \
|
||||
chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \
|
||||
constant/reactions constant/thermo
|
||||
|
||||
runApplication $application
|
||||
|
||||
(cd validation && ./Allrun $*)
|
||||
|
||||
@ -26,8 +26,7 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
CHEMKINFile "$FOAM_CASE/chemkin/chem.inp";
|
||||
CHEMKINThermoFile "$FOAM_CASE/chemkin/therm.dat";
|
||||
CHEMKINTransportFile "$FOAM_CASE/chemkin/transportProperties";
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo";
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
|
||||
rm -rf 0 chemFoam.out constant/reactions constant/thermo \
|
||||
validation/OF_vs_CHEMKINII.eps validation/chemkinII
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -7,6 +7,10 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
runApplication chemkinToFoam \
|
||||
chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \
|
||||
constant/reactions constant/thermo
|
||||
|
||||
runApplication $application
|
||||
|
||||
(cd validation && ./Allrun $*)
|
||||
|
||||
@ -26,8 +26,7 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
CHEMKINFile "$FOAM_CASE/chemkin/chem.inp";
|
||||
CHEMKINThermoFile "$FOAM_CASE/chemkin/therm.dat";
|
||||
CHEMKINTransportFile "$FOAM_CASE/chemkin/transportProperties";
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo";
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,6 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
|
||||
rm -rf 0 chemFoam.out constant/reactions constant/thermo \
|
||||
validation/OF_vs_CHEMKINII.eps validation/chemkinII
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,6 +7,10 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
runApplication chemkinToFoam \
|
||||
chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \
|
||||
constant/reactions constant/thermo
|
||||
|
||||
runApplication $application
|
||||
|
||||
(cd validation && ./Allrun $*)
|
||||
|
||||
@ -26,8 +26,7 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
CHEMKINFile "$FOAM_CASE/chemkin/chem.inp";
|
||||
CHEMKINThermoFile "$FOAM_CASE/chemkin/therm.dat";
|
||||
CHEMKINTransportFile "$FOAM_CASE/chemkin/transportProperties";
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo";
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -6,7 +6,7 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf 0 chemFoam.out validation/OF_vs_CHEMKINII.eps validation/chemkinII
|
||||
rm -rf 0 chemFoam.out constant/reactions constant/thermo \
|
||||
validation/OF_vs_CHEMKINII.eps validation/chemkinII
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@ -7,6 +7,10 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
runApplication chemkinToFoam \
|
||||
chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \
|
||||
constant/reactions constant/thermo
|
||||
|
||||
runApplication $application
|
||||
|
||||
(cd validation && ./Allrun $*)
|
||||
|
||||
@ -26,8 +26,7 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
CHEMKINFile "$FOAM_CASE/chemkin/chem.inp";
|
||||
CHEMKINThermoFile "$FOAM_CASE/chemkin/therm.dat";
|
||||
CHEMKINTransportFile "$FOAM_CASE/chemkin/transportProperties";
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo";
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie air;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/include/reactions.air";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
}
|
||||
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/pyrolysisRegion/reactions";
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@ inertSpecie N2;
|
||||
|
||||
fuel C3H8;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
}
|
||||
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/panelRegion/reactions";
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@ inertSpecie N2;
|
||||
|
||||
fuel C3H8;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@ inertSpecie N2;
|
||||
|
||||
fuel CH4;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -30,7 +30,6 @@ inertSpecie N2;
|
||||
|
||||
fuel CH4;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -29,7 +29,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactionsGRI";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo.compressibleGasGRI";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactionsGRI";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo.compressibleGasGRI";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactionsGRI";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo.compressibleGasGRI";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactionsGRI";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo.compressibleGasGRI";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactionsGRI";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo.compressibleGasGRI";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/gas/reactions";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/foam.dat";
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie N2;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/foam.inp";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/foam.inp";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/foam.inp";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/foam.inp";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
@ -26,7 +26,6 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
|
||||
|
||||
11
tutorials/lagrangian/sprayFoam/aachenBomb/Allclean
Executable file
11
tutorials/lagrangian/sprayFoam/aachenBomb/Allclean
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -rf constant/reactions constant/thermo
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
17
tutorials/lagrangian/sprayFoam/aachenBomb/Allrun
Executable file
17
tutorials/lagrangian/sprayFoam/aachenBomb/Allrun
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Set application name
|
||||
application=$(getApplication)
|
||||
|
||||
runApplication chemkinToFoam \
|
||||
chemkin/chem.inp chemkin/therm.dat chemkin/transportProperties \
|
||||
constant/reactions constant/thermo
|
||||
|
||||
runApplication blockMesh
|
||||
runApplication $application
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -26,9 +26,8 @@ thermoType
|
||||
specie specie;
|
||||
}
|
||||
|
||||
CHEMKINFile "$FOAM_CASE/chemkin/chem.inp";
|
||||
CHEMKINThermoFile "$FOAM_CASE/chemkin/therm.dat";
|
||||
CHEMKINTransportFile "$FOAM_CASE/chemkin/transportProperties";
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions";
|
||||
foamChemistryThermoFile "$FOAM_CASE/constant/thermo";
|
||||
|
||||
newFormat yes;
|
||||
|
||||
|
||||
@ -28,7 +28,6 @@ thermoType
|
||||
|
||||
inertSpecie AIR;
|
||||
|
||||
chemistryReader foamChemistryReader;
|
||||
|
||||
foamChemistryFile "$FOAM_CASE/constant/reactions.gas";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user