REMORA
Energy Research and Forecasting: An Atmospheric Modeling Code
EOS.H File Reference
#include <REMORA_Constants.H>
#include <AMReX.H>
#include <cmath>
Include dependency graph for EOS.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::Real getTgivenRandTh (const amrex::Real rho, const amrex::Real temp)
 

Function Documentation

◆ getTgivenRandTh()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE 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 }
#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