add_harmonic_vibe_profiles#

Lifecycle.add_harmonic_vibe_profiles(project, harmonic_vibe_profiles)#

Add harmonic life cycle event profiles.

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

  • harmonic_vibe_profiles (list of (phase_name, event_name, profile_name,) –

    freq_units, load_units,

    harmonic_vibe_profile_entries) profiles, required

    phase_namestr

    Name of the lifecycle phase this profile is associated with.

    event_namestr

    Name of the harmonic event for the profile.

    profile_namestr

    Name of the harmonic profile.

    freq_unitsstr

    Frequency units. Options are "HZ", "KHZ", "MHZ", and "GHZ".

    load_unitsstr

    Load units. Options are "G", `"m/s2", "mm/s2", “in/s2", and "ft/s2".

    harmonic_profile_entrieslist of (frequency, load) entries, required
    frequencydouble

    Frequency of the profile entry expressed in frequency units.

    loaddouble

    Load of the profile entry expressed in load units.

    triaxial_axis(string, required)

    Axis this profile should be assigned to if the harmonic profile type is "Triaxial". Options are: "x", "y", and "z".

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_harmonic_event(
    "Test",
    "Example",
    "Event1",
    1.5,
    "sec",
    4.0,
    "PER MIN",
    5,
    "45,45",
    "Uniaxial",
    "2,4,5",
)
>>> sherlock.lifecycle.add_harmonic_profiles(
    "Test",
    [(
        "Example",
        "Event1",
        "Profile1",
        "HZ",
        "G",
        [
            (10, 1),
            (1000, 1),
        ],
        "",
    )]
)