/// <summary> /// Calculates the electrical and thermal energy, respectively power /// generated out of the gas stream u. /// ch4 and h2 is burned /// </summary> /// <param name="chp_id">ID of the chp used for burning</param> /// <param name="u"> /// vector with as many elements as there are number of gases (BioGas.n_gases) /// the positions of the gases inside the vector are: /// - biogas.BioGas.pos_ch4 /// - biogas.BioGas.pos_co2 /// - biogas.BioGas.pos_h2 /// </param> /// <param name="P_el_kWh_d"></param> /// <param name="P_therm_kWh_d"></param> /// <exception cref="exception">Unknown chp id</exception> public void burnBiogas(string chp_id, double[] u, out physValue P_el_kWh_d, out physValue P_therm_kWh_d) { // throws an exception when chp_id does not exist chp myCHP = this.getCHPByID(chp_id); // myCHP.burnBiogas(u, out P_el_kWh_d, out P_therm_kWh_d); }
/// <summary> /// Adds the chp myCHP to the list. /// </summary> /// <param name="myCHP"></param> public void addCHP(chp myCHP) { myCHPs.addCHP(myCHP); }