Commit dbb47fac authored by RemiM's avatar RemiM
Browse files

Modify computation of TT and some descriptions of parameters

parent 719bb840
......@@ -1056,7 +1056,7 @@
<double>1.1172031</double>
</port>
<port name="Tmu">
<double>0</double>
<double>-3.7215525</double>
</port>
</condition>
<condition name="CONFIG_SimuInit">
......
......@@ -124,11 +124,11 @@ struct ParametresPlante {
//codeMMpourMemo parameter: Talpha 0.9359046
double Talpha ;
/// # Parameter alpha thermal time [Parent2014]
/// # Parameter beta thermal time [Parent2014]
//codeMMpourMemo parameter: Tbeta 1.1172031
double Tbeta ;
/// # Parameter alpha thermal time [Parent2014]
/// # Parameter mu thermal time [Parent2014]
//codeMMpourMemo parameter: Tmu -3.7215525
double Tmu ;
......
......@@ -54,10 +54,11 @@ public :
{
{
double Teff_tmp = 0.0;
if ( Tmoy() < p.Tbase ){
if ( Tmoy() < p.Tbase || Tmoy() > p.Tcritical){
Teff_tmp = 0.0;
} else {
Teff_tmp = Tmoy() - p.Tbase;
// Teff_tmp = Tmoy() - p.Tbase;
Teff_tmp = pow((Tmoy() - p.Tbase),p.Talpha) * pow((p.Tcritical - Tmoy()),p.Tbeta) * exp(p.Tmu) ;
}
Teff = Teff_tmp;
}
......
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