calc_gas_component_fugacity
Calculate single-gas component fugacity using equation of states (EOS) like PR, SRK, RK, or vdW. Input component details, temperature, pressure, and optionally select solver method for accurate thermodynamic modeling.
Instructions
This function calculates the fugacity of single-gas component using different equation of states (EOS) including Peng-Robinson (PR), Soave-Redlich-Kwong (SRK), Redlich-Kwong (RK), and van der Waals (vdW).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
component | Yes | Component name and properties | |
custom_reference_config | No | Custom reference configuration provided by PyThermoDB, this consists of the reference for data and equations for each component. | None |
custom_reference_content | No | Custom reference content provided by PyThermoDB, this consists of data and equations for all components. | None |
eos_model | No | EOS model to use, e.g., 'SRK', 'PR' | SRK |
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 |