I would like to find a temperature by knowing the enthalpy, is this possible? This is what i've tried so far:
V1 = 150;
V2 = 4;
T1 = 15 + 273;
Enthalpy
h[T_] := QuantityMagnitude[
ThermodynamicData["Air",
"Enthalpy", {"Temperature" -> Quantity[T, "Kelvins"]}]]
h1 = h[T1]
sol = Solve[h1 + V1^2/2 == h2 + V2^2/2]
{{h2 -> 425466.}}
FindRoot[h[T2] == h2 /. sol, {T2, 300}]
During evaluation of ThermodynamicData::quant: T2 is not a real number.
During evaluation of FindRoot::jsing: Encountered a singular Jacobian at the point {T2} = {300.}. Try perturbing the initial point(s).
{T2 -> 300.}
h
, restrict the arguments ofh
to numeric values, i.e.,h[T_?NumericQ] := ...
$\endgroup$