load_random_vibe_profile#
- Lifecycle.load_random_vibe_profile(project, phase_name, event_name, file_path, csv_file_properties=None)#
Load random vibe profile from .csv or .dat file.
Available Since: 2023R1
- 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
File path for thermal profile .csv or .dat file
- csv_file_properties: RandomVibeProfileCsvFileProperties
Properties of the random vibe profile CSV file, required if the file is in CSV format.
- Returns:
- :
intStatus code of the response. 0 for success.
- Return type:
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 Project", cca_name="Card" )
>>> sherlock.lifecycle.load_random_vibe_profile( project="Test Project", phase_name="Phase 1", event_name="Random Event", file_path="TestProfile.csv", csv_file_properties=RandomVibeProfileCsvFileProperties( profile_name="Test Profile", header_row_count=0, numeric_format="English", column_delimiter=",", frequency_column="Frequency", frequency_units="HZ", amplitude_column="Amplitude", amplitude_units="G2/Hz" ) )