Generation of Thermodynamic Data#

Important

DOCUMENTATION IN PROGRESS

This page provides the documentation on the methods used for generating thermodynamic data with SU2 DataMiner.

__init__(self, Config_in: Config_NICFD = None)#

Constructor, load settings from SU2 DataMiner configuration.

Parameters:

Config_in (Config_NICFD, optional) – SU2 DataMiner configuration class, defaults to None

Thermodynamic State Calculations#

PreprocessData(self)#

Generate density and static energy grid at which to evaluate fluid properties.

ComputeData(self)#
SaveData(self)#

Save fluid data in separate files for train, test and validation.

Overwiting Configuration Settings#

UseAutoRange(self, use_auto_range: bool = True)#

Automatically set controlling variable ranges depending on the fluid triple point and critical point.

SetTemperatureBounds(self, T_lower: float = 300, T_upper: float = 600)#

Set the upper and lower temperature limits for the fluid data grid.

Parameters:
  • T_lower (float) – lower temperature limit in Kelvin.

  • T_upper (float) – upper temperature limit in Kelvin.

Raises:

Exception – if lower temperature limit exceeds upper temperature limit.

SetPressureBounds(self, P_lower: float = 20000.0, P_upper: float = 2000000.0)#

Set the upper and lower limits for the fluid pressure.

Parameters:
  • P_lower (float) – lower pressure limit in Pa.

  • P_upper (float) – upper pressure limit in Pa.

Raises:

Exception – if lower pressure limit exceeds upper pressure limit.

SetDensityBounds(self, Density_lower: float = 0.5, Density_upper: float = 300)#
SetEnergyBounds(self, Energy_lower: float = 300000.0, Energy_upper: float = 550000.0)#
UpdateConfig(self)#

Update the bounds of the thermodynamic state data stored in the configuration class.