RAVolumetricInlet#
- class ansys.rocky.app.ra_volumetric_inlet.RAVolumetricInlet(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItem,ansys.rocky.app._ra_orientation_mixin._RAOrientationMixinRocky PrePost Scripting wrapper for a single Volume Fill 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('Volume Fill <1>') input_2 = input_collection.GetParticleInput('Volume Fill <2>')
Instances of
RAVolumetricInletcomprise two parts: Properties that can be manipulated directly, such as the input’s name and the seed point, and the input properties list that describe which particles enter via this input and with its mass, temperature, etc. This list must be manipulated via theRAParticleInputPropertiesListreturned byGetInputPropertiesList().
Overview#
Return a list of input properties |
|
Add a new particle to the Volumetric Inlet input properties list. |
|
Remove a particle from the Particle Inlet input properties list. |
|
Get the value of “Box Center”. |
|
Set the values of “Box Center”. |
|
Get the value of “Box Dimensions”. |
|
Set the values of “Box Dimensions”. |
|
Get the value of “Use Geometries To Compute”. |
|
Set the value of “Use Geometries To Compute”. |
|
Get the value of “Gap Scale Factor”. |
|
Set the value of “Gap Scale Factor”. |
|
Get the value of “Initial Velocity”. |
|
Set the values of “Initial Velocity”. |
|
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 “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Period”. |
|
Set the value of “Period”. |
|
Get the value of “Seed Coordinates”. |
|
Set the values of “Seed Coordinates”. |
|
Get the value of “Injection Time”. |
|
Set the value of “Injection Time”. |
|
Get the value of “Stop Time”. |
|
Set the value of “Stop Time”. |
|
Get the value of “Sph Mass”. |
|
Set the value of “Sph Mass”. |
|
Get the value of “Sph Temperature”. |
|
Set the value of “Sph Temperature”. |
|
Get the value of “Use Box Center As Seed Point”. |
|
Set the value of “Use Box Center As Seed Point”. |
|
Set the value of “Use Box Center As Seed Point” to True. |
|
Set the value of “Use Box Center As Seed Point” to False. |
|
Check if the “Use Box Center As Seed Point” is enabled. |
|
Get the “Geometries”. |
|
Set the “Geometries”. |
|
Get all available Geometries. |
Import detail#
from ansys.rocky.app.ra_volumetric_inlet import RAVolumetricInlet
Method detail#
- RAVolumetricInlet.GetInputPropertiesList() ansys.rocky.app.ra_volumetric_inlet_properties.RAVolumetricInletPropertiesList#
Return a list of input properties
- RAVolumetricInlet.AddParticle(particle: ansys.rocky.app.ra_particle.RAParticle | str) ansys.rocky.app.ra_volumetric_inlet_properties.RAVolumetricInletProperties#
Add a new particle to the Volumetric Inlet input properties list.
: return: A new
RAVolumetricInletPropertiesobject that can be used to set
- RAVolumetricInlet.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.
- RAVolumetricInlet.GetBoxCenter(unit: str | None = None) list[float]#
Get the value of “Box Center”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RAVolumetricInlet.SetBoxCenter(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Box Center”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAVolumetricInlet.GetBoxDimensions(unit: str | None = None) list[float]#
Get the value of “Box Dimensions”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RAVolumetricInlet.SetBoxDimensions(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Box Dimensions”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAVolumetricInlet.SetUseGeometriesToCompute(value: bool) None#
Set the value of “Use Geometries To Compute”.
- Parameters:
value – The value to set.
- RAVolumetricInlet.SetGapScaleFactor(value: str | float) None#
Set the value of “Gap Scale Factor”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAVolumetricInlet.GetInitialVelocity(unit: str | None = None) list[float]#
Get the value of “Initial Velocity”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m/s”.
- RAVolumetricInlet.SetInitialVelocity(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Initial Velocity”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m/s”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAVolumetricInlet.SetPeriodic(value: bool) None#
Set the value of “Periodic”.
- Parameters:
value – The value to set.
- RAVolumetricInlet.SetName(value: str) None#
Set the value of “Name”.
- Parameters:
value – The value to set.
- RAVolumetricInlet.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”.
- RAVolumetricInlet.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”.
- RAVolumetricInlet.GetSeedCoordinates(unit: str | None = None) list[float]#
Get the value of “Seed Coordinates”.
- Parameters:
unit – The unit for the returned values. If no unit is provided, the returned values will be in “m”.
- RAVolumetricInlet.SetSeedCoordinates(values: collections.abc.Sequence[str | float], unit: str | None = None) None#
Set the values of “Seed Coordinates”.
- Parameters:
values – The values to set. The values can be heterogeneous, the element of values can be an expression with input variables or a float. Must have exactly 3 elements.
unit – The unit for values. If no unit is provided, values is assumed to be in “m”.
- Raises:
RockyApiError – If values doesn’t have exactly 3 elements.
- RAVolumetricInlet.GetInjectionTime(unit: str | None = None) float#
Get the value of “Injection Time”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “s”.
- RAVolumetricInlet.SetInjectionTime(value: str | float, unit: str | None = None) None#
Set the value of “Injection 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”.
- RAVolumetricInlet.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”.
- RAVolumetricInlet.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”.
- RAVolumetricInlet.GetSphMass(unit: str | None = None) float#
Get the value of “Sph Mass”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “kg”.
- RAVolumetricInlet.SetSphMass(value: str | float, unit: str | None = None) None#
Set the value of “Sph Mass”.
- 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 “kg”.
- RAVolumetricInlet.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”.
- RAVolumetricInlet.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”.
- RAVolumetricInlet.GetUseBoxCenterAsSeedPoint() bool#
Get the value of “Use Box Center As Seed Point”.
- RAVolumetricInlet.SetUseBoxCenterAsSeedPoint(value: bool) None#
Set the value of “Use Box Center As Seed Point”.
- Parameters:
value – The value to set.
- RAVolumetricInlet.EnableUseBoxCenterAsSeedPoint() None#
Set the value of “Use Box Center As Seed Point” to True.
- RAVolumetricInlet.DisableUseBoxCenterAsSeedPoint() None#
Set the value of “Use Box Center As Seed Point” to False.
- RAVolumetricInlet.IsUseBoxCenterAsSeedPointEnabled() bool#
Check if the “Use Box Center As Seed Point” is enabled.
- RAVolumetricInlet.GetGeometries()#
Get the “Geometries”.
- Return type:
List[
RAWall] A list ofRAWall.
- RAVolumetricInlet.SetGeometries(values) None#
Set the “Geometries”.
- :param List[str,
RAWall] values: A list with names,
RAWall.
- :param List[str,
- RAVolumetricInlet.GetAvailableGeometries()#
Get all available Geometries.
- Return type:
List[
RAWall] A list ofRAWall.