Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
5fad0575
Commit
5fad0575
authored
Jan 24, 2019
by
Gabi Seitz
Browse files
[fix] use the correct temperature and
add the energy contribution of the chem. reaction to the gas phase
parent
83c2d1c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
test/porousmediumflow/1pncmin/implicit/discharge_nonequilibrium/params.input
View file @
5fad0575
...
...
@@ -32,7 +32,7 @@ CaO2H2Initial = 0.0
BoundaryPressure= 2e5 # [Pa] outlet pressure
BoundaryTemperature = 573.15 # [K] inlet temperature: charge: 873 K ; discharge: 473K
BoundaryMoleFraction = 0.464 # [] molefraction
boundaryTemperatureSolid =
28
5
boundaryTemperatureSolid =
573.1
5
[Vtk]
#AddVelocity = 0 # Add extra information
...
...
test/porousmediumflow/1pncmin/implicit/discharge_nonequilibrium/problem.hh
View file @
5fad0575
...
...
@@ -148,6 +148,7 @@ class Discharge_nonequilibrium_Problem : public PorousMediumFlowProblem<TypeTag>
conti0EqIdx
=
Indices
::
conti0EqIdx
,
// Phase Indices
phaseIdx
=
FluidSystem
::
phase0Idx
,
cPhaseIdx
=
SolidSystem
::
comp0Idx
,
temperatureIdx
=
Indices
::
temperatureIdx
,
...
...
@@ -355,6 +356,7 @@ public:
Scalar
deltaH
=
108e3
;
// J/mol
source
[
energyEqSolidIdx
]
=
qMole
*
deltaH
;
source
[
energyEqIdx
]
=
-
qMole
*
(
volVars
.
porosity
()
/
(
1
-
volVars
.
porosity
()))
*
(
volVars
.
pressure
(
phaseIdx
)
/
volVars
.
molarDensity
(
phaseIdx
));
return
source
;
}
...
...
test/porousmediumflow/1pncmin/implicit/discharge_nonequilibrium/reaction.hh
View file @
5fad0575
...
...
@@ -54,7 +54,7 @@ public:
using
Scalar
=
typename
VolumeVariables
::
PrimaryVariables
::
value_type
;
// calculate the equilibrium temperature Teq
Scalar
T
=
volVars
.
temperature
();
Scalar
T
=
volVars
.
temperature
Solid
();
Scalar
Teq
=
0
;
Scalar
moleFractionVapor
=
1e-3
;
...
...
@@ -223,7 +223,7 @@ public:
using
Scalar
=
typename
VolumeVariables
::
PrimaryVariables
::
value_type
;
// calculate the equilibrium temperature Teq
Scalar
T
=
volVars
.
temperature
();
Scalar
T
=
volVars
.
temperature
Solid
();
Scalar
Teq
=
0
;
Scalar
moleFractionVapor
=
1e-3
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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