RAFluidInlet#
- class ansys.rocky.app.ra_fluid_inlet.RAFluidInlet(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky 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
RAStudyor theRAInletsOutletsCollectionvia:input_1 = study.GetElement('Fluid Inlet <1>') input_2 = input_collection.GetParticleInput('Fluid Inlet <2>')
Instances of
RAFluidInlethas properties that can be manipulated directly, such as the input’s name and the particle entry point.
Overview#
Get “Boundary Condition” as a string. |
|
Set the value of “Boundary Condition”. |
|
Get a list of all possible values for “Boundary Condition”. |
|
Get the value of “Mass Flow Rate”. |
|
Set the value of “Mass Flow Rate”. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Injection Duration”. |
|
Set the value of “Injection Duration”. |
|
Get the value of “Periodic”. |
|
Set the value of “Periodic”. |
|
Set the value of “Periodic” to True. |
|
Set the value of “Periodic” to False. |
|
Check if the “Periodic” is enabled. |
|
Get the value of “Period”. |
|
Set the value of “Period”. |
|
Get the value of “Start Time”. |
|
Set the value of “Start Time”. |
|
Get the value of “Stop Time”. |
|
Set the value of “Stop Time”. |
|
Get the value of “Temperature”. |
|
Set the value of “Temperature”. |
|
Get the value of “Velocity”. |
|
Set the value of “Velocity”. |
|
Get the “Entry Point”. |
|
Set the “Entry Point”. |
|
Get all available Entry Points. |
Import detail#
from ansys.rocky.app.ra_fluid_inlet import RAFluidInlet
Method detail#
- RAFluidInlet.GetBoundaryCondition() str#
Get “Boundary Condition” as a string.
- Returns:
The returned value will be one of [‘mass_flow_rate’, ‘velocity’].
- RAFluidInlet.SetBoundaryCondition(value: str) None#
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.
- RAFluidInlet.GetValidBoundaryConditionValues() list[str]#
Get a list of all possible values for “Boundary Condition”.
- Returns:
The returned list is [‘mass_flow_rate’, ‘velocity’].
- RAFluidInlet.GetMassFlowRate(unit: str | None = None) float#
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”.
- RAFluidInlet.SetMassFlowRate(value: str | float, unit: str | None = None) 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”.
- RAFluidInlet.SetName(value: str) None#
Set the value of “Name”.
- Parameters:
value – The value to set.
- RAFluidInlet.GetInjectionDuration(unit: str | None = None) float#
Get the value of “Injection Duration”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAFluidInlet.SetInjectionDuration(value: str | float, unit: str | None = None) None#
Set the value of “Injection 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”.
- RAFluidInlet.SetPeriodic(value: bool) None#
Set the value of “Periodic”.
- Parameters:
value – The value to set.
- RAFluidInlet.GetPeriod(unit: str | None = None) float#
Get the value of “Period”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAFluidInlet.SetPeriod(value: str | float, unit: str | None = None) None#
Set the value of “Period”.
- 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”.
- RAFluidInlet.GetStartTime(unit: str | None = None) float#
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”.
- RAFluidInlet.SetStartTime(value: str | float, unit: str | None = None) 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”.
- RAFluidInlet.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”.
- RAFluidInlet.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”.
- RAFluidInlet.GetTemperature(unit: str | None = None) float#
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”.
- RAFluidInlet.SetTemperature(value: str | float, unit: str | None = None) 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”.
- RAFluidInlet.GetVelocity(unit: str | None = None) float#
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”.
- RAFluidInlet.SetVelocity(value: str | float, unit: str | None = None) 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”.
- RAFluidInlet.GetEntryPoint()#
Get the “Entry Point”.
- Return type:
RAInletGeometry,RARectangularSurface,RACircularSurface,RASurface
- RAFluidInlet.SetEntryPoint(value) None#
Set the “Entry Point”.
- :param unicode,
RAInletGeometry,RARectangularSurface,RACircularSurface,RASurfacevalue: Either the API object wrapping the desired entity or its name.
- :param unicode,
- RAFluidInlet.GetAvailableEntryPoints()#
Get all available Entry Points.
- Return type:
List[
RAInletGeometry,RARectangularSurface,RACircularSurface,RASurface] A list ofRAInletGeometry,RARectangularSurface,RACircularSurface,RASurface.