Beispiel #1
0
 /// <summary>Kills part of the organ (transfer DM and N to dead tissue).</summary>
 /// <param name="fractionToRemove">The fraction to kill in each tissue</param>
 internal void KillOrgan(double fractionToRemove)
 {
     double[] dmKilled = MathUtilities.Multiply_Value(Live.FractionWt, Live.DM.Wt * fractionToRemove);
     double[] nKilled  = MathUtilities.Multiply_Value(Live.FractionWt, Live.DM.N * fractionToRemove);
     Dead.AddBiomass(dmKilled, nKilled);
     Live.AddBiomass(MathUtilities.Multiply_Value(dmKilled, -1.0), MathUtilities.Multiply_Value(nKilled, -1.0));
 }