update_random_vibe_props#

Analysis.update_random_vibe_props(project, cca_name, random_vibe_damping=None, natural_freq_min=None, natural_freq_min_units=None, natural_freq_max=None, natural_freq_max_units=None, analysis_temp=None, analysis_temp_units=None, part_validation_enabled=None, force_model_rebuild=None, reuse_modal_analysis=None, perform_nf_freq_range_check=None, require_material_assignment_enabled=None, model_source=None, strain_map_natural_freqs=None)#

Update properties for a random vibe analysis.

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 (list, optional) – 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
)