Dear all,
For couple of days I have been trying to model non-isothermal CSTR behaviour at constant pressure.
The problem that I am considering is a simple irreversible gas-phase reaction of the form:
A
B + C
I have the following thermodata for the participating species: H, Cp
My inputs are:
m
flow [kg/s] only A is in the inlet stream
T
o [K] temperature of the inlet stream and inside the reactor at time t=0
P
o=const [Pa] pressure
τ=const [sec] residence time, defined as V/Q
Can anyone tell me if my model equations are correct and how can I actually solve it? I particulary mean, how to simplify the equation 1) to somehow separate ρ and V in order to track their change over time separately in my ODEs solver?
I also assume that this is non-constant density and non-constant volume problem.
Model equations:
1) d(ρ*V)/dt = Q
in*ρ
in - Q*ρ
2) d(V*Ca)/dt = Q
in*Ca
in - Q*Ca + r*V
3) ρ*Cp
mix*V*dT/dt = Q
in*ρ
in*Cp
in*(T
in-T
o) -Q*ρ*Cp
mix*(T-T
o) + r*V*ΔH
rQ
in - [m3/s] inlet volumetric flow rate
ρ - [kg/m3] density of the mixture inside the reactor and in the outlet stream
Cp
mix - [J/kg] heat capacity of the mixture at a given temperature
Cp
in - [J/kg] heat capacity of the inlet stream
ΔH
r - [J/mole] heat of the reaction
My logic is to:
a) Use P
o, T
o, initial concentration (x
A=1, x
B=x
C=0) to work out the initial density of the mixture ρ
b) From the density, m
flow and assumed residence time τ I can find the initial volume
c) From this point I think that it is possible to initialize the solver to find ρ(t), V(t), x
i(t), T(t)
The only thing that cause the problem is the non-constant density condition. I was able to solve it for ρ=const , however this is not what I am looking for in this case I guess.
I would be very grateful for any help,
Daniel