diff --git a/Helios/Source/BatteryChargeModule.cs b/Helios/Source/BatteryChargeModule.cs new file mode 100644 index 0000000000000000000000000000000000000000..198882ab78b233fbc463d958de041a0522eaedd6 --- /dev/null +++ b/Helios/Source/BatteryChargeModule.cs @@ -0,0 +1,41 @@ +using System; +namespace Helios.Source +{ + public class BatteryChargeModule + { + + public double Efficiency { get; set; } + public double TotalOutput { get; set; } + public double PowerBalence { get; set; } + + public BatteryChargeModule() { } + + public BatteryChargeModule(double efficiency) + { + this.Efficiency = efficiency; + } + + public double GetTotalOutput(double solarPanelEfficiency, double solarEnergy, double roofArea, double sunAngle) + { + double totalOutput; + + totalOutput = solarPanelEfficiency * solarEnergy * roofArea * this.Efficiency * Math.Sin(sunAngle); + + this.TotalOutput = totalOutput; + + return totalOutput; + } + + public double GetPowerBalence(double powerConsumption) + { + double powerBalence; + + powerBalence = this.Efficiency * powerConsumption; + + this.PowerBalence = powerBalence; + + return powerBalence; + } + } +} +