Skip to content

Commit

Permalink
Update unit conversion for temperature profile
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjamesnugent committed Aug 17, 2023
1 parent 10fba6b commit 00bd6aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static partial class Convert
public static string FromAreaDifferentialTemperatureLoad(this AreaDifferentialTemperatureLoad temperatureProfile, string assignedFEMesh, string temperatureUnit)
{
string midasFEMeshLoad = null;
double temperatureDifference = temperatureProfile.TemperatureProfile[0].DeltaTemperatureToSI(temperatureUnit) - temperatureProfile.TemperatureProfile[1].DeltaTemperatureToSI(temperatureUnit);
double temperatureDifference = temperatureProfile.TemperatureProfile[0].DeltaTemperatureFromSI(temperatureUnit) - temperatureProfile.TemperatureProfile[1].DeltaTemperatureFromSI(temperatureUnit);
midasFEMeshLoad = assignedFEMesh + ",2," + temperatureDifference + "," + "YES,0," + temperatureProfile.Name;
return midasFEMeshLoad;
}
Expand Down

0 comments on commit 00bd6aa

Please sign in to comment.