RAFluidInlet
Last update: 17.07.2025class RAFluidInlet
Rocky PrePost Scripting wrapper for a single Fluid Inlet input.
This wrapper class corresponds to an individual entry under the “Inputs” item on the project’s
data tree. Particle inputs can be retrieved from the RAStudy or the
RAInletsOutletsCollection via:
input_1 = study.GetElement('Fluid Inlet 1>')
input_2 = input_collection.GetParticleInput('Fluid Inlet 2>')
Instances of RAFluidInlet has properties that can be manipulated
directly, such as the input’s name and the particle entry point.
Methods:
| Name | Description |
|---|---|
GetAvailableEntryPoints() |
Get all available Entry Points. |
GetBoundaryCondition() |
Get "Boundary Condition" as a string. |
GetEntryPoint() |
Get the "Entry Point". |
GetMassFlowRate([unit]) |
Get the value of "Mass Flow Rate". |
GetStartTime([unit]) |
Get the value of "Start Time". |
GetStopTime([unit]) |
Get the value of "Stop Time". |
GetTemperature([unit]) |
Get the value of "Temperature". |
GetValidBoundaryConditionValues() |
Get a list of all possible values for "Boundary Condition". |
GetVelocity([unit]) |
Get the value of "Velocity". |
SetBoundaryCondition(value) |
Set the value of "Boundary Condition". |
SetEntryPoint(value) |
Set the "Entry Point". |
SetMassFlowRate(value[, unit]) |
Set the value of "Mass Flow Rate". |
SetStartTime(value[, unit]) |
Set the value of "Start Time". |
SetStopTime(value[, unit]) |
Set the value of "Stop Time". |
SetTemperature(value[, unit]) |
Set the value of "Temperature". |
SetVelocity(value[, unit]) |
Set the value of "Velocity". |
GetAvailableEntryPoints()
Get all available Entry Points.
- Return type:
List[
RAInletGeometry,RARectangularSurface,RACircularSurface,RASurface] A list ofRAInletGeometry,RARectangularSurface,RACircularSurface,RASurface.
GetBoundaryCondition()
Get “Boundary Condition” as a string.
- Returns: The returned value will be one of [‘mass_flow_rate’, ‘velocity’].
GetEntryPoint()
Get the “Entry Point”.
- Return type:
RAInletGeometry,RARectangularSurface,RACircularSurface,RASurface
GetMassFlowRate(unit: Optional[str] = None)
Get the value of “Mass Flow Rate”.
- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “t/h”.
GetStartTime(unit: Optional[str] = None)
Get the value of “Start Time”.
- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
GetStopTime(unit: Optional[str] = None)
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”.
GetTemperature(unit: Optional[str] = None)
Get the value of “Temperature”.
- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “K”.
GetValidBoundaryConditionValues()
Get a list of all possible values for “Boundary Condition”.
- Returns: The returned list is [‘mass_flow_rate’, ‘velocity’].
GetVelocity(unit: Optional[str] = None)
Get the value of “Velocity”.
- Parameters: unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.
SetBoundaryCondition(value: str)
Set the value of “Boundary Condition”.
- Parameters: value – The value to set. Must be one of [‘mass_flow_rate’, ‘velocity’].
- Raises: RockyApiError – If value is not a valid “Boundary Condition” option.
SetEntryPoint(value)
Set the “Entry Point”.
:param unicode, RAInletGeometry, RARectangularSurface, RACircularSurface, RASurface value:
: Either the API object wrapping the desired entity or its name.
SetMassFlowRate(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Mass Flow Rate”.
- 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 “t/h”.
SetStartTime(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Start 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”.
SetStopTime(value: Union[str, float], unit: Optional[str] = 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”.
SetTemperature(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Temperature”.
- 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 “K”.
SetVelocity(value: Union[str, float], unit: Optional[str] = None)
Set the value of “Velocity”.
- 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/s”.