Skip to main content
POST
/
quantlib
/
physics
/
thermodynamics
/
carnot
curl --request POST \ --url https://api.fincept.in/quantlib/physics/thermodynamics/carnot \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "T_hot": 600, "T_cold": 300, "Q_hot": 1000 } '
{
  "success": true,
  "data": {
    "efficiency": 0.5,
    "work_per_cycle": 500,
    "heat_rejected": 500,
    "cop_refrigerator": 1,
    "cop_heat_pump": 2
  }
}

Authorizations

X-API-Key
string
header
required

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

Body

application/json
T_hot
number
required

Hot reservoir temperature (absolute temperature, e.g., Kelvin)

Example:

500

T_cold
number
required

Cold reservoir temperature (absolute temperature, must be less than T_hot)

Example:

300

Q_hot
number
default:1000

Heat absorbed from hot reservoir per cycle

Example:

1000

Response

Carnot cycle properties calculated successfully

success
boolean
Example:

true

data
object