load_shock_profile_pulses#

Lifecycle.load_shock_profile_pulses(project, phase_name, event_name, file_path, csv_file_properties=None)#

Load shock profile pulses from a .csv .dat 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

Path for thermal profile .csv or .dat file

csv_file_properties: ShockProfilePulsesCsvFileProperties

Properties of the shock profile pulses CSV file, required if the file is in CSV format.

Returns:
:
int

Status code of the response. 0 for success.

Return type:

int

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",
    cca_name="Card",
)
>>> sherlock.lifecycle.load_shock_profile_pulses(
        project="Tutorial",
        phase_name="Phase 1",
        event_name="Shock Event",
        file_path="Test_Profile.csv",
        csv_file_properties=ShockProfilePulsesCsvFileProperties(
            profile_name="Test Profile",
            header_row_count=0,
            numeric_format="English",
            column_delimiter=",",
            duration=25,
            duration_units="ms",
            sample_rate=0.1,
            sample_rate_units="ms",
            shape_column="Shape",
            load_column="Load",
            load_units="G",
            frequency_column="Frequency",
            frequency_units="HZ",
            decay_column="Decay",
        )
)