add_random_vibe_profiles#
- Lifecycle.add_random_vibe_profiles(project, random_vibe_profiles)#
Add new random vibe lifecycle event profiles.
- Parameters:
project (str) – Name of the Sherlock project.
random_vibe_profiles (list of (phase_name, event_name, profile_name, freq_units, ampl_units, random_vibe_entries) profiles) –
- phase_namestr
Name of the lifecycle phase to associate this profile to.
- event_namestr
Name of the random vibe event for the profile.
- profile_namestr
Name of the random vibe profile.
- freq_unitsstr
Frequency units. Options are
"HZ","KHZ","MHZ", and"GHZ".- ampl_unitsstr
Amplitude units. Options are
"G2/Hz","m2/s4/Hz","mm2/s4/Hz","in2/s4/Hz", and"ft2/s4/Hz".- random_vibe_profile_entrieslist of (frequency, amplitude) entries
- frequencydouble
Frequency of the profile entry expressed in frequency units.
- amplitudedouble
Amplitude of the profile entry expressed in amplitude 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, "sec", 4.0, "COUNT", ) >>> sherlock.lifecycle.add_random_vibe_event( "Test", "Example", "Event1", 1.5, "sec", 4.0, "PER MIN", "45,45", "Uniaxial", "2,4,5", ) >>> sherlock.lifecycle.add_random_vibe_profiles( "Test", [( "Example", "Event1", "Profile1", "HZ", "G2/Hz", [(4,8), (5, 50)], )] )