Skip to main content
POST
/
quantlib
/
physics
/
thermodynamics
/
free-energy
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/physics/thermodynamics/free-energy \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "internal_energy": 1000,
  "temperature": 300,
  "entropy": 2.5,
  "type": "helmholtz"
}
'
{
  "success": true,
  "data": {
    "gibbs_free_energy": 2520.68,
    "helmholtz_free_energy": 250,
    "enthalpy": 3270.68
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
internal_energy
number
required

Internal energy U

Example:

1000

temperature
number
required

Temperature T

Example:

300

entropy
number
required

Entropy S

Example:

2.5

pressure
number
default:0

Pressure P (required for Gibbs and enthalpy)

Example:

101325

volume
number
default:0

Volume V (required for Gibbs and enthalpy)

Example:

0.0224

type
enum<string>
default:gibbs

Type of free energy to calculate

Available options:
gibbs,
helmholtz,
enthalpy
Example:

"helmholtz"

Response

Free energy calculated successfully

success
boolean
Example:

true

data
object