10 #include <athena/athena_arrays.hpp>
11 #include <athena/mesh/mesh.hpp>
37 Real c8, c9, c10, c11, c12;
52 Real logp = log10(
p * 10.);
55 Real klowp =
c1 * atan(logT -
c2) -
56 c3 / (logp +
c4) * exp(pow(logT -
c5, 2.0)) +
c7;
58 Real khigp = c8 + c9 * logT + c10 * pow(logT, 2.) +
59 logp * (c11 + c12 * logT);
61 Real result = pow(10.0, klowp) + pow(10.0, khigp);
64 Real dens =
p / (pthermo->GetRd() * T);
67 return 0.1 * dens * result;
Real GetAttenuation(Real wave1, Real wave2, AirParcel const &var) const
Get attenuation coefficient [1/m].
static Thermodynamics const * GetInstance()
Return a pointer to the one and only instance of Thermodynamics.