update_natural_frequency_props#

Analysis.update_natural_frequency_props(project: str, cca_name: str, natural_freq_count: int, natural_freq_min: int, natural_freq_min_units: str, natural_freq_max: int, natural_freq_max_units: str, part_validation_enabled: bool, require_material_assignment_enabled: bool, analysis_temp: float | None = None, analysis_temp_units: str | None = 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 (int, 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 (int, 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"
)