Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
cb0058bf
Commit
cb0058bf
authored
Feb 17, 2010
by
mattijs
Browse files
Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev
parents
85867eff
ce9a3064
Changes
150
Hide whitespace changes
Inline
Side-by-side
applications/solvers/combustion/dieselEngineFoam/createFields.H
View file @
cb0058bf
...
...
@@ -6,7 +6,7 @@ autoPtr<psiChemistryModel> pChemistry
);
psiChemistryModel
&
chemistry
=
pChemistry
();
hCombustionThermo
&
thermo
=
chemistry
.
thermo
();
h
s
CombustionThermo
&
thermo
=
chemistry
.
thermo
();
basicMultiComponentMixture
&
composition
=
thermo
.
composition
();
PtrList
<
volScalarField
>&
Y
=
composition
.
Y
();
...
...
@@ -50,7 +50,7 @@ volVectorField U
volScalarField
&
p
=
thermo
.
p
();
const
volScalarField
&
psi
=
thermo
.
psi
();
const
volScalarField
&
T
=
thermo
.
T
();
volScalarField
&
h
=
thermo
.
h
();
volScalarField
&
h
s
=
thermo
.
h
s
();
#include
"compressibleCreatePhi.H"
...
...
@@ -92,4 +92,18 @@ forAll(Y, i)
{
fields
.
add
(
Y
[
i
]);
}
fields
.
add
(
h
);
fields
.
add
(
hs
);
DimensionedField
<
scalar
,
volMesh
>
chemistrySh
(
IOobject
(
"chemistry::Sh"
,
runTime
.
timeName
(),
mesh
,
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
),
mesh
,
dimensionedScalar
(
"chemistrySh"
,
dimEnergy
/
dimTime
/
dimVolume
,
0
.
0
)
);
applications/solvers/combustion/dieselEngineFoam/dieselEngineFoam.C
View file @
cb0058bf
...
...
@@ -23,7 +23,7 @@ License
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Application
dieselFoam
diesel
Engine
Foam
Description
Solver for diesel engine spray and combustion.
...
...
@@ -103,13 +103,15 @@ int main(int argc, char *argv[])
kappa
=
(
runTime
.
deltaT
()
+
tc
)
/
(
runTime
.
deltaT
()
+
tc
+
tk
);
}
chemistrySh
=
kappa
*
chemistry
.
Sh
()();
#include
"rhoEqn.H"
#include
"UEqn.H"
for
(
label
ocorr
=
1
;
ocorr
<=
nOuterCorr
;
ocorr
++
)
{
#include
"YEqn.H"
#include
"hEqn.H"
#include
"h
s
Eqn.H"
// --- PISO loop
for
(
int
corr
=
1
;
corr
<=
nCorr
;
corr
++
)
...
...
applications/solvers/combustion/dieselEngineFoam/hEqn.H
deleted
100644 → 0
View file @
85867eff
{
solve
(
fvm
::
ddt
(
rho
,
h
)
+
mvConvection
->
fvmDiv
(
phi
,
h
)
-
fvm
::
laplacian
(
turbulence
->
alphaEff
(),
h
)
==
DpDt
+
dieselSpray
.
heatTransferSource
()
);
thermo
.
correct
();
}
applications/solvers/combustion/dieselEngineFoam/hsEqn.H
0 → 100644
View file @
cb0058bf
{
solve
(
fvm
::
ddt
(
rho
,
hs
)
+
mvConvection
->
fvmDiv
(
phi
,
hs
)
-
fvm
::
laplacian
(
turbulence
->
alphaEff
(),
hs
)
==
DpDt
+
dieselSpray
.
heatTransferSource
()().
dimensionedInternalField
()
+
chemistrySh
);
thermo
.
correct
();
}
applications/solvers/combustion/dieselFoam/dieselFoam.C
View file @
cb0058bf
...
...
@@ -100,7 +100,7 @@ int main(int argc, char *argv[])
for
(
label
ocorr
=
1
;
ocorr
<=
nOuterCorr
;
ocorr
++
)
{
#include
"YEqn.H"
#include
"hEqn.H"
#include
"h
s
Eqn.H"
// --- PISO loop
for
(
int
corr
=
1
;
corr
<=
nCorr
;
corr
++
)
...
...
applications/solvers/combustion/fireFoam/Allwclean
View file @
cb0058bf
...
...
@@ -3,7 +3,6 @@ cd ${0%/*} || exit 1 # run from this directory
set
-x
wclean libso combustionModels
wclean all sensibleEnthalpyCombustionThermophysicalModels
wclean
# ----------------------------------------------------------------- end-of-file
applications/solvers/combustion/fireFoam/Allwmake
View file @
cb0058bf
...
...
@@ -2,7 +2,6 @@
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
sensibleEnthalpyCombustionThermophysicalModels/Allwmake
wmake libso combustionModels
wmake
...
...
applications/solvers/combustion/fireFoam/Make/options
View file @
cb0058bf
EXE_INC = \
-I./combustionModels/lnInclude \
-I./sensibleEnthalpyCombustionThermophysicalModels/basic/lnInclude \
-I./sensibleEnthalpyCombustionThermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
...
...
@@ -11,8 +9,6 @@ EXE_INC = \
EXE_LIBS = \
-lbasicSensibleEnthalpyThermophysicalModels \
-lreactionSensibleEnthalpyThermophysicalModels \
-lcombustionModels \
-lspecie \
-lreactionThermophysicalModels \
...
...
applications/solvers/combustion/fireFoam/sensibleEnthalpyCombustionThermophysicalModels/Allwmake
deleted
100755 → 0
View file @
85867eff
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake libso basic
wmake libso reactionThermo
# ----------------------------------------------------------------- end-of-file
applications/solvers/combustion/fireFoam/sensibleEnthalpyCombustionThermophysicalModels/basic/Make/files
deleted
100644 → 0
View file @
85867eff
psiThermo/basicSensiblePsiThermo/basicSensiblePsiThermo.C
psiThermo/basicSensiblePsiThermo/newBasicSensiblePsiThermo.C
LIB = $(FOAM_LIBBIN)/libbasicSensibleEnthalpyThermophysicalModels
applications/solvers/combustion/fireFoam/sensibleEnthalpyCombustionThermophysicalModels/basic/Make/options
deleted
100644 → 0
View file @
85867eff
EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude
LIB_LIBS = \
-lfiniteVolume
applications/solvers/combustion/fireFoam/sensibleEnthalpyCombustionThermophysicalModels/reactionThermo/Make/files
deleted
100644 → 0
View file @
85867eff
combustionThermo/hsCombustionThermo/hsCombustionThermo.C
combustionThermo/hsCombustionThermo/newhsCombustionThermo.C
combustionThermo/hsCombustionThermo/hsCombustionThermos.C
LIB = $(FOAM_LIBBIN)/libreactionSensibleEnthalpyThermophysicalModels
applications/solvers/combustion/fireFoam/sensibleEnthalpyCombustionThermophysicalModels/reactionThermo/Make/options
deleted
100644 → 0
View file @
85867eff
EXE_INC = \
-I../basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude
LIB_LIBS = \
-lfiniteVolume
applications/solvers/combustion/reactingFoam/Make/options
View file @
cb0058bf
EXE_INC = \
-I../XiFoam \
-I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
...
...
applications/solvers/combustion/reactingFoam/UEqn.H
0 → 100644
View file @
cb0058bf
fvVectorMatrix
UEqn
(
fvm
::
ddt
(
rho
,
U
)
+
fvm
::
div
(
phi
,
U
)
+
turbulence
->
divDevRhoReff
(
U
)
==
rho
*
g
);
UEqn
.
relax
();
if
(
momentumPredictor
)
{
solve
(
UEqn
==
-
fvc
::
grad
(
p
));
}
applications/solvers/combustion/reactingFoam/chemistry.H
View file @
cb0058bf
...
...
@@ -21,4 +21,6 @@
{
kappa
=
1
.
0
;
}
chemistrySh
=
kappa
*
chemistry
.
Sh
()();
}
applications/solvers/combustion/reactingFoam/createFields.H
View file @
cb0058bf
...
...
@@ -5,7 +5,7 @@ autoPtr<psiChemistryModel> pChemistry
);
psiChemistryModel
&
chemistry
=
pChemistry
();
hCombustionThermo
&
thermo
=
chemistry
.
thermo
();
h
s
CombustionThermo
&
thermo
=
chemistry
.
thermo
();
basicMultiComponentMixture
&
composition
=
thermo
.
composition
();
PtrList
<
volScalarField
>&
Y
=
composition
.
Y
();
...
...
@@ -40,8 +40,8 @@ volVectorField U
volScalarField
&
p
=
thermo
.
p
();
const
volScalarField
&
psi
=
thermo
.
psi
();
volScalarField
&
h
=
thermo
.
h
();
volScalarField
&
h
s
=
thermo
.
h
s
();
const
volScalarField
&
T
=
thermo
.
T
();
#include
"compressibleCreatePhi.H"
...
...
@@ -81,5 +81,18 @@ forAll(Y, i)
{
fields
.
add
(
Y
[
i
]);
}
fields
.
add
(
h
);
fields
.
add
(
h
s
);
DimensionedField
<
scalar
,
volMesh
>
chemistrySh
(
IOobject
(
"chemistry::Sh"
,
runTime
.
timeName
(),
mesh
,
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
),
mesh
,
dimensionedScalar
(
"chemistrySh"
,
dimEnergy
/
dimTime
/
dimVolume
,
0
.
0
)
);
applications/solvers/combustion/reactingFoam/hsEqn.H
0 → 100644
View file @
cb0058bf
{
fvScalarMatrix
hsEqn
(
fvm
::
ddt
(
rho
,
hs
)
+
mvConvection
->
fvmDiv
(
phi
,
hs
)
-
fvm
::
laplacian
(
turbulence
->
alphaEff
(),
hs
)
// - fvm::laplacian(turbulence->muEff(), hs) // unit lewis no.
==
DpDt
+
chemistrySh
);
hsEqn
.
relax
();
hsEqn
.
solve
();
thermo
.
correct
();
Info
<<
"T gas min/max = "
<<
min
(
T
).
value
()
<<
", "
<<
max
(
T
).
value
()
<<
endl
;
}
applications/solvers/combustion/reactingFoam/pEqn.H
0 → 100644
View file @
cb0058bf
rho
=
thermo
.
rho
();
volScalarField
rUA
=
1
.
0
/
UEqn
.
A
();
U
=
rUA
*
UEqn
.
H
();
if
(
transonic
)
{
surfaceScalarField
phid
(
"phid"
,
fvc
::
interpolate
(
psi
)
*
(
(
fvc
::
interpolate
(
U
)
&
mesh
.
Sf
())
+
fvc
::
ddtPhiCorr
(
rUA
,
rho
,
U
,
phi
)
)
);
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
fvm
::
ddt
(
psi
,
p
)
+
fvm
::
div
(
phid
,
p
)
-
fvm
::
laplacian
(
rho
*
rUA
,
p
)
);
pEqn
.
solve
();
if
(
nonOrth
==
nNonOrthCorr
)
{
phi
==
pEqn
.
flux
();
}
}
}
else
{
phi
=
fvc
::
interpolate
(
rho
)
*
(
(
fvc
::
interpolate
(
U
)
&
mesh
.
Sf
())
+
fvc
::
ddtPhiCorr
(
rUA
,
rho
,
U
,
phi
)
);
for
(
int
nonOrth
=
0
;
nonOrth
<=
nNonOrthCorr
;
nonOrth
++
)
{
fvScalarMatrix
pEqn
(
fvm
::
ddt
(
psi
,
p
)
+
fvc
::
div
(
phi
)
-
fvm
::
laplacian
(
rho
*
rUA
,
p
)
);
pEqn
.
solve
();
if
(
nonOrth
==
nNonOrthCorr
)
{
phi
+=
pEqn
.
flux
();
}
}
}
#include
"rhoEqn.H"
#include
"compressibleContinuityErrs.H"
U
-=
rUA
*
fvc
::
grad
(
p
);
U
.
correctBoundaryConditions
();
DpDt
=
fvc
::
DDt
(
surfaceScalarField
(
"phiU"
,
phi
/
fvc
::
interpolate
(
rho
)),
p
);
applications/solvers/combustion/reactingFoam/reactingFoam.C
View file @
cb0058bf
...
...
@@ -73,9 +73,7 @@ int main(int argc, char *argv[])
{
#include
"UEqn.H"
#include
"YEqn.H"
#define Db turbulence->alphaEff()
#include
"hEqn.H"
#include
"hsEqn.H"
// --- PISO loop
for
(
int
corr
=
1
;
corr
<=
nCorr
;
corr
++
)
...
...
Prev
1
2
3
4
5
…
8
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment