calc_liquid_component_fugacity
Calculate the fugacity of a single-liquid component using Peng-Robinson, Soave-Redlich-Kwong, Redlich-Kwong, or van der Waals equations of state. Supports Poynting correction for accurate thermodynamic modeling.
Instructions
This function calculates the fugacity of single-liquid component using different equation of states (EOS) including Peng-Robinson (PR), Soave-Redlich-Kwong (SRK), Redlich-Kwong (RK), and van der Waals (vdW). The fugacity is calculated based on the EOS used for the gas phase and Poynting correction.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
component | Yes | Component name and properties | |
eos_model | No | EOS model to use, e.g., 'SRK', 'PR' | SRK |
liquid_fugacity_mode | No | Mode for liquid fugacity calculation, 'EOS' or 'Poynting' | EOS |
pressure | Yes | Pressure of the system | |
solver_method | No | Solver method for fugacity calculation, e.g., 'least-square method', 'fsolve', 'root' | ls |
temperature | Yes | Temperature of the system |