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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"component": "<component>",
"temperature": "<temperature>",
"pressure": "<pressure>"
},
"name": "calc_gas_component_fugacity"
}
}Input 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||