RAOutlet#
- class ansys.rocky.app.ra_outlet.RAOutlet(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky PrePost Scripting wrapper for a single Outlet.
This wrapper class corresponds to an individual entry under the “Inlets and Outlets” item on the project’s data tree. It can be retrieved from the
RAStudyvia:input_1 = study.GetElement('Outlet <1>')
Overview#
Get the value of “Enabled For Particles”. |
|
Set the value of “Enabled For Particles”. |
|
Get the value of “Enabled For Sph”. |
|
Set the value of “Enabled For Sph”. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Pressure”. |
|
Set the value of “Pressure”. |
|
Get the value of “Prescribed Pressure Enabled”. |
|
Set the value of “Prescribed Pressure Enabled”. |
|
Set the value of “Prescribed Pressure” to True. |
|
Set the value of “Prescribed Pressure” to False. |
|
Check if the “Prescribed Pressure” is enabled. |
|
Get the “Exit Point”. |
|
Set the “Exit Point”. |
|
Get all available Exit Points. |
Import detail#
from ansys.rocky.app.ra_outlet import RAOutlet
Method detail#
- classmethod RAOutlet.GetWrappedClass()#
- RAOutlet.SetEnabledForParticles(value: bool) None#
Set the value of “Enabled For Particles”.
- Parameters:
value – The value to set.
- RAOutlet.SetEnabledForSph(value: bool) None#
Set the value of “Enabled For Sph”.
- Parameters:
value – The value to set.
- RAOutlet.GetPressure(unit: str | None = None) float#
Get the value of “Pressure”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “Pa”.
- RAOutlet.SetPressure(value: str | float, unit: str | None = None) None#
Set the value of “Pressure”.
- 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 “Pa”.
- RAOutlet.SetPrescribedPressureEnabled(value: bool) None#
Set the value of “Prescribed Pressure Enabled”.
- Parameters:
value – The value to set.
- RAOutlet.GetExitPoint()#
Get the “Exit Point”.
- Return type:
RARectangularSurface,RACircularSurface,RASurface
- RAOutlet.SetExitPoint(value) None#
Set the “Exit Point”.
- :param unicode,
RARectangularSurface,RACircularSurface,RASurfacevalue: Either the API object wrapping the desired entity or its name.
- :param unicode,
- RAOutlet.GetAvailableExitPoints()#
Get all available Exit Points.
- Return type:
List[
RARectangularSurface,RACircularSurface,RASurface] A list ofRARectangularSurface,RACircularSurface,RASurface.