REMORA
Energy Research and Forecasting: An Atmospheric Modeling Code
EOS.H
Go to the documentation of this file.
1 #ifndef _EOS_H_
2 #define _EOS_H_
3 
4 #include <REMORA_Constants.H>
5 #include <AMReX.H>
6 #include <cmath>
7 
8 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
9 amrex::Real getTgivenRandTh(const amrex::Real rho, const amrex::Real temp)
10 {
11  amrex::Real p_loc = p_0 * std::pow(R_d * temp * ip_0, Gamma);
12  return p_loc / (R_d * rho);
13 }
14 #endif
15 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getTgivenRandTh(const amrex::Real rho, const amrex::Real temp)
Definition: EOS.H:9
#define R_d
Definition: REMORA_Constants.H:9
#define p_0
Definition: REMORA_Constants.H:12
#define ip_0
Definition: REMORA_Constants.H:17
#define Gamma
Definition: REMORA_Constants.H:13