24#include <meteoio/MeteoIO.h>
48 enum watertransportmodels{BUCKET, NIED, RICHARDSEQUATION};
49 watertransportmodels iwatertransportmodel_snow, iwatertransportmodel_soil;
51 std::string watertransportmodel_snow;
52 std::string watertransportmodel_soil;
53 void compSubSurfaceMelt(
ElementData& Edata,
const unsigned int nSolutes,
const double& dt,
54 double& ql_Rest,
const mio::Date& date_in);
55 void compSubSurfaceFrze(
ElementData& Edata,
const unsigned int nSolutes,
const double& dt,
56 const mio::Date& date_in);
60 double cold_content_in;
61 double cold_content_soil_in;
62 double cold_content_out;
63 double cold_content_soil_out;
66 double t_crazy_min, t_crazy_max;
69 static const double theta_s;
71 bool enable_ice_reservoir;
ELEMENT DATA used as a pointer in the SnowStation structure NOTE on M below: this is the mass of an e...
Definition: DataClasses.h:285
This class contains the phase change routines for the 1d snowpack model It also updates the volumetri...
Definition: PhaseChange.h:33
static const double RE_theta_threshold
Threshold Water Content for snow, when using water transport model "RICHARDSEQUATION",...
Definition: PhaseChange.h:43
void reset()
Definition: PhaseChange.cc:104
void initialize(SnowStation &Xdata)
Definition: PhaseChange.cc:315
double compPhaseChange(SnowStation &Xdata, const mio::Date &date_in, const bool &verbose=true)
Driving routine for subsurface melting and refreezing as well as surface melting. The basic equation ...
Definition: PhaseChange.cc:409
PhaseChange(const SnowpackConfig &i_cfg)
Definition: PhaseChange.cc:70
static const double RE_theta_r
Residual Water Content for snow, when using water transport model "RICHARDSEQUATION".
Definition: PhaseChange.h:42
static const double theta_r
Residual Water Content for snow and soil, when using water transport model "BUCKET" or "NIED".
Definition: PhaseChange.h:44
void finalize(const SurfaceFluxes &Sdata, SnowStation &Xdata, const mio::Date &date_in)
Definition: PhaseChange.cc:342
Definition: DataClasses.h:604
Definition: SnowpackConfig.h:28
Definition: DataClasses.h:733