20 #ifndef PHASE_CHANGE_H 21 #define PHASE_CHANGE_H 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;
68 static const double theta_s;
Definition: SnowpackConfig.h:28
static const double RE_theta_r
Residual Water Content for snow, when using water transport model "RICHARDSEQUATION".
Definition: PhaseChange.h:42
static const double RE_theta_threshold
Threshold Water Content for snow, when using water transport model "RICHARDSEQUATION", to determine what is dry and wet snow.
Definition: PhaseChange.h:43
ELEMENT DATA used as a pointer in the SnowStation structure NOTE on M below: this is the mass of an e...
Definition: DataClasses.h:251
void reset()
Definition: PhaseChange.cc:97
Definition: DataClasses.h:589
PhaseChange(const SnowpackConfig &i_cfg)
Definition: PhaseChange.cc:69
static const double theta_r
Residual Water Content for snow and soil, when using water transport model "BUCKET" or "NIED"...
Definition: PhaseChange.h:44
This class contains the phase change routines for the 1d snowpack model It also updates the volumetri...
Definition: PhaseChange.h:33
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:410
void initialize(SnowStation &Xdata)
Definition: PhaseChange.cc:316
void finalize(const SurfaceFluxes &Sdata, SnowStation &Xdata, const mio::Date &date_in)
Definition: PhaseChange.cc:343
Station data including all information on snowpack layers (elements and nodes) and on canopy This is...
Definition: DataClasses.h:468