update_natural_frequency_props#

Analysis.update_natural_frequency_props(project, cca_name, natural_freq_count, natural_freq_min, natural_freq_min_units, natural_freq_max, natural_freq_max_units, part_validation_enabled, require_material_assignment_enabled, analysis_temp=None, analysis_temp_units=None)#

Update properties for a natural frequency analysis.

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

  • cca_name (str) – Name of the CCA.

  • natural_freq_count (int) – Natural frequency result count.

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

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

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

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

  • part_validation_enabled (bool) – Whether part validation is enabled.

  • require_material_assignment_enabled (bool) – Whether to require material assignment.

  • analysis_temp (float, optional) – Temperature.

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

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_natural_frequency_props(
    "Test",
    "Card",
    natural_freq_count=2,
    natural_freq_min=10,
    natural_freq_min_units="HZ",
    natural_freq_max=100,
    natural_freq_max_units="HZ",
    part_validation_enabled=True,
    require_material_assignment_enabled=False,
    analysis_temp=25,
    analysis_temp_units="C"
)