0
$\begingroup$
ThermodynamicData["Ammonia", "Enthalpy", {"Temperature" -> t,"Pressure" -> p}]

works fine, but how can I get temperature when pressure and enthalpy are given?

$\endgroup$
3
$\begingroup$

i suppose you can use standard numerical methods..

 h[t_?NumericQ, p_?NumericQ] := 
 QuantityMagnitude[
   ThermodynamicData["Ammonia", 
    "Enthalpy", {"Temperature" -> Quantity[t, "Kelvins"], 
     "Pressure" -> Quantity[p, "MegaPascals"]}]]

FindRoot[h[t,.4] == 19300, {t, 200}]

{t -> 199.982}

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.