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
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), ], )] )