Config_VVM#

class Config_VVM#

Public Functions

inline Config_VVM(double dt, double dx, double dz, int XRANGE, int ZRANGE, double TIMEEND, int TIMEROUTPUTSIZE, std::string outputpath, int OUTPUTSTEP, double Kx, double Kz, double TIMETS, double tolerance, double GRAVITY, double Cp, double Cv, double Rd, double Lv, double P0, double PSURF, double addforcingtime, int CASE, double mositure_nudge_time)#
inline ~Config_VVM()#

Public Members

double dt#

Time step for vvm [s].

double dx#

Grid size in x-direction [m].

double dz#

Grid size in z-direction [m]. It should be the same as dx.

int XRANGE#

Domain size of the model in x-direction [m].

int ZRANGE#

Domain size of the model in z-direction [m].

double TIMEEND#

End time of the simulation [s].

int TIMEROUTPUTSIZE#

The size of the timer output.

std::string outputpath#

The path for the output file. It should be a directory, such as “/data/vvm/”.

int OUTPUTSTEP#

The output interval for the output file.

double Kx#

The eddy diffusion coefficient in x-direction [m^2/s], this is activated when DIFFUSION flag is turned on. If the flag is not turned on, the coeffcient will be calculated through the turbulent closure.

double Kz#

The eddy diffusion coefficient in z-direction [m^2/s], this is activated when DIFFUSION flag is turned on. If the flag is not turned on, the coeffcient will be calculated through the turbulent closure.

double TIMETS#

The time filter coefficient [s] for Leapfrog. This is activated when TIMEFILTER flag is turned on. Only need to turn on when Leapfrog is used.

double tolerance#

The tolerance for the Poisson Solver.

double GRAVITY#

The gravity acceleration [m/s^2]. It’s 9.80665 m/s^2 for default.

double Cp#

The specific heat capacity at constant pressure [J/kg/K]. It’s 1003.5 J/kg/K for default.

double Cv#

The specific heat capacity at constant volume [J/kg/K]. It’s 716.5 J/kg/K for default.

double Rd#

The gas constant for dry air [J/kg/K]. It’s 287 J/kg/K for default.

double Lv#

The latent heat of vaporization [J/kg]. It’s 2.5E6 J/kg for default.

double P0#

The reference pressure [Pa]. It’s 1E5 Pa for default.

double PSURF#

The surface pressure [Pa]. It’s 96500 Pa for default.

double addforcingtime#

The time for adding the perturbation. The perturbation is used to break the symmetry of the model.

int CASE#

The case number for the model. It’s used to specify the initial condition and the forcing. If CASE is 0, the initial condition is equal to mean state. If CASE is 1, the initial condition is equal to mean state plus a warm bubble.

double mositure_nudge_time#

The time for nudging the moisture. It’s used for nudging the moisture to the mean state. It’s used for nudging the moisture to the mean state.