As mentioned I would like to model a heat exchanger (using Python). In this case, the condenser/hx streams are both a mixture of O2 and N2
These are known for both streams:
- Inlet temperature
- Inlet flowrate (moles)
- Inlet composition (fraction of each component in each phase. Gas/liquid)
- The approach temperature of the HX is also assumed to be 5K
We cannot assume that condensation will occur. So two cases are:
- condensation of one stream occurs
- condensation does not occur
As I am modelling this mathematically, I would hope to set up a function in this form:
INPUTS:
- Inlet temperature 1 and 2
- Inlet liquid flow 1 and 2
- Inlet vapour flow 1 and 2
- Inlet vapour composition 1 and 2
- Inlet liquid composition 1 and 2
- The assumed approach temperature
OUTPUTS:
- Outlet temperature of stream 1 and 2
- Outlet liquid flow
- Outlet vapour flow
- Outlet composition of each phase
- I have equations for enthalpy of each compound also so we can calculate the outlet enthalpy too
ASSUMED KNOWLEDGE:
- I have equations for heat capacity, enthalpy, heat of vaporisation of both compounds (in function format). These take temperature as input
- I have Antoine equations/Raoults law implemented for both compounds (in function format also
I am hoping to get either a reference to an algorithm on how to do this (video, textbook, etc), or the algorithm itself
I am also available at any time to answer any questions.
Any help on this is appreciated