Skip to content

Commit

Permalink
add missing porosity to PorousMediaBurner.py
Browse files Browse the repository at this point in the history
The chemical source term of the gas-phase temperature equation was missing the porosity
  • Loading branch information
ThorstenZirwes authored and ischoegl committed Sep 8, 2023
1 parent c1281c1 commit 2f3ba6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/python/reactors/PorousMediaBurner.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def __init__(
# Temperature-dependent fits from measurements:
# SiC: Thermal conductivity in hot-pressed silicon carbide, D.-K. Liu, B.-W. Lin,
# Ceramics International, 22(5), pp. 407-414 (1996)
# Note that in this simple model, 0.84 is the porosity of the SiC foams
def effectiveConductivitySiC(Ts): # for silicon carbide
return (1 - 0.84) * 1857.0 * Ts**(-0.5332)

Expand Down Expand Up @@ -313,7 +314,7 @@ def replace_eval(self, t, LHS, RHS):
# convective transport
RHS[Tindex] += self.A * mdot * (h_in - enthalpy_loss)
# chemical contribution
RHS[Tindex] += hrr * self.V
RHS[Tindex] += hrr * self.V * porosity

def before_component_index(self, name):
if name == "Ts":
Expand Down

0 comments on commit 2f3ba6a

Please sign in to comment.