add_thermal_profiles#

Lifecycle.add_thermal_profiles(project, thermal_profiles)#

Add thermal life cycle event profiles.

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

  • thermal_profiles (list of (phase_name, event_name, profile_name, time_units, temp_units, thermal_profile_entries) profiles) –

    phase_namestr

    Bame of the lifecycle phase this profile is associated with.

    event_namestr

    Name of the thermal event for the profile.

    profile_namestr

    Name of the thermal profile.

    time_unitsstr

    Time units. Options are "ms", "sec", "min", “hr", "day", and "year".

    temp_unitsstr

    Temperature units. Options are "C", "F", and "K".

    thermal_profile_entrieslist of (step, type, time, temp) entries
    stepstr

    Name of the profile step entry.

    typestr

    Thermal step type. Options are "HOLD" and ``”RAMP”`.

    timedouble

    Duration of the step entry expressed in time units

    temperaturedouble

    Temperature of the step entry expressed in temperature units

Examples

>>> 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",
)
>>> sherlock.lifecycle.create_life_phase(
    "Test",
    "Example",
    1.5,
    "year",
    4.0,
    "COUNT",
)
>>> sherlock.lifecycle.add_thermal_event(
    "Test",
    "Example",
    "Event1",
    4.0,
    "PER YEAR",
    "STORAGE",
)
>>> sherlock.lifecycle.add_thermal_profiles(
    "Test",
    [(
        "Example",
        "Event1",
        "Profile1",
        "sec",
        "F",
        [
            ("Steady1", "HOLD", 40, 40),
            ("Steady", "HOLD", 20, 20),
            ("Back", "RAMP", 20, 40),
        ],
    )]
)