Peng-Robinson Heat-Duty and Isenthalpic Flash Calculator
Solve PR outlet temperature and equilibrium compositions after a pressure drop with prescribed heat input; zero heat input gives an isenthalpic C1-C6 flash.
Results
Calculate to view linked results. Default values are examples, not recommended operating inputs.
Learn, compare and practice
Worked explanations, controlled studies and printable exercises connected to this calculation.
Calculation sequence
- Enter the inlet equilibrium pressure, temperature and C1-C6 mole fractions, then a lower or equal outlet absolute pressure and specific heat input. The entire feed is retained; this is a single equilibrium flash, not a train that removes vapor between stages. Positive q heats the fluid, negative q cools it. Zero q gives the PR isenthalpic throttling case; it does not hold temperature fixed. The synthetic default is not an operating recommendation.
- Calculate the fully checked inlet PT equilibrium and its molar enthalpy using the pinned native ideal-gas component functions plus cubic departure enthalpy. Mixture molecular weight converts specific heat from kJ/kg into J/mol. A two-phase enthalpy is a mole-fraction-weighted phase lever rule; native bulk and separately queried phase enthalpies must agree. Enthalpy reference offsets cancel only because the overall composition and reference convention are unchanged.
- At the specified outlet pressure, sample 25 temperatures from 180 to 450 K and require strictly increasing equilibrium enthalpy on that checked grid. Bracket the energy residual and use the existing fmin bisection solver, then enforce an absolute energy residual below 0.0001 J/mol. The monotonic grid is a numerical screening check, not a proof that every possible mixture has a unique physical PH root. An invalid trial flash or unbracketed target stops the calculation.
- Recalculate and fully audit the final outlet PT state, including material, fugacity, pressure and volume closure, before presenting its temperature and composition table. Single-phase results have no invented vapor quality. Temperature change is a temperature difference, not an absolute temperature. Saved work retains inlet conditions, outlet pressure, q and every feed fraction. The PDF includes the energy residual and phase allocations; CSV exports the component table.
Worked check
The synthetic PR case starts at 5 MPa and 330 K with fractions 0.50/0.15/0.15/0.10/0.05/0.05 and flashes to 1 MPa at q=0 kJ/kg. The solved outlet temperature is about 296.256406 K and vapor mole fraction is 0.840941, rather than holding temperature at 330 K. Add heat to compare evaporation, or remove heat to compare condensation within the accepted envelope. These uncalibrated demonstration values are not a measured separator benchmark.
Synthetic examples for reproducibility, not measured field results.
Assumptions and limitations
- C1-C6 only with normal C4-C6, zero binary interaction parameters, no volume translation and the pinned ideal-gas caloric functions. No C7+ heat-capacity assumption, wet/sour gas, arbitrary mixture, chemical reaction, multiple liquids or solid phase. Agreement with an independent implementation does not replace measured-PVT validation.
- Both pressures must be 0.1-10 MPa(a), outlet<=inlet; inlet and every trial/outlet temperature must remain 180-450 K. q is restricted to -500 to 500 kJ/kg and must admit an energy root in that temperature envelope. The existing endpoint near-critical/vanishing-phase and closure gates still apply. No shaft/compression work, kinetic or potential-energy changes, frictional pressure traverse or critical-flow prediction.
- Steady instantaneous vapor-liquid equilibrium with prescribed pressure and specific heat, not a coupled well heat-transfer model, PH property API with an arbitrary external enthalpy reference, separator sizing, residence time or transient simulation. The outer bounded energy root is this application's wrapper around native PT flashes, not a claim of native general mixture PH support. Failure to bracket a root is reported, never extrapolated or clipped.
Implemented equations
Steady energy balance and temperature root
Caloric phase lever rule
Fugacity equilibrium and component conservation
Sources and maintenance
Published by PetroCalcHub Team. Implementation and source checks: . This does not claim independent expert review.
- IDAES flash unit: pressure change, heat duty and total enthalpy balance
- CoolProp: enthalpy reference states and comparing enthalpy differences
- CoolProp 8.0: cubic EOS, supported inputs and uncalibrated binary interaction parameters
- CoolProp: Michelsen PT stability/phase-split method and Wilson initialization
- CoolProp v8.0.0: pinned cubic pure-component parameters
- CoolProp v8.0.0: PR/SRK alpha functions and mixing-rule implementation
- CoolProp: official JavaScript/WebAssembly wrapper
- Thermo: independently implemented PRMIX/SRKMIX equations and fugacity coefficients