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.
Available Since:2023R2
- Parameters:
project (
str) – str: Name of the Sherlock project.cca_name (
str) – str: Name of the CCA.natural_freq_count (
int) – int: Natural frequency result count.natural_freq_min (
int) – int, optional: Minimum frequency. This parameter is for NX Nastran analysis only.natural_freq_min_units (
str) – str, optional: Minimum frequency units. Options are"HZ","KHZ","MHZ", and"GHZ". This parameter is for NX Nastran analysis only.natural_freq_max (
int) – int, optional: Maximum frequency. This parameter is for NX Nastran analysis only.natural_freq_max_units (
str) – str, optional: Maximum frequency units. Options are"HZ","KHZ","MHZ", and"GHZ". This parameter is for NX Nastran analysis only.part_validation_enabled (
bool) – bool: Whether part validation is enabled.require_material_assignment_enabled (
bool) – bool: Whether to require material assignment.analysis_temp (
float|None) – float, optional: Temperature.analysis_temp_units (
str|None) – str, optional: Temperature units. Options are"C","F", and"K".
- Return type:
- Returns:
- :
intStatus code of the response. 0 for success.
Examples
>>> from ansys.sherlock.core import launcher >>> sherlock, install_dir = launcher.launch_and_connect(transport_mode="wnua") >>> 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" >>> )