get_mechanical_shock_input_fields#

Analysis.get_mechanical_shock_input_fields(model_source: ModelSource | None = None) list[str]#

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 GENERATED is supported. Default is None.

Returns:

Mechanical shock property fields based on the user configuration.

Return type:

list[str]

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)