Commit 32e49ddf authored by Ronan Trepos's avatar Ronan Trepos
Browse files

StressT: simplify equations

integration of work of M. Chanis on Pea.
parent 8bc8b386
......@@ -35,9 +35,7 @@ public:
virtual void compute(const vd::Time& /*j*/)
{
// Calcul du Facteur de diminution de l’efficience de conversion du rayonement en fonction de la température (sans unité)
if (Tmoy()<=pp.Tmin_plante) {
stressT=0.0;
} else if (Tmoy()<=pp.Topt_plante){
if (Tmoy()<=pp.Topt_plante){
stressT=std::max(0.0,1-std::pow(
((Tmoy()-pp.Topt_plante)/(pp.Tmin_plante-pp.Topt_plante)),2));
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment