RAParticleInlet#
- class ansys.rocky.app.ra_particle_inlet.RAParticleInlet(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky PrePost Scripting wrapper for a single Continuous Injection 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('Continuous Injection <1>') input_2 = input_collection.GetParticleInput('Continuous Injection <2>')
Instances of
RAParticleInletcomprise two parts: Properties that can be manipulated directly, such as the input’s name and the particle entry point, and the input properties list that describe which particles enter via this input and with each mass flow rate, temperature, etc. This list must be manipulated via theRAParticleInputPropertiesListreturned byGetInputPropertiesList().
Overview#
Return a list of input properties |
|
Add a new particle to the Particle Inlet input properties list. |
|
Remove a particle from the Particle Inlet input properties list. |
|
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 “Force Packing”. |
|
Set the value of “Force Packing”. |
|
Set the value of “Force Packing” to True. |
|
Set the value of “Force Packing” to False. |
|
Check if the “Force Packing” is enabled. |
|
Get the value of “Period”. |
|
Set the value of “Period”. |
|
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 “Start Time”. |
|
Set the value of “Start Time”. |
|
Get the value of “Stop All At Stop Time”. |
|
Set the value of “Stop All At Stop Time”. |
|
Set the value of “Stop All At Stop Time” to True. |
|
Set the value of “Stop All At Stop Time” to False. |
|
Check if the “Stop All At Stop Time” is enabled. |
|
Get the value of “Stop Time”. |
|
Set the value of “Stop Time”. |
|
Get the value of “Target Normal Velocity”. |
|
Set the value of “Target Normal Velocity”. |
|
Get the value of “Use Target Normal Velocity”. |
|
Set the value of “Use Target Normal Velocity”. |
|
Set the value of “Use Target Normal Velocity” to True. |
|
Set the value of “Use Target Normal Velocity” to False. |
|
Check if the “Use Target Normal Velocity” is enabled. |
|
Get the value of “Ux Local”. |
|
Set the value of “Ux Local”. |
|
Get the value of “Uz Local”. |
|
Set the value of “Uz Local”. |
|
Get the value of “Sph Injection Enabled”. |
|
Set the value of “Sph Injection Enabled”. |
|
Get the value of “Sph Temperature”. |
|
Set the value of “Sph Temperature”. |
|
Get the “Entry Point”. |
|
Set the “Entry Point”. |
|
Get all available Entry Points. |
Import detail#
from ansys.rocky.app.ra_particle_inlet import RAParticleInlet
Method detail#
- classmethod RAParticleInlet.GetWrappedClass()#
- RAParticleInlet.GetInputPropertiesList() ansys.rocky.app.ra_particle_inlet_properties.RAParticleInletPropertiesList#
Return a list of input properties
- RAParticleInlet.AddParticle(particle: ansys.rocky.app.ra_particle.RAParticle | str) ansys.rocky.app.ra_particle_inlet_properties.RAParticleInletPropertiesList#
Add a new particle to the Particle Inlet input properties list.
: return: A new
RAParticleInletPropertiesListobject that can be used to set
- RAParticleInlet.RemoveParticle(particle: ansys.rocky.app.ra_particle.RAParticle | str) None#
Remove a particle from the Particle Inlet input properties list.
- Parameters:
particle – The particle to remove, either as an
RAParticleobject or by name.
- RAParticleInlet.SetName(value: str) None#
Set the value of “Name”.
- Parameters:
value – The value to set.
- RAParticleInlet.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”.
- RAParticleInlet.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”.
- RAParticleInlet.SetForcePacking(value: bool) None#
Set the value of “Force Packing”.
- Parameters:
value – The value to set.
- RAParticleInlet.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”.
- RAParticleInlet.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”.
- RAParticleInlet.SetPeriodic(value: bool) None#
Set the value of “Periodic”.
- Parameters:
value – The value to set.
- RAParticleInlet.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”.
- RAParticleInlet.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”.
- RAParticleInlet.SetStopAllAtStopTime(value: bool) None#
Set the value of “Stop All At Stop Time”.
- Parameters:
value – The value to set.
- RAParticleInlet.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”.
- RAParticleInlet.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”.
- RAParticleInlet.GetTargetNormalVelocity(unit: str | None = None) float#
Get the value of “Target Normal Velocity”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.
- RAParticleInlet.SetTargetNormalVelocity(value: str | float, unit: str | None = None) None#
Set the value of “Target Normal 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”.
- RAParticleInlet.SetUseTargetNormalVelocity(value: bool) None#
Set the value of “Use Target Normal Velocity”.
- Parameters:
value – The value to set.
- RAParticleInlet.EnableUseTargetNormalVelocity() None#
Set the value of “Use Target Normal Velocity” to True.
- RAParticleInlet.DisableUseTargetNormalVelocity() None#
Set the value of “Use Target Normal Velocity” to False.
- RAParticleInlet.IsUseTargetNormalVelocityEnabled() bool#
Check if the “Use Target Normal Velocity” is enabled.
- RAParticleInlet.GetUxLocal(unit: str | None = None) float#
Get the value of “Ux Local”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.
- RAParticleInlet.SetUxLocal(value: str | float, unit: str | None = None) None#
Set the value of “Ux Local”.
- 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”.
- RAParticleInlet.GetUzLocal(unit: str | None = None) float#
Get the value of “Uz Local”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.
- RAParticleInlet.SetUzLocal(value: str | float, unit: str | None = None) None#
Set the value of “Uz Local”.
- 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”.
- RAParticleInlet.SetSphInjectionEnabled(value: bool) None#
Set the value of “Sph Injection Enabled”.
- Parameters:
value – The value to set.
- RAParticleInlet.GetSphTemperature(unit: str | None = None) float#
Get the value of “Sph Temperature”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “K”.
- RAParticleInlet.SetSphTemperature(value: str | float, unit: str | None = None) None#
Set the value of “Sph 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”.
- RAParticleInlet.GetEntryPoint()#
Get the “Entry Point”.
- Return type:
RAInletGeometry,RAFeedConveyor,RARectangularSurface,RACircularSurface,RASurface
- RAParticleInlet.SetEntryPoint(value) None#
Set the “Entry Point”.
- :param unicode,
RAInletGeometry,RAFeedConveyor,RARectangularSurface,RACircularSurface,RASurfacevalue: Either the API object wrapping the desired entity or its name.
- :param unicode,
- RAParticleInlet.GetAvailableEntryPoints()#
Get all available Entry Points.
- Return type:
List[
RAInletGeometry,RAFeedConveyor,RARectangularSurface,RACircularSurface,RASurface] A list ofRAInletGeometry,RAFeedConveyor,RARectangularSurface,RACircularSurface,RASurface.