get_mechanical_shock_input_fields#

Analysis.get_mechanical_shock_input_fields(model_source=None)#

Get mechanical shock property fields based on the user configuration.

Available Since: 2024R1

Parameters:

model_source (ModelSource, optional) – Model source to get the random vibe property fields from. Only ModelSource.GENERATED is supported. Default is None.

Returns:

Mechanical shock property fields based on the user configuration.

Return type:

list

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.analysis.get_mechanical_shock_input_fields(ModelSource.GENERATED)