SNOWPACK 20260217.97ebebde
Physically based, energy balance snow cover model
Loading...
Searching...
No Matches
Slope Class Reference

Detailed Description

Slope a C. Fierz class ;-) to handle the multiple expositions in Snowpack standalone.

#include <DataClasses.h>

Public Member Functions

 Slope (const mio::Config &cfg)
 
unsigned int getSectorDir (const double &dir_or_expo) const
 Determine either direction of blowing wind or slope exposition. NOTE that station slope.first always corresponds to the prevailing wind direction.
 
void setSlope (const unsigned int slope_sequence, std::vector< SnowStation > &vecXdata, double &wind_dir)
 Set slope variables.
 

Public Attributes

double prevailing_wind_dir
 
unsigned int nSlopes
 
unsigned int mainStation
 main station, flat field or slope
 
unsigned int sector
 main station (0) or current slope sector (1:nSlopes)
 
unsigned int first
 first virtual slope station in computing sequence
 
unsigned int luv
 
unsigned int lee
 
bool north
 
bool south
 
bool snow_erosion
 
bool mainStationDriftIndex
 
bool snow_redistribution
 
bool luvDriftIndex
 

Constructor & Destructor Documentation

◆ Slope()

Slope::Slope ( const mio::Config &  cfg)

Member Function Documentation

◆ getSectorDir()

unsigned int Slope::getSectorDir ( const double &  dir_or_expo) const

Determine either direction of blowing wind or slope exposition. NOTE that station slope.first always corresponds to the prevailing wind direction.

Parameters
dir_or_expodirection of wind or exposition

◆ setSlope()

void Slope::setSlope ( const unsigned int  slope_sequence,
std::vector< SnowStation > &  vecXdata,
double &  wind_dir 
)

Set slope variables.

Parameters
slope_sequencecomputation sequence for slopes
vecXdata
wind_dirdirection of wind

Member Data Documentation

◆ first

unsigned int Slope::first

first virtual slope station in computing sequence

◆ lee

unsigned int Slope::lee

◆ luv

unsigned int Slope::luv

◆ luvDriftIndex

bool Slope::luvDriftIndex

◆ mainStation

unsigned int Slope::mainStation

main station, flat field or slope

◆ mainStationDriftIndex

bool Slope::mainStationDriftIndex

◆ north

bool Slope::north

◆ nSlopes

unsigned int Slope::nSlopes

◆ prevailing_wind_dir

double Slope::prevailing_wind_dir

◆ sector

unsigned int Slope::sector

main station (0) or current slope sector (1:nSlopes)

◆ snow_erosion

bool Slope::snow_erosion

◆ snow_redistribution

bool Slope::snow_redistribution

◆ south

bool Slope::south

The documentation for this class was generated from the following files: