update_random_vibe_props#

Analysis.update_random_vibe_props(project: str, cca_name: str, random_vibe_damping: str | None = None, natural_freq_min: float | None = None, natural_freq_min_units: str | None = None, natural_freq_max: float | None = None, natural_freq_max_units: str | None = None, analysis_temp: float | None = None, analysis_temp_units: str | None = None, part_validation_enabled: bool | None = None, force_model_rebuild: str | None = None, reuse_modal_analysis: bool | None = None, perform_nf_freq_range_check: bool | None = None, require_material_assignment_enabled: bool | None = None, model_source: ModelSource | None = None, strain_map_natural_freqs: str | None = None) int#

Update properties for a random vibe analysis.

Available Since: 2024R1

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

  • cca_name (str) – Name of the CCA.

  • random_vibe_damping (str, optional) – One or more modal damping ratios. The default is None. Separate multiple float values with commas.

  • natural_freq_min (float, optional) – Minimum frequency. The default is None. This parameter is for NX Nastran analysis only.

  • natural_freq_min_units (str, optional) – Minimum frequency units. The default is None. Options are "HZ", "KHZ", "MHZ", and "GHZ". This parameter is for NX Nastran analysis only.

  • natural_freq_max (float, optional) – Maximum frequency. The default is None. This parameter is for NX Nastran analysis only.

  • natural_freq_max_units (str, optional) – Maximum frequency units. The default is None. Options are "HZ", "KHZ", "MHZ", and "GHZ". This parameter is for NX Nastran analysis only.

  • analysis_temp (float, optional) – Temperature. The default is None.

  • analysis_temp_units (str, optional) – Temperature units. The default is None. Options are "C", "F", and "K".

  • part_validation_enabled (bool, optional) – Whether to enable part validation. The default is None.

  • force_model_rebuild (str, optional) – How to handle rebuilding of the model. The default is None. Options are "FORCE" and "AUTO".

  • reuse_modal_analysis (bool, optional) – Whether to reuse the natural frequency for modal analysis. The default is None. This parameter is for NX Nastran analysis only.

  • perform_nf_freq_range_check (bool, optional) – Whether to perform a frequency range check. The default is None. This parameter is for NX Nastran analysis only.

  • require_material_assignment_enabled (bool, optional) – Whether to require material assignment. The default is None.

  • model_source (ModelSource, optional) – Model source. The default is None. This parameter is required for strain map analysis.

  • strain_map_natural_freqs (str, optional) – Comma-separated list of natural frequencies. The default is None. This parameter is required for strain map analysis.

Returns:

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.analysis.update_random_vibe_props(
    "Test",
    "Card",
    random_vibe_damping="0.01, 0.05",
    analysis_temp=20,
    analysis_temp_units="C",
    model_source=ModelSource.STRAIN_MAP
)