Example #1
0
 /// <summary>
 /// Build a new HeatLoop
 /// </summary>
 /// <param name="id">The loop ID number</param>
 public HeatLoop(int id)
 {
     ID          = id;
     modules     = new List <ModuleSystemHeat>();
     CoolantType = SystemHeatSettings.GetCoolantType("");
     Temperature = GetEnvironmentTemperature();
 }
Example #2
0
 /// <summary>
 /// Build a new HeatLoop from a list of modules
 /// </summary>
 /// <param name="id">the loop ID</param>
 /// <param name="heatModules">the modules to add</param>
 public HeatLoop(int id, List <ModuleSystemHeat> heatModules)
 {
     ID          = id;
     modules     = new List <ModuleSystemHeat>();
     modules     = heatModules;
     Temperature = heatModules.Average(x => x.LoopTemperature);
     // Get loop properties set up
     CoolantName        = GetCoolantType();
     CoolantType        = SystemHeatSettings.GetCoolantType(CoolantName);
     Volume             = CalculateLoopVolume();
     NominalTemperature = CalculateNominalTemperature();
 }
Example #3
0
 protected void Start()
 {
     SystemHeatSettings.Load();
 }