RAResidenceTime#
- class ansys.rocky.app.ra_residence_time.RAResidenceTime(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky PrePost Scripting wrapper to manipulate Residence Time Calculators in a project.
The class corresponds to an individual “Residence Time” calculation under the “Particles Calculation” item on the project’s data tree. To create the
RAResidenceTimefrom aRACalculations, use:selection_process = study.GetElement('Particles') particles_calculations = study.GetCalculations() residence_time = particles_calculations.CreateSelectionResidenceTime(selection_process)
Overview#
Get the grid function name. This name can be used to access the grid |
|
Get the grid function name. This name can be used to access the grid |
|
Get the value of “Name Mask”. |
|
Set the value of “Name Mask”. |
|
Get the value of “Stop Time”. |
|
Set the value of “Stop Time”. |
|
Get the value of “Start Time”. |
|
Set the value of “Start Time”. |
Import detail#
from ansys.rocky.app.ra_residence_time import RAResidenceTime
Method detail#
- classmethod RAResidenceTime.GetWrappedClass() type[rocky30.plugins.particles_calculations.selection_residence_time_calculation.ParticlesSelectionResidenceTimeCalculator]#
- RAResidenceTime.GetGridFunctionName() str#
Get the grid function name. This name can be used to access the grid function on a particle-based process.
- RAResidenceTime.GetCalculatorName() str#
Get the grid function name. This name can be used to access the grid function on a particle-based process.
- RAResidenceTime.SetNameMask(value: str) None#
Set the value of “Name Mask”.
- Parameters:
value – The value to set.
- RAResidenceTime.GetStopTime(unit: str | None = None) float#
Get the value of “Stop Time”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAResidenceTime.SetStopTime(value: str | float, unit: str | None = None) None#
Set the value of “Stop Time”.
- 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”.