calc_gas_component_fugacity
Calculate gas component fugacity using Peng-Robinson, Soave-Redlich-Kwong, Redlich-Kwong, or van der Waals equations of state for 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
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| component | Yes | Component name and properties | |
| temperature | Yes | Temperature of the system | |
| pressure | Yes | Pressure of the system | |
| eos_model | No | EOS model to use, e.g., 'SRK', 'PR' | SRK |
| solver_method | No | Solver method for fugacity calculation, e.g., 'least-square method', 'fsolve', 'root' | ls |
| custom_reference_content | No | Custom reference content provided by PyThermoDB, this consists of data and equations for all components. | None |
| custom_reference_config | No | Custom reference configuration provided by PyThermoDB, this consists of the reference for data and equations for each component. | None |