/// <summary> /// Returns the ADM params vector, depending on the current substrate feed /// /// Attention!!! Changes the values of the ADM params!!! /// /// the following params depend on the substrate feed: /// - XC fractions (fCH_XC, fLI_XC, ...] /// - disintegration constant: kdis /// - hydrolysis constant: khyd_ch, khyd_pr, khyd_li /// /// this only works if simulation starts at time t= 0, at the moment this function /// is not called /// </summary> /// <param name="t">current simulation time in days</param> /// <param name="Q">substrate feed measured in m^3/d</param> /// <param name="QdigesterIn">total volumetric flow rate in digester in m^3/d</param> /// <param name="mySubstrates"></param> /// <returns>ADM params</returns> public double[] getADMparams(double t, double[] Q, double QdigesterIn, substrates mySubstrates) { return(AD_Model.getParams(t, Q, QdigesterIn, mySubstrates)); }
// ------------------------------------------------------------------------------------- // !!! PUBLIC GET METHODS !!! // ------------------------------------------------------------------------------------- /// <summary> /// Returns the ADM params vector, depending on the current substrate feed. /// The current substrate feed is taken out of the current substrate feed /// measurement in mySensors /// /// Attention!!! Changes the values of the ADM params!!! /// /// the following params depend on the substrate feed: /// - XC fractions (fCH_XC, fLI_XC, ...] /// - disintegration constant: kdis /// - hydrolysis constant: khyd_ch, khyd_pr, khyd_li /// </summary> /// <param name="t">current simulation time measured in days</param> /// <param name="mySensors"></param> /// <param name="mySubstrates"></param> /// <param name="substrate_network_digester"></param> /// <returns></returns> public double[] getADMparams(double t, sensors mySensors, substrates mySubstrates, double[] substrate_network_digester /*, double deltatime*/) { return(AD_Model.getParams(t, mySensors, mySubstrates, substrate_network_digester, id)); }