示例#1
0
文件: Y.cpp 项目: Chabrier/ibm2
 virtual void compute(const vd::Time& t)
 {
     Senescence = (maturing() == 0)? masse() * KS : 0;
     Growth = KG * X() * masse();
     grad(X) = 0 - (Growth);
     grad(maturing) = 0;
     grad(masse) = (Growth) - (Senescence);
 }
// initialisation de l'épi temoin
void Calculs::init_temoin()
{
      Temoin.resize(34);
      for(ij=1;ij<34;ij++)
      {
              Temoin[ij] = masse(ij);
      }
}
示例#3
0
treal Trohr::WKap(){
	return masse()*getcp();
}
示例#4
0
treal Trohr::preis(){
	treal pr=masse()*getpreis();
	cout << pr<<endl;
	return pr;
}