Alpine3D 20241222.625fd38
SnowDrift.h File Reference
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <meteoio/MeteoIO.h>
#include <meteoio/plugins/ARPSIO.h>
#include <alpine3d/SnowpackInterface.h>
#include <alpine3d/ebalance/EnergyBalance.h>
#include <alpine3d/snowdrift/checksum.h>

Go to the source code of this file.

Classes

struct  WIND_FIELD
 
class  SnowDriftA3D
 

Macros

#define WS0   0.5
 
#define TKE   0
 
#define SALTATION   1
 switch for saltation simulation More...
 
#define SUBLIMATION   0
 switch for drifting snow sublimation More...
 
#define FIELD3D_OUTPUT   0
 output with all three-dimensional fields (only possible for sublimation) More...
 
#define SUBLIMATION_OUTPUT   0
 debug output of drifting snow sublimation More...
 
#define T_FB   1
 switch for feedback between sublimation and air temperature More...
 
#define Q_FB   1
 switch for feedback between sublimation and humidity More...
 
#define C_FB   1
 switch for feedback between sublimation and snow concentration More...
 
#define READK   0
 define as 1 if you have K from ARPS wind fields INCLUDING turbulence More...
 
#define WRITE_DRIFT_FLUXES   0
 set to 1 in order to write snow drift fluxes More...
 
#define dt_diff   0.5
 Small calculation step length for snow diffusion. More...
 

Typedefs

typedef mio::Array2D< int > CElementArray
 
typedef mio::Array1D< double > CDoubleArray
 
typedef mio::Array1D< int > CIntArray
 

Enumerations

enum  DRIFT_OUTPUT { OUT_CONC , OUT_SUBL }
 
enum  param_type {
  CON , HUM , SUB , TEM ,
  SUB2
}
 
enum  aspect_type { OTHER , BOTTOM }
 

Macro Definition Documentation

◆ C_FB

#define C_FB   1

switch for feedback between sublimation and snow concentration

◆ dt_diff

#define dt_diff   0.5

Small calculation step length for snow diffusion.

◆ FIELD3D_OUTPUT

#define FIELD3D_OUTPUT   0

output with all three-dimensional fields (only possible for sublimation)

◆ Q_FB

#define Q_FB   1

switch for feedback between sublimation and humidity

◆ READK

#define READK   0

define as 1 if you have K from ARPS wind fields INCLUDING turbulence

◆ SALTATION

#define SALTATION   1

switch for saltation simulation

◆ SUBLIMATION

#define SUBLIMATION   0

switch for drifting snow sublimation

◆ SUBLIMATION_OUTPUT

#define SUBLIMATION_OUTPUT   0

debug output of drifting snow sublimation

◆ T_FB

#define T_FB   1

switch for feedback between sublimation and air temperature

◆ TKE

#define TKE   0

◆ WRITE_DRIFT_FLUXES

#define WRITE_DRIFT_FLUXES   0

set to 1 in order to write snow drift fluxes

◆ WS0

#define WS0   0.5

Typedef Documentation

◆ CDoubleArray

typedef mio::Array1D<double> CDoubleArray

◆ CElementArray

typedef mio::Array2D<int> CElementArray

◆ CIntArray

typedef mio::Array1D<int> CIntArray

Enumeration Type Documentation

◆ aspect_type

Enumerator
OTHER 
BOTTOM 

◆ DRIFT_OUTPUT

Enumerator
OUT_CONC 
OUT_SUBL 

◆ param_type

enum param_type
Enumerator
CON 
HUM 
SUB 
TEM 
SUB2