load_thermal_profile#

Lifecycle.load_thermal_profile(project: str, phase_name: str, event_name: str, file_path: str) int#

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

Available Since: 2021R1

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

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

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

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

Returns:

Status code of the response. 0 for success.

Return type:

int

Example

>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> sherlock = launch_sherlock()
>>> sherlock.project.import_odb_archive(
    "ODB++ Tutorial.tgz",
    True,
    True,
    True,
    True,
    project="Test",
    cca_name="Card",
)
 >>>loaded = sherlock.lifecycle.load_thermal_profile(
        project="Tutorial",
        phase_name="Phase 1",
        event_name="Thermal Event",
        file_path="Tutorial_Profile.dat"
)