load_thermal_profile#

Lifecycle.load_thermal_profile(project, phase_name, event_name, file_path, csv_file_properties=None)#

Load a thermal profile from a .csv or .dat file.

Available Since: 2021R1

Parameters:
  • project (str) – str: Name of the Sherlock project

  • phase_name (str) – str: Name of the lifecycle phase to add this event to.

  • event_name (str) – str: Name of the random vibe event.

  • file_path (str) – str: File path for thermal profile .csv or .dat file

  • csv_file_properties (ThermalProfileCsvFileProperties) – ThermalProfileCsvFileProperties: Properties of the thermal profile CSV file, required if the file is in CSV format.

Return type:

int

Returns:

:
int

Status code of the response. 0 for success.

Examples

>>> from ansys.sherlock.core import launcher
>>> sherlock, install_dir = launcher.launch_and_connect(transport_mode="wnua")
>>> sherlock.project.import_odb_archive(
>>>     "ODB++ Tutorial.tgz",
>>>     True,
>>>     True,
>>>     True,
>>>     True,
>>>     project="Test Project",
>>>     cca_name="Card",
>>> )
>>> sherlock.lifecycle.load_thermal_profile(
>>>     project="Test Project",
>>>     phase_name="Phase 1",
>>>     event_name="Thermal Event",
>>>     file_path="Tutorial_Profile.csv",
>>>     csv_file_properties=ThermalProfileCsvFileProperties(
>>>         profile_name="Test Profile",
>>>         header_row_count=0,
>>>         numeric_format="English",
>>>         column_delimiter=",",
>>>         step_column="Step",
>>>         type_column="Type",
>>>         time_column="Time (min)",
>>>         time_units="min",
>>>         temp_column="Temp (C)",
>>>         temp_units="C"
>>>     )
>>> )