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.
Available Since: 2024R1
- Parameters:
project (
str) – str: Name of the Sherlock project.cca_name (
str) – str: Name of the CCA.random_vibe_damping (
str|None) – str: One or more modal damping ratios. The default isNone. Separate multiple float values with commas.optional – One or more modal damping ratios. The default is
None. Separate multiple float values with commas.natural_freq_min (
float|None) – float: Minimum frequency. The default isNone. This parameter is for NX Nastran analysis only.optional – Minimum frequency. The default is
None. This parameter is for NX Nastran analysis only.natural_freq_min_units (
str|None) – str: Minimum frequency units. The default isNone. Options are"HZ","KHZ","MHZ", and"GHZ". This parameter is for NX Nastran analysis only.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|None) – float: Maximum frequency. The default isNone. This parameter is for NX Nastran analysis only.optional – Maximum frequency. The default is
None. This parameter is for NX Nastran analysis only.natural_freq_max_units (
str|None) – str: Maximum frequency units. The default isNone. Options are"HZ","KHZ","MHZ", and"GHZ". This parameter is for NX Nastran analysis only.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|None) – float: Temperature. The default isNone.optional – Temperature. The default is
None.analysis_temp_units (
str|None) – str: Temperature units. The default isNone. Options are"C","F", and"K".optional – Temperature units. The default is
None. Options are"C","F", and"K".part_validation_enabled (
bool|None) – bool: Whether to enable part validation. The default isNone.optional – Whether to enable part validation. The default is
None.force_model_rebuild (
str|None) – str: How to handle rebuilding of the model. The default isNone. Options are"FORCE"and"AUTO".optional – How to handle rebuilding of the model. The default is
None. Options are"FORCE"and"AUTO".reuse_modal_analysis (
bool|None) – bool: Whether to reuse the natural frequency for modal analysis. The default isNone. This parameter is for NX Nastran analysis only.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|None) – bool: Whether to perform a frequency range check. The default isNone. This parameter is for NX Nastran analysis only.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|None) – bool: Whether to require material assignment. The default isNone.optional – Whether to require material assignment. The default is
None.model_source (
int|None) – SherlockAnalysisService_pb2.ModelSource.ValueType: Model source. The default isNone. This parameter is required for strain map analysis.optional – Model source. The default is
None. This parameter is required for strain map analysis.strain_map_natural_freqs (
str|None) – str: Comma-separated list of natural frequencies. The default isNone. This parameter is required for strain map analysis.optional – Comma-separated list of natural frequencies. The default is
None. This parameter is required for strain map analysis.
- Returns:
- :
intStatus code of the response. 0 for success.
- Return type:
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_random_vibe_props( >>> "Test", >>> "Card", >>> random_vibe_damping="0.01, 0.05", >>> analysis_temp=20, >>> analysis_temp_units="C", >>> model_source=SherlockAnalysisService_pb2.ModelSource.STRAIN_MAP >>> )