RAInletsOutletsCollection#
- class ansys.rocky.app.ra_inlets_outlets_collection.RAInletsOutletsCollection#
Bases:
ansys.rocky.app.ra_list.RAList[ansys.rocky.app.ra_particle_inlet.RAParticleInlet]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
RAInletsOutletsCollectionfrom aRAStudy, use:input_collection = study.GetInletsOutletsCollection()
Instances of the
RAInletsOutletsCollectionclass act as regular Python lists, and can be iterated on, accessed via index, etc:input_1 = input_collection.New() input_2 = input_collection[1] del input_collection[0] for input in input_collection: print(input.GetName())
Items in this list are of type
RAParticleInlet.
Overview#
Add a new item. Returns the newly created item. |
|
Add a new ParticleInlet. Returns the newly created item. |
|
Add a new Outlet. Returns the newly created item. |
|
Add a new VolumeFill. Returns the newly created item. |
|
Add a new CustomInput. Returns the newly created item. |
|
Add a new SPHInlet. Returns the newly created item. |
|
Get the names of all particle inputs. |
|
Get the particle input with the given name. |
Import detail#
from ansys.rocky.app.ra_inlets_outlets_collection import RAInletsOutletsCollection
Method detail#
- classmethod RAInletsOutletsCollection.GetWrappedClass()#
- classmethod RAInletsOutletsCollection.GetClassName()#
- RAInletsOutletsCollection.New()#
Add a new item. Returns the newly created item.
- Return type:
- RAInletsOutletsCollection.AddParticleInlet() ansys.rocky.app.ra_particle_inlet.RAParticleInlet#
Add a new ParticleInlet. Returns the newly created item.
- RAInletsOutletsCollection.AddOutlet() ansys.rocky.app.ra_outlet.RAOutlet#
Add a new Outlet. Returns the newly created item.
- RAInletsOutletsCollection.AddVolumetricInlet() ansys.rocky.app.ra_volumetric_inlet.RAVolumetricInlet#
Add a new VolumeFill. Returns the newly created item.
- RAInletsOutletsCollection.AddCustomInput() ansys.rocky.app.ra_custom_input.RACustomInput#
Add a new CustomInput. Returns the newly created item.
- RAInletsOutletsCollection.AddFluidInlet() ansys.rocky.app.ra_fluid_inlet.RAFluidInlet#
Add a new SPHInlet. Returns the newly created item.
- RAInletsOutletsCollection.GetParticleInputNames()#
Get the names of all particle inputs.
- Return type:
list(unicode)
- RAInletsOutletsCollection.GetParticleInput(input_name)#
Get the particle input with the given name.
- Parameters:
input_name (unicode)
- Return type: