curl --request POST \
--url https://api.fincept.in/quantlib/physics/thermodynamics/joule-thomson \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"temperature": 300,
"pressure": 101325,
"Cp": 29.1,
"a": 0,
"b": 0
}
'{
"success": true,
"data": {
"joule_thomson_coefficient": 0.00000234
}
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient credits. This endpoint requires 5 credits."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}quantlib-physics
Calculate Joule-Thomson Coefficient
Calculates the Joule-Thomson coefficient μ_JT = (∂T/∂P)_H, which describes the temperature change of a gas during isenthalpic (constant enthalpy) expansion. For real gases, this coefficient can be positive (cooling) or negative (heating) depending on temperature and pressure. The inversion temperature separates these regimes.
Use Cases:
- Model non-equilibrium processes in markets
- Analyze expansion/contraction dynamics
- Study irreversible processes in trading
- Temperature-pressure analogies in finance
- Throttling process models
Formula: μ_JT = (1/C_p)[T(∂V/∂T)_P - V]
For Van der Waals gas: μ_JT ≈ (2a/RT - b)/C_p
Credits: 5 credits per request (Pro Tier) [Tier: ENTERPRISE, Credits: 10]
POST
/
quantlib
/
physics
/
thermodynamics
/
joule-thomson
curl --request POST \
--url https://api.fincept.in/quantlib/physics/thermodynamics/joule-thomson \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"temperature": 300,
"pressure": 101325,
"Cp": 29.1,
"a": 0,
"b": 0
}
'{
"success": true,
"data": {
"joule_thomson_coefficient": 0.00000234
}
}{
"detail": "Invalid API key"
}{
"detail": "Insufficient credits. This endpoint requires 5 credits."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
API key for authentication. Get your key at https://api.fincept.in/auth/register
Body
application/json
Temperature (Kelvin)
Example:
300
Pressure (Pa)
Example:
101325
Heat capacity at constant pressure (J/(mol·K))
Example:
29.1
Van der Waals parameter a (Pa·m⁶/mol²)
Example:
0.1
Van der Waals parameter b (m³/mol)
Example:
0.01
⌘I
