Skip to main content
POST
/
quantlib
/
physics
/
thermodynamics
/
ideal-gas
curl --request POST \
  --url https://api.fincept.in/quantlib/physics/thermodynamics/ideal-gas \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "n": 1,
  "temperature": 273.15,
  "volume": 0.0224,
  "pressure": 101325
}
'
{
  "success": true,
  "data": {
    "entropy": 152.34,
    "internal_energy": 8724.5
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://api.fincept.in/auth/register

Body

application/json
n
number
default:1

Number of moles

Example:

2

temperature
number
default:300

Temperature (Kelvin)

Example:

350

volume
number
default:1

Volume (m³)

Example:

0.5

pressure
number
default:101325

Pressure (Pa) - informational only, not used in calculation

Example:

101325

Response

Ideal gas properties calculated successfully

success
boolean
Example:

true

data
object