SNOWPACK 3.7.0
TechnicalSnow.h
Go to the documentation of this file.
1/*
2 * SNOWPACK stand-alone
3 *
4 * Copyright WSL Institute for Snow and Avalanche Research SLF, DAVOS, SWITZERLAND
5 */
6/* This file is part of Snowpack.
7 Snowpack is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 Snowpack is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with Snowpack. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#ifndef TECHNICALSNOW_H
22#define TECHNICALSNOW_H
23
25
42class TechSnow {
43 public:
44 TechSnow(const SnowpackConfig& cfg);
45
46 bool prepare(const mio::Date& current_date) const;
47 void preparation(SnowStation& Xdata) const;
48 static void productionPpt(const CurrentMeteo& Mdata, const double& cumu_precip, double &Tw, double &rho_hn, double &delta_cH, double &theta_w);
49
50 private:
51 double grooming_week_start, grooming_week_end;
52 double grooming_hour;
53 double min_depth, max_depth; //minimum depth of snow for grooming, maximum depth affected by grooming
54};
55#endif
CurrentMeteo is the class of interpolated meteo data for the current calculation time step It contai...
Definition: DataClasses.h:83
Definition: DataClasses.h:604
Definition: SnowpackConfig.h:28
Implementation of snow grooming.
Definition: TechnicalSnow.h:42
TechSnow(const SnowpackConfig &cfg)
Definition: TechnicalSnow.cc:62
void preparation(SnowStation &Xdata) const
Perform technical snow preparation. The technical snow preparation has only an influence on the upper...
Definition: TechnicalSnow.cc:129
bool prepare(const mio::Date &current_date) const
Defined time when the slope preparation happens (default: 9:00PM) and only for the winter season (def...
Definition: TechnicalSnow.cc:74
static void productionPpt(const CurrentMeteo &Mdata, const double &cumu_precip, double &Tw, double &rho_hn, double &delta_cH, double &theta_w)
Compute the basic properties of newly produced technical snow (potentially mixed with natural snow)
Definition: TechnicalSnow.cc:99