Heat meters path modified, ver. 2.9.332

This commit is contained in:
Milan Hanajik
2016-08-04 14:01:54 +02:00
parent 4a2342c015
commit faffa8a270
9 changed files with 159 additions and 310 deletions
@@ -49,8 +49,6 @@ namespace TBF.BenchControl.Operations
this.enthalpy = enthalpy;
if (path == null) throw new Exception("path argument in EnthalpyCalculationOp constructor");
if (path.TempMetersWarm == null) throw new Exception("path.TempMetersWarm argument in EnthalpyCalculationOp constructor");
if (path.TempMetersCold == null) throw new Exception("path.TempMetersCold argument in EnthalpyCalculationOp constructor");
}
/// <param name="obj">Time period (TimeSpan)</param>
@@ -83,10 +81,7 @@ namespace TBF.BenchControl.Operations
for (int i = 0; i < enthalpy.Length; i++)
{
if (path.TempMetersWarm[i] != null && path.TempMetersCold[i] != null)
{
enthalpy[i] += deltaVolume * (path.TempMetersWarm[i].ReadTemperature() - path.TempMetersCold[i].ReadTemperature());
}
//enthalpy[i] += deltaVolume * (path.TempMetersWarm[i].ReadTemperature() - path.TempMetersCold[i].ReadTemperature());
}
}
}