Exemplo n.º 1
0
        // -------------------------------------------------------------------------------------
        //                            !!! PROTECTED METHODS !!!
        // -------------------------------------------------------------------------------------

        /// <summary>
        /// Calculates hydraulic retention time of the digester measured in days
        ///
        /// type 0 aktuell type 1
        /// </summary>
        /// <param name="x">ADM state vector</param>
        /// <param name="par">volume of the digester in m^3</param>
        /// <returns>measured HRT in days</returns>
        override protected physValue[] doMeasurement(double[] x, params double[] par)
        {
            physValue[] values = new physValue[dimension];

            if (par.Length != 1)
            {
                throw new exception(String.Format(
                                        "Length of params is != 1: {0}!", par.Length));
            }

            double Vliq = par[0];

            values[0] = ADMstate.calcHRTOfADMstate(x, Vliq);

            return(values);
        }