mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -5,7 +5,7 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
keepCases="moriyoshiHomogeneous"
|
||||
loseCases="moriyoshiHomogeneousPart2"
|
||||
loseCases="moriyoshiHomogeneousPart2 moriyoshiHomogeneousHydrogen"
|
||||
|
||||
for caseName in $keepCases
|
||||
do
|
||||
|
||||
@ -6,21 +6,25 @@ cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
setControlDict()
|
||||
{
|
||||
controlDict="system/controlDict"
|
||||
|
||||
sed \
|
||||
-e s/"\(deltaT[ \t]*\) 5e-06;"/"\1 1e-05;"/g \
|
||||
-e s/"\(endTime[ \t]*\) 0.005;"/"\1 0.015;"/g \
|
||||
-e s/"\(writeInterval[ \t]*\) 10;"/"\1 50;"/g \
|
||||
$controlDict > temp.$$
|
||||
mv temp.$$ $controlDict
|
||||
-e "s/\(deltaT[ \t]*\) 5e-06;/\1 1e-05;/g" \
|
||||
-e "s/\(endTime[ \t]*\) 0.005;/\1 0.015;/g" \
|
||||
-e "s/\(writeInterval[ \t]*\) 10;/\1 50;/g" \
|
||||
-i system/controlDict
|
||||
}
|
||||
|
||||
setCombustionProperties()
|
||||
{
|
||||
sed \
|
||||
-e "s/\(laminarFlameSpeedCorrelation[ \t]*\) Gulders;/\1 RaviPetersen;/g" \
|
||||
-e "s/\(fuel[ \t]*\) Propane;/\1 HydrogenInAir;/g" \
|
||||
-i constant/combustionProperties
|
||||
}
|
||||
|
||||
# Do moriyoshiHomogeneous
|
||||
( cd moriyoshiHomogeneous && foamRunTutorials )
|
||||
|
||||
# Clone case
|
||||
# Clone case for second phase
|
||||
cloneCase moriyoshiHomogeneous moriyoshiHomogeneousPart2
|
||||
|
||||
# Modify and execute
|
||||
@ -32,4 +36,19 @@ cloneCase moriyoshiHomogeneous moriyoshiHomogeneousPart2
|
||||
runApplication `getApplication`
|
||||
)
|
||||
|
||||
# Clone case for hydrogen
|
||||
cloneCase moriyoshiHomogeneous moriyoshiHomogeneousHydrogen
|
||||
|
||||
# Modify and execute
|
||||
(
|
||||
cd moriyoshiHomogeneousHydrogen || exit
|
||||
|
||||
setCombustionProperties
|
||||
mv constant/thermophysicalProperties \
|
||||
constant/thermophysicalProperties.propane
|
||||
mv constant/thermophysicalProperties.hydrogen \
|
||||
constant/thermophysicalProperties
|
||||
runApplication `getApplication`
|
||||
)
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
||||
|
||||
@ -68,6 +68,36 @@ GuldersCoeffs
|
||||
}
|
||||
}
|
||||
|
||||
RaviPetersenCoeffs
|
||||
{
|
||||
HydrogenInAir
|
||||
{
|
||||
TRef 320;
|
||||
pPoints ( 1.0e05 5.0e05 1.0e06 2.0e06 3.0e06 );
|
||||
EqRPoints ( 0.5 2.0 5.0 );
|
||||
alpha ( ( (-0.03 -2.347 9.984 -6.734 1.361)
|
||||
( 1.61 -9.708 19.026 -11.117 2.098)
|
||||
( 2.329 -12.287 21.317 -11.973 2.207)
|
||||
( 2.593 -12.813 20.815 -11.471 2.095)
|
||||
( 2.728 -13.164 20.794 -11.418 2.086) )
|
||||
( ( 3.558 0.162 -0.247 0.0253 0 )
|
||||
( 4.818 -0.872 -0.053 0.0138 0 )
|
||||
( 3.789 -0.312 -0.208 0.028 0 )
|
||||
( 4.925 -1.841 0.211 -0.0059 0 )
|
||||
( 4.505 -1.906 0.259 -0.0105 0 ) ) );
|
||||
beta ( ( ( 5.07 -6.42 3.87 -0.767)
|
||||
( 5.52 -6.73 3.88 -0.728)
|
||||
( 5.76 -6.92 3.92 -0.715)
|
||||
( 6.02 -7.44 4.37 -0.825)
|
||||
( 7.84 -11.55 7.14 -1.399) )
|
||||
( ( 1.405 0.053 0.022 0 )
|
||||
( 1.091 0.317 0 0 )
|
||||
( 1.64 -0.03 0.07 0 )
|
||||
( 0.84 0.56 0 0 )
|
||||
( 0.81 0.64 0 0 ) ) );
|
||||
}
|
||||
}
|
||||
|
||||
ignite yes;
|
||||
|
||||
ignitionSites
|
||||
|
||||
@ -0,0 +1,76 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object thermophysicalProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
thermoType
|
||||
{
|
||||
type heheuPsiThermo;
|
||||
mixture homogeneousMixture;
|
||||
transport sutherland;
|
||||
thermo janaf;
|
||||
equationOfState perfectGas;
|
||||
specie specie;
|
||||
energy absoluteEnthalpy;
|
||||
}
|
||||
|
||||
stoichiometricAirFuelMassRatio stoichiometricAirFuelMassRatio [ 0 0 0 0 0 0 0 ] 34.074;
|
||||
|
||||
reactants
|
||||
{
|
||||
specie
|
||||
{
|
||||
nMoles 24.8095;
|
||||
molWeight 16.0243;
|
||||
}
|
||||
thermodynamics
|
||||
{
|
||||
Tlow 200;
|
||||
Thigh 5000;
|
||||
Tcommon 1000;
|
||||
highCpCoeffs ( 3.02082 0.00104314 -2.88613e-07 4.20369e-11 -2.37182e-15 -902.964 2.3064 );
|
||||
lowCpCoeffs ( 2.99138 0.00343493 -8.43792e-06 9.57755e-09 -3.75097e-12 -987.16 1.95123 );
|
||||
}
|
||||
transport
|
||||
{
|
||||
As 1.67212e-06;
|
||||
Ts 170.672;
|
||||
}
|
||||
}
|
||||
|
||||
products
|
||||
{
|
||||
specie
|
||||
{
|
||||
nMoles 1;
|
||||
molWeight 17.9973;
|
||||
}
|
||||
thermodynamics
|
||||
{
|
||||
Tlow 200;
|
||||
Thigh 5000;
|
||||
Tcommon 1000;
|
||||
highCpCoeffs ( 2.879 0.00161934 -4.61257e-07 6.41382e-11 -3.3855e-15 -8023.54 4.11691 );
|
||||
lowCpCoeffs ( 3.3506 0.00176018 -4.28718e-06 5.63372e-09 -2.35948e-12 -8211.42 1.36387 );
|
||||
}
|
||||
transport
|
||||
{
|
||||
As 1.67212e-06;
|
||||
Ts 170.672;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user