diff --git a/SVSModel/Models/SoilNitrogen.cs b/SVSModel/Models/SoilNitrogen.cs index c9ba4d2..39c75c4 100644 --- a/SVSModel/Models/SoilNitrogen.cs +++ b/SVSModel/Models/SoilNitrogen.cs @@ -13,38 +13,6 @@ namespace SVSModel.Models { public class SoilNitrogen { - /// - /// Calculates soil mineral nitrogen from an assumed initial value and modeled crop uptake and mineralisation from residues and soil organic matter - /// - /// series of daily N uptake values over the duration of the rotatoin - /// series of mineral N released daily to the soil from residue mineralisation - /// series of mineral N released daily to the soil from organic matter - /// date indexed series of estimated soil mineral N content - public static Dictionary InitialBalance( - Dictionary uptake, - Dictionary residue, - Dictionary som) - { - DateTime[] simDates = uptake.Keys.ToArray(); - Dictionary soilN = Functions.dictMaker(simDates, new double[simDates.Length]); - foreach (DateTime d in simDates) - { - if (d == simDates[0]) - { - soilN[simDates[0]] = Constants.InitialN; - } - else - { - soilN[d] = soilN[d.AddDays(-1)]; - } - soilN[d] += residue[d]; - soilN[d] += som[d]; - double actualUptake = uptake[d]; //Math.Min(uptake[d], minN[d]); - soilN[d] -= actualUptake; - } - return soilN; - } - /// /// Calculates soil mineral nitrogen from an assumed initial value and modeled crop uptake and mineralisation from residues and soil organic matter ///