AMReX-Hydro
AMReX-based hydro routines for low Mach number flows
hydro_constants.H
Go to the documentation of this file.
1
/**
2
* \file hydro_constants.H
3
*/
4
5
6
/** \addtogroup Utilities
7
* @{
8
*/
9
10
#ifndef HYDRO_CONSTANTS_H_
11
#define HYDRO_CONSTANTS_H_
12
13
#include <
AMReX_REAL.H
>
14
#include <cmath>
15
16
/**
17
* \def XVEL
18
* Index for the X velocity component.
19
*/
20
/**
21
* \def YVEL
22
* Index for the Y velocity component.
23
*/
24
/**
25
* \def ZVEL
26
* Index for the Z velocity component.
27
*/
28
#define XVEL 0
29
#define YVEL 1
30
#define ZVEL 2
31
32
/**
33
* \var small_vel
34
*
35
* What we consider a ~zero velocity when upwinding.
36
*/
37
static
constexpr amrex::Real
small_vel
= amrex::Real(1.e-8);
38
39
/**
40
* \var covered_val
41
*
42
* Value to use in covered cells.
43
*/
44
#ifdef AMREX_USE_FLOAT
45
static
constexpr amrex::Real
hydro_covered_val
= amrex::Real(1.0e20);
46
#else
47
static
constexpr amrex::Real
hydro_covered_val
= amrex::Real(1.0e40);
48
#endif
49
50
#endif
51
/** @}*/
AMReX_REAL.H
hydro_covered_val
static constexpr amrex::Real hydro_covered_val
Definition:
hydro_constants.H:47
small_vel
static constexpr amrex::Real small_vel
Definition:
hydro_constants.H:37
Utils
hydro_constants.H
Generated by
1.9.1