Heat meters path modified, ver. 2.9.332
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user