17 """The function is the correlation applied to CoolProp's numbers and the
18 vessel's area, nothing more. Redo it by hand."""
19 gas =
Fluid(
"nitrogen")
20 p, T, L, A, dT = 500.0 * PSI, 293.15, 0.5, 0.6, 10.0
21 film = still_gas_conductance(gas, p, T, L, A, dT)
23 rho = gas.get(
"rho", p=p, T=T)
24 mu = gas.get(
"mu", p=p, T=T)
25 k = gas.get(
"k", p=p, T=T)
26 cp = gas.get(
"cp", p=p, T=T)
27 gr = 9.80665 * (1.0 / T) * dT * L**3 / (mu / rho) ** 2
29 nu = Nu_vertical_plate_Churchill(pr, gr)
30 assert film.grashof == pytest.approx(gr)
31 assert film.prandtl == pytest.approx(pr)
32 assert film.nusselt == pytest.approx(nu)
33 assert film.hA == pytest.approx(nu * k / L * A)
46 """Grashof goes as density squared, so the same tank at a higher pressure
47 has a stiffer film. Which is the point of deriving it from the gas."""
48 gas =
Fluid(
"nitrogen")
49 low = still_gas_conductance(gas, 100.0 * PSI, 293.15, 0.45, 0.45, 10.0)
50 high = still_gas_conductance(gas, 1000.0 * PSI, 293.15, 0.45, 0.45, 10.0)
51 assert high.hA > low.hA
55 """Same tank, same pressure, different gas: the number is the gas's."""
56 n2 = still_gas_conductance(
Fluid(
"nitrogen"), 500.0 * PSI, 293.15, 0.45, 0.45)
57 he = still_gas_conductance(
Fluid(
"helium"), 500.0 * PSI, 293.15, 0.45, 0.45)
58 assert not math.isclose(n2.hA, he.hA, rel_tol=0.05)