Skip to main content

class RAInletsOutletsCollection

Rocky PrePost Scripting wrapper for the collection of particle inputs in a project. This wrapper corresponds to the “Inputs” item in the project’s data tree. To retrieve the RAInletsOutletsCollection from a RAStudy, use:
Instances of the RAInletsOutletsCollection class act as regular Python lists, and can be iterated on, accessed via index, etc:
Items in this list are of type RAParticleInlet. Methods:

AddContinuousInjection()

Add a new ContinuousInjection. Returns the newly created item.

AddCustomInput()

Add a new CustomInput. Returns the newly created item.

AddFluidInlet()

Add a new SPHInlet. Returns the newly created item.

AddOutlet()

Add a new Outlet. Returns the newly created item.

AddParticleInlet()

Add a new ParticleInlet. Returns the newly created item.

AddVolumetricInlet()

Add a new VolumeFill. Returns the newly created item.

Clear()

Remove all items from the list.

GetParticleInput(input_name)

Get the particle input with the given name.

GetParticleInputNames()

Get the names of all particle inputs.
  • Return type: list(unicode)

New()

Add a new item. Returns the newly created item.
  • Return type: ApiElementItem

Remove(item: T)

Remove an item from the list.