RASimulatorRun#
- class ansys.rocky.app.ra_simulator_run.RASimulatorRun#
Bases:
ansys.rocky.app.ra_grid_process_element.RAGridProcessElementItemRocky PrePost Scripting wrapper for solver settings.
This wrapper corresponds to the “Solver” item on a project’s data tree. Access it from the
RAStudywith:simulator_run = study.GetSimulatorRun()
Overview#
It is not possible to remove the item “Solver” from the project. It’s a standard Rocky |
|
Shortcut to set both the simulation’s duration and its time interval. |
|
Whether the simulation is configured to collect forces for FEM analysis. |
|
Whether the “HTC” is being calculated. |
|
Enables the “HTC” calculations. |
|
Disables the “HTC” calculations. |
|
Enables the “FEM Forces” calculations. |
|
Disables the “FEM Forces” calculations. |
|
|
|
It will configure the IDs of GPUs that will be used in simulation based on the list of IDs or names of GPUs |
|
Get the value of “Fluent Outputs Multiplier”. |
|
Set the value of “Fluent Outputs Multiplier”. |
|
Deprecated: Use GetAvailableStandardOutputProperties instead. |
|
Deprecated: Use GetAvailableStandardOutputProperties instead. |
|
Deprecated: Use GetStandardOutputPropertyEnabled instead. |
|
Deprecated: Use SetStandardOutputPropertyEnabled instead. |
|
Deprecated: Use GetStandardOutputPropertyEnabled instead. |
|
Deprecated: Use SetStandardOutputPropertyEnabled instead. |
|
Retrieve enable state of given “Standard Output Property”. |
|
Set enable state of given “Standard Output Property”. |
|
Retrieve enable state of given “Modules Output Property”. |
|
Set enable state of given “Modules Output Property”. |
|
|
|
Set the current value of “Standard Output Properties”. |
|
|
|
Set the current value of “Modules Output Properties”. |
|
Restore default values of “Output Properties”. |
|
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky |
|
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky |
|
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky |
|
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky |
|
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky |
|
Get the value of “Arrays Growth Rate”. |
|
Set the value of “Arrays Growth Rate”. |
|
Get the value of “Breakage Overlap Factor”. |
|
Set the value of “Breakage Overlap Factor”. |
|
Get the value of “Disable Triangles On Periodic Boundaries”. |
|
Set the value of “Disable Triangles On Periodic Boundaries”. |
|
Get the value of “Drag Limiter Factor”. |
|
Set the value of “Drag Limiter Factor”. |
|
Get the value of “Move Cfd Cells With Rocky Boundaries”. |
|
Set the value of “Move Cfd Cells With Rocky Boundaries”. |
|
Set the value of “Move Cfd Cells With Rocky Boundaries” to True. |
|
Set the value of “Move Cfd Cells With Rocky Boundaries” to False. |
|
Check if the “Move Cfd Cells With Rocky Boundaries” is enabled. |
|
Get the value of “Fixed Timestep”. |
|
Set the value of “Fixed Timestep”. |
|
Get the value of “Successive Over Relaxation Tolerance”. |
|
Set the value of “Successive Over Relaxation Tolerance”. |
|
Get the value of “Joint Elastic Ratio”. |
|
Set the value of “Joint Elastic Ratio”. |
|
Get the value of “Minimum Length Deformation Tolerance”. |
|
Set the value of “Minimum Length Deformation Tolerance”. |
|
Get the value of “Linear Hyst Damp”. |
|
Set the value of “Linear Hyst Damp”. |
|
Get the value of “Loading N Steps”. |
|
Set the value of “Loading N Steps”. |
|
Get “Deformable Mass Matrix Type” as a string. |
|
Set the value of “Deformable Mass Matrix Type”. |
|
Get a list of all possible values for “Deformable Mass Matrix Type”. |
|
Get the value of “Minimum Volume Tolerance”. |
|
Set the value of “Minimum Volume Tolerance”. |
|
Get the value of “Solver Curves Frequency”. |
|
Set the value of “Solver Curves Frequency”. |
|
Get the value of “Contact Neighboring Distance Between Particles”. |
|
Set the value of “Contact Neighboring Distance Between Particles”. |
|
Get the value of “Contact Neighboring Distance Between Particles And Triangles”. |
|
Set the value of “Contact Neighboring Distance Between Particles And Triangles”. |
|
Get the value of “Negate Initial Overlaps”. |
|
Set the value of “Negate Initial Overlaps”. |
|
Set the value of “Negate Initial Overlaps” to True. |
|
Set the value of “Negate Initial Overlaps” to False. |
|
Check if the “Negate Initial Overlaps” is enabled. |
|
Get “Neighbor Search Model” as a string. |
|
Set the value of “Neighbor Search Model”. |
|
Get a list of all possible values for “Neighbor Search Model”. |
|
Get the value of “Maximum Number of Iterations”. |
|
Set the value of “Maximum Number of Iterations”. |
|
Get the value of “Over Relaxation Coefficient”. |
|
Set the value of “Over Relaxation Coefficient”. |
|
Get the value of “Refine Concave Search”. |
|
Set the value of “Refine Concave Search”. |
|
Get the value of “Particle Size Limit For Reordering”. |
|
Set the value of “Particle Size Limit For Reordering”. |
|
Get the value of “Special Reordering For Wide Psd”. |
|
Set the value of “Special Reordering For Wide Psd”. |
|
Get the value of “Reset Only Physical Contacts Data”. |
|
Set the value of “Reset Only Physical Contacts Data”. |
|
Get the value of “Sorting Distance Factor”. |
|
Set the value of “Sorting Distance Factor”. |
|
Get “Timestep Model” as a string. |
|
Set the value of “Timestep Model”. |
|
Get a list of all possible values for “Timestep Model”. |
|
Get the value of “Use 2023 R2 Source Terms Approach”. |
|
Set the value of “Use 2023 R2 Source Terms Approach”. |
|
Get the value of “Use 2023 R2 Cell Volume Fraction Update Approach”. |
|
Set the value of “Use 2023 R2 Cell Volume Fraction Update Approach”. |
|
Get the value of “Use Arrays Growth Rate”. |
|
Set the value of “Use Arrays Growth Rate”. |
|
Get the value of “Use Breakage Overlap Factor”. |
|
Set the value of “Use Breakage Overlap Factor”. |
|
Get the value of “Use 3Rd Power For Cfd Cgm”. |
|
Set the value of “Use 3Rd Power For Cfd Cgm”. |
|
Set the value of “Use 3Rd Power For Cfd Cgm” to True. |
|
Set the value of “Use 3Rd Power For Cfd Cgm” to False. |
|
Check if the “Use 3Rd Power For Cfd Cgm” is enabled. |
|
Get the value of “Use Drag Limiter Factor”. |
|
Set the value of “Use Drag Limiter Factor”. |
|
Get the value of “Use Fixed Timestep”. |
|
Set the value of “Use Fixed Timestep”. |
|
Get the value of “Use Contact Neighboring Distance Between Particles”. |
|
Set the value of “Use Contact Neighboring Distance Between Particles”. |
|
|
Get the value of “Use Contact Neighboring Distance Between Particles And Triangles”. |
|
Set the value of “Use Contact Neighboring Distance Between Particles And Triangles”. |
Get the value of “Use Non Round Torque Correction”. |
|
Set the value of “Use Non Round Torque Correction”. |
|
Get the value of “Use Sorting Distance Factor”. |
|
Set the value of “Use Sorting Distance Factor”. |
|
Set the value of “Sorting Distance Factor” to True. |
|
Set the value of “Sorting Distance Factor” to False. |
|
Check if the “Sorting Distance Factor” is enabled. |
|
Get the value of “Use Compressed Files”. |
|
Set the value of “Use Compressed Files”. |
|
Set the value of “Compressed File” to True. |
|
Set the value of “Compressed File” to False. |
|
Check if the “Compressed File” is enabled. |
|
Get the value of “Mpi Heterogeneous”. |
|
Set the value of “Mpi Heterogeneous”. |
|
Get the value of “Mpi Hostfile”. |
|
Set the value of “Mpi Hostfile”. |
|
Get the value of “Mpi Hosts”. |
|
Set the value of “Mpi Hosts”. |
|
Get the value of “Mpi Number of Processes”. |
|
Set the value of “Mpi Number of Processes”. |
|
Get the value of “Mpi Number of Threads”. |
|
Set the value of “Mpi Number of Threads”. |
|
Get the value of “Mpi Within Scheduler”. |
|
Set the value of “Mpi Within Scheduler”. |
|
Get “Multi Gpu Slicing Direction” as a string. |
|
Set the value of “Multi Gpu Slicing Direction”. |
|
Get a list of all possible values for “Multi Gpu Slicing Direction”. |
|
Get the value of “Number of Processors”. |
|
Set the value of “Number of Processors”. |
|
Get “Processing Unit” as a string. |
|
Set the value of “Processing Unit”. |
|
Get a list of all possible values for “Processing Unit”. |
|
Get the value of “Release Particles Without Overlap Check”. |
|
Set the value of “Release Particles Without Overlap Check”. |
|
Get the value of “Target Gpu”. |
|
Set the value of “Target Gpu”. |
|
Get the value of “Use Mpi”. |
|
Set the value of “Use Mpi”. |
|
Get the value of “Resume Data Frequency”. |
|
Set the value of “Resume Data Frequency”. |
|
Get the value of “Breakage Delay After Release”. |
|
Set the value of “Breakage Delay After Release”. |
|
Get the value of “Breakage Start”. |
|
Set the value of “Breakage Start”. |
|
Get the value of “Time Interval”. |
|
Set the value of “Time Interval”. |
|
Get the value of “Overlap Particles Delay”. |
|
Set the value of “Overlap Particles Delay”. |
|
Get the value of “Simulation Duration”. |
|
Set the value of “Simulation Duration”. |
|
Get the value of “Wear Geometry Update Interval”. |
|
Set the value of “Wear Geometry Update Interval”. |
|
Get the value of “Wear Start”. |
|
Set the value of “Wear Start”. |
|
|
|
Import detail#
from ansys.rocky.app.ra_simulator_run import RASimulatorRun
Method detail#
- classmethod RASimulatorRun.GetWrappedClass() type[rocky30.models.solver.rocky_simulator_run.RockySimulatorRun]#
- RASimulatorRun.RemoveProcess() None#
It is not possible to remove the item “Solver” from the project. It’s a standard Rocky item in project.
- RASimulatorRun.SetTimeConfiguration(duration: float, time_interval: float) None#
Shortcut to set both the simulation’s duration and its time interval.
- Parameters:
duration – The simulation duration (in seconds).
time_interval – The simulation time interval (in seconds).
- RASimulatorRun.HasFEMForcesEnabled() bool#
Whether the simulation is configured to collect forces for FEM analysis.
- RASimulatorRun.GetTargetGpus() list[int]#
- Returns:
A list of IDs of the GPUs currently selected for Multi GPU simulation.
- RASimulatorRun.SetTargetGpus(gpus: list[int | str]) None#
It will configure the IDs of GPUs that will be used in simulation based on the list of IDs or names of GPUs passed.
- Parameters:
gpus – List with IDs or names of GPUs to be used in simulation. For example in the name “1 - Geforce GTX 980”, the ID is 1 and the name is “1 - Geforce GTX 980”.
- RASimulatorRun.SetFluentOutputsMultiplier(value: int) None#
Set the value of “Fluent Outputs Multiplier”.
- Parameters:
value – The value to set.
- RASimulatorRun.GetAvailableOutputRoots() collections.abc.Sequence[str]#
Deprecated: Use GetAvailableStandardOutputProperties instead.
- RASimulatorRun.GetAvailableOutputRootProperties(root_key: str) collections.abc.Sequence[str]#
Deprecated: Use GetAvailableStandardOutputProperties instead.
- RASimulatorRun.GetOutputRootEnabled(root_key: str) bool#
Deprecated: Use GetStandardOutputPropertyEnabled instead.
- RASimulatorRun.SetOutputRootEnabled(root_key: str, enabled: bool) None#
Deprecated: Use SetStandardOutputPropertyEnabled instead.
- RASimulatorRun.GetOutputPropertyEnabled(root_key: str, property_name: str) bool#
Deprecated: Use GetStandardOutputPropertyEnabled instead.
- RASimulatorRun.SetOutputPropertyEnabled(root_key: str, property_name: str, enabled: bool) None#
Deprecated: Use SetStandardOutputPropertyEnabled instead.
- RASimulatorRun.GetStandardOutputPropertyEnabled(*output_property: str) bool#
Retrieve enable state of given “Standard Output Property”.
- Parameters:
output_property – The output property name.
- RASimulatorRun.SetStandardOutputPropertyEnabled(*output_property: str, enabled: bool) None#
Set enable state of given “Standard Output Property”.
- Parameters:
output_property – The output property name.
enabled – The enable state of given “Standard Output Property”.
- RASimulatorRun.GetModulesOutputPropertyEnabled(*output_property: str) bool#
Retrieve enable state of given “Modules Output Property”.
- Parameters:
output_property – The output property name.
- RASimulatorRun.SetModulesOutputPropertyEnabled(*output_property: str, enabled: bool) None#
Set enable state of given “Modules Output Property”.
- Parameters:
output_property – The output property name.
enabled – The enable state of given “Modules Output Property”.
- static RASimulatorRun.GetAvailableStandardOutputProperties() dict#
- Returns:
The available “Standard Output Properties”.
- static RASimulatorRun.GetAvailableModulesOutputProperties() dict#
- Returns:
The available “Modules Output Properties”.
- RASimulatorRun.GetStandardOutputPropertiesData() dict#
- Returns:
The current value of “Standard Output Properties”.
- RASimulatorRun.SetStandardOutputPropertiesData(data_dict: dict) None#
Set the current value of “Standard Output Properties”.
- Parameters:
data_dict – The data dictionary to set.
- RASimulatorRun.GetModulesOutputPropertiesData() dict#
- Returns:
The current value of “Modules Output Properties”.
- RASimulatorRun.SetModulesOutputPropertiesData(data_dict: dict) None#
Set the current value of “Modules Output Properties”.
- Parameters:
data_dict – The data dictionary to set.
- RASimulatorRun.RestoreOutputPropertiesDefaults() None#
Restore default values of “Output Properties”.
- RASimulatorRun.GetUseDpmBlockingEffectForSinglePhaseSimulations() bool#
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky since 25R2.
- RASimulatorRun.SetUseDpmBlockingEffectForSinglePhaseSimulations(value: bool) None#
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky since 25R2.
- RASimulatorRun.EnableDpmBlockingEffectForSinglePhaseSimulations() None#
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky since 25R2.
- RASimulatorRun.DisableDpmBlockingEffectForSinglePhaseSimulations() None#
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky since 25R2.
- RASimulatorRun.IsDpmBlockingEffectForSinglePhaseSimulationsEnabled() bool#
The “Use DPM Blocking Effect For Single Phase Simulations” parameter was removed from Rocky since 25R2.
- RASimulatorRun.SetArraysGrowthRate(value: str | float) None#
Set the value of “Arrays Growth Rate”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.SetBreakageOverlapFactor(value: str | float) None#
Set the value of “Breakage Overlap Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.GetDisableTrianglesOnPeriodicBoundaries() bool#
Get the value of “Disable Triangles On Periodic Boundaries”.
- RASimulatorRun.SetDisableTrianglesOnPeriodicBoundaries(value: bool) None#
Set the value of “Disable Triangles On Periodic Boundaries”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetDragLimiterFactor(value: str | float) None#
Set the value of “Drag Limiter Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.GetMoveCfdCellsWithRockyBoundaries() bool#
Get the value of “Move Cfd Cells With Rocky Boundaries”.
- RASimulatorRun.SetMoveCfdCellsWithRockyBoundaries(value: bool) None#
Set the value of “Move Cfd Cells With Rocky Boundaries”.
- Parameters:
value – The value to set.
- RASimulatorRun.EnableMoveCfdCellsWithRockyBoundaries() None#
Set the value of “Move Cfd Cells With Rocky Boundaries” to True.
- RASimulatorRun.DisableMoveCfdCellsWithRockyBoundaries() None#
Set the value of “Move Cfd Cells With Rocky Boundaries” to False.
- RASimulatorRun.IsMoveCfdCellsWithRockyBoundariesEnabled() bool#
Check if the “Move Cfd Cells With Rocky Boundaries” is enabled.
- RASimulatorRun.GetFixedTimestep(unit: str | None = None) float#
Get the value of “Fixed Timestep”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RASimulatorRun.SetFixedTimestep(value: str | float, unit: str | None = None) None#
Set the value of “Fixed Timestep”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “s”.
- RASimulatorRun.GetSuccessiveOverRelaxationTolerance() float#
Get the value of “Successive Over Relaxation Tolerance”.
- RASimulatorRun.SetSuccessiveOverRelaxationTolerance(value: str | float) None#
Set the value of “Successive Over Relaxation Tolerance”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.SetJointElasticRatio(value: str | float) None#
Set the value of “Joint Elastic Ratio”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.GetMinimumLengthDeformationTolerance() float#
Get the value of “Minimum Length Deformation Tolerance”.
- RASimulatorRun.SetMinimumLengthDeformationTolerance(value: str | float) None#
Set the value of “Minimum Length Deformation Tolerance”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.SetLinearHystDamp(value: str | float) None#
Set the value of “Linear Hyst Damp”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.SetLoadingNSteps(value: str | int) None#
Set the value of “Loading N Steps”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASimulatorRun.GetDeformableMassMatrixType() str#
Get “Deformable Mass Matrix Type” as a string.
- Returns:
The returned value will be one of [‘lumped’, ‘consistent’].
- RASimulatorRun.SetDeformableMassMatrixType(value: str) None#
Set the value of “Deformable Mass Matrix Type”.
- Parameters:
value – The value to set. Must be one of [‘lumped’, ‘consistent’].
- Raises:
RockyApiError – If value is not a valid “Deformable Mass Matrix Type” option.
- RASimulatorRun.GetValidDeformableMassMatrixTypeValues() list[str]#
Get a list of all possible values for “Deformable Mass Matrix Type”.
- Returns:
The returned list is [‘lumped’, ‘consistent’].
- RASimulatorRun.SetMinimumVolumeTolerance(value: str | float) None#
Set the value of “Minimum Volume Tolerance”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.SetSolverCurvesFrequency(value: str | int) None#
Set the value of “Solver Curves Frequency”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASimulatorRun.GetContactNeighboringDistanceBetweenParticles(unit: str | None = None) float#
Get the value of “Contact Neighboring Distance Between Particles”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RASimulatorRun.SetContactNeighboringDistanceBetweenParticles(value: str | float, unit: str | None = None) None#
Set the value of “Contact Neighboring Distance Between Particles”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
- RASimulatorRun.GetContactNeighboringDistanceBetweenParticlesAndTriangles(unit: str | None = None) float#
Get the value of “Contact Neighboring Distance Between Particles And Triangles”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RASimulatorRun.SetContactNeighboringDistanceBetweenParticlesAndTriangles(value: str | float, unit: str | None = None) None#
Set the value of “Contact Neighboring Distance Between Particles And Triangles”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
- RASimulatorRun.SetNegateInitialOverlaps(value: bool) None#
Set the value of “Negate Initial Overlaps”.
- Parameters:
value – The value to set.
- RASimulatorRun.EnableNegateInitialOverlaps() None#
Set the value of “Negate Initial Overlaps” to True.
- RASimulatorRun.DisableNegateInitialOverlaps() None#
Set the value of “Negate Initial Overlaps” to False.
- RASimulatorRun.IsNegateInitialOverlapsEnabled() bool#
Check if the “Negate Initial Overlaps” is enabled.
- RASimulatorRun.GetNeighborSearchModel() str#
Get “Neighbor Search Model” as a string.
- Returns:
The returned value will be one of [‘BVH’, ‘RegularGrid’, ‘SparseGrid’].
- RASimulatorRun.SetNeighborSearchModel(value: str) None#
Set the value of “Neighbor Search Model”.
- Parameters:
value – The value to set. Must be one of [‘BVH’, ‘RegularGrid’, ‘SparseGrid’].
- Raises:
RockyApiError – If value is not a valid “Neighbor Search Model” option.
- RASimulatorRun.GetValidNeighborSearchModelValues() list[str]#
Get a list of all possible values for “Neighbor Search Model”.
- Returns:
The returned list is [‘BVH’, ‘RegularGrid’, ‘SparseGrid’].
- RASimulatorRun.SetMaximumNumberOfIterations(value: str | int) None#
Set the value of “Maximum Number of Iterations”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASimulatorRun.GetOverRelaxationCoefficient() float#
Get the value of “Over Relaxation Coefficient”.
- RASimulatorRun.SetOverRelaxationCoefficient(value: str | float) None#
Set the value of “Over Relaxation Coefficient”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.SetRefineConcaveSearch(value: bool) None#
Set the value of “Refine Concave Search”.
- Parameters:
value – The value to set.
- RASimulatorRun.GetParticleSizeLimitForReordering(unit: str | None = None) float#
Get the value of “Particle Size Limit For Reordering”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m”.
- RASimulatorRun.SetParticleSizeLimitForReordering(value: str | float, unit: str | None = None) None#
Set the value of “Particle Size Limit For Reordering”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “m”.
- RASimulatorRun.GetSpecialReorderingForWidePsd() bool#
Get the value of “Special Reordering For Wide Psd”.
- RASimulatorRun.SetSpecialReorderingForWidePsd(value: bool) None#
Set the value of “Special Reordering For Wide Psd”.
- Parameters:
value – The value to set.
- RASimulatorRun.GetResetOnlyPhysicalContactsData() bool#
Get the value of “Reset Only Physical Contacts Data”.
- RASimulatorRun.SetResetOnlyPhysicalContactsData(value: bool) None#
Set the value of “Reset Only Physical Contacts Data”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetSortingDistanceFactor(value: str | float) None#
Set the value of “Sorting Distance Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RASimulatorRun.GetTimestepModel() str#
Get “Timestep Model” as a string.
- Returns:
The returned value will be one of [‘constant’, ‘variable’].
- RASimulatorRun.SetTimestepModel(value: str) None#
Set the value of “Timestep Model”.
- Parameters:
value – The value to set. Must be one of [‘constant’, ‘variable’].
- Raises:
RockyApiError – If value is not a valid “Timestep Model” option.
- RASimulatorRun.GetValidTimestepModelValues() list[str]#
Get a list of all possible values for “Timestep Model”.
- Returns:
The returned list is [‘constant’, ‘variable’].
- RASimulatorRun.GetUse2023R2SourceTermsApproach() bool#
Get the value of “Use 2023 R2 Source Terms Approach”.
- RASimulatorRun.SetUse2023R2SourceTermsApproach(value: bool) None#
Set the value of “Use 2023 R2 Source Terms Approach”.
- Parameters:
value – The value to set.
- RASimulatorRun.GetUse2023R2CellVolumeFractionUpdateApproach() bool#
Get the value of “Use 2023 R2 Cell Volume Fraction Update Approach”.
- RASimulatorRun.SetUse2023R2CellVolumeFractionUpdateApproach(value: bool) None#
Set the value of “Use 2023 R2 Cell Volume Fraction Update Approach”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetUseArraysGrowthRate(value: bool) None#
Set the value of “Use Arrays Growth Rate”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetUseBreakageOverlapFactor(value: bool) None#
Set the value of “Use Breakage Overlap Factor”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetUse3RdPowerForCfdCgm(value: bool) None#
Set the value of “Use 3Rd Power For Cfd Cgm”.
- Parameters:
value – The value to set.
- RASimulatorRun.EnableUse3RdPowerForCfdCgm() None#
Set the value of “Use 3Rd Power For Cfd Cgm” to True.
- RASimulatorRun.DisableUse3RdPowerForCfdCgm() None#
Set the value of “Use 3Rd Power For Cfd Cgm” to False.
- RASimulatorRun.IsUse3RdPowerForCfdCgmEnabled() bool#
Check if the “Use 3Rd Power For Cfd Cgm” is enabled.
- RASimulatorRun.SetUseDragLimiterFactor(value: bool) None#
Set the value of “Use Drag Limiter Factor”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetUseFixedTimestep(value: bool) None#
Set the value of “Use Fixed Timestep”.
- Parameters:
value – The value to set.
- RASimulatorRun.GetUseContactNeighboringDistanceBetweenParticles() bool#
Get the value of “Use Contact Neighboring Distance Between Particles”.
- RASimulatorRun.SetUseContactNeighboringDistanceBetweenParticles(value: bool) None#
Set the value of “Use Contact Neighboring Distance Between Particles”.
- Parameters:
value – The value to set.
- RASimulatorRun.GetUseContactNeighboringDistanceBetweenParticlesAndTriangles() bool#
Get the value of “Use Contact Neighboring Distance Between Particles And Triangles”.
- RASimulatorRun.SetUseContactNeighboringDistanceBetweenParticlesAndTriangles(value: bool) None#
Set the value of “Use Contact Neighboring Distance Between Particles And Triangles”.
- Parameters:
value – The value to set.
- RASimulatorRun.GetUseNonRoundTorqueCorrection() bool#
Get the value of “Use Non Round Torque Correction”.
- RASimulatorRun.SetUseNonRoundTorqueCorrection(value: bool) None#
Set the value of “Use Non Round Torque Correction”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetUseSortingDistanceFactor(value: bool) None#
Set the value of “Use Sorting Distance Factor”.
- Parameters:
value – The value to set.
- RASimulatorRun.EnableSortingDistanceFactor() None#
Set the value of “Sorting Distance Factor” to True.
- RASimulatorRun.DisableSortingDistanceFactor() None#
Set the value of “Sorting Distance Factor” to False.
- RASimulatorRun.IsSortingDistanceFactorEnabled() bool#
Check if the “Sorting Distance Factor” is enabled.
- RASimulatorRun.SetUseCompressedFiles(value: bool) None#
Set the value of “Use Compressed Files”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetMpiHeterogeneous(value: bool) None#
Set the value of “Mpi Heterogeneous”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetMpiHostfile(value: str) None#
Set the value of “Mpi Hostfile”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetMpiHosts(value: str) None#
Set the value of “Mpi Hosts”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetMpiNumberOfProcesses(value: str | int) None#
Set the value of “Mpi Number of Processes”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASimulatorRun.SetMpiNumberOfThreads(value: str | int) None#
Set the value of “Mpi Number of Threads”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASimulatorRun.SetMpiWithinScheduler(value: bool) None#
Set the value of “Mpi Within Scheduler”.
- Parameters:
value – The value to set.
- RASimulatorRun.GetMultiGpuSlicingDirection() str#
Get “Multi Gpu Slicing Direction” as a string.
- Returns:
The returned value will be one of [‘X_Parallel’, ‘Y_Parallel’, ‘Z_Parallel’].
- RASimulatorRun.SetMultiGpuSlicingDirection(value: str) None#
Set the value of “Multi Gpu Slicing Direction”.
- Parameters:
value – The value to set. Must be one of [‘X_Parallel’, ‘Y_Parallel’, ‘Z_Parallel’].
- Raises:
RockyApiError – If value is not a valid “Multi Gpu Slicing Direction” option.
- RASimulatorRun.GetValidMultiGpuSlicingDirectionValues() list[str]#
Get a list of all possible values for “Multi Gpu Slicing Direction”.
- Returns:
The returned list is [‘X_Parallel’, ‘Y_Parallel’, ‘Z_Parallel’].
- RASimulatorRun.SetNumberOfProcessors(value: str | int) None#
Set the value of “Number of Processors”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASimulatorRun.GetProcessingUnit() str#
Get “Processing Unit” as a string.
- Returns:
The returned value will be one of [‘CPU’, ‘GPU’, ‘MULTI_GPU’].
- RASimulatorRun.SetProcessingUnit(value: str) None#
Set the value of “Processing Unit”.
- Parameters:
value – The value to set. Must be one of [‘CPU’, ‘GPU’, ‘MULTI_GPU’].
- Raises:
RockyApiError – If value is not a valid “Processing Unit” option.
- RASimulatorRun.GetValidProcessingUnitValues() list[str]#
Get a list of all possible values for “Processing Unit”.
- Returns:
The returned list is [‘CPU’, ‘GPU’, ‘MULTI_GPU’].
- RASimulatorRun.GetReleaseParticlesWithoutOverlapCheck() bool#
Get the value of “Release Particles Without Overlap Check”.
- RASimulatorRun.SetReleaseParticlesWithoutOverlapCheck(value: bool) None#
Set the value of “Release Particles Without Overlap Check”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetTargetGpu(value: str | int) None#
Set the value of “Target Gpu”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASimulatorRun.SetUseMpi(value: bool) None#
Set the value of “Use Mpi”.
- Parameters:
value – The value to set.
- RASimulatorRun.SetResumeDataFrequency(value: str | int) None#
Set the value of “Resume Data Frequency”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RASimulatorRun.GetBreakageDelayAfterRelease(unit: str | None = None) float#
Get the value of “Breakage Delay After Release”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RASimulatorRun.SetBreakageDelayAfterRelease(value: str | float, unit: str | None = None) None#
Set the value of “Breakage Delay After Release”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “s”.
- RASimulatorRun.GetBreakageStart(unit: str | None = None) float#
Get the value of “Breakage Start”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RASimulatorRun.SetBreakageStart(value: str | float, unit: str | None = None) None#
Set the value of “Breakage Start”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “s”.
- RASimulatorRun.GetTimeInterval(unit: str | None = None) float#
Get the value of “Time Interval”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RASimulatorRun.SetTimeInterval(value: str | float, unit: str | None = None) None#
Set the value of “Time Interval”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “s”.
- RASimulatorRun.GetOverlapParticlesDelay(unit: str | None = None) float#
Get the value of “Overlap Particles Delay”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RASimulatorRun.SetOverlapParticlesDelay(value: str | float, unit: str | None = None) None#
Set the value of “Overlap Particles Delay”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “s”.
- RASimulatorRun.GetSimulationDuration(unit: str | None = None) float#
Get the value of “Simulation Duration”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RASimulatorRun.SetSimulationDuration(value: str | float, unit: str | None = None) None#
Set the value of “Simulation Duration”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “s”.
- RASimulatorRun.GetWearGeometryUpdateInterval(unit: str | None = None) float#
Get the value of “Wear Geometry Update Interval”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RASimulatorRun.SetWearGeometryUpdateInterval(value: str | float, unit: str | None = None) None#
Set the value of “Wear Geometry Update Interval”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
unit – The unit for value. If no unit is provided, value is assumed to be in “s”.