RAMassFlowDynamicInletProperties#

class ansys.rocky.app.ra_mass_flow_dynamic_inlet_properties.RAMassFlowDynamicInletProperties(id: str, model_id: str | None = None)#

Bases: ansys.rocky.app.api_element_item.ApiElementItem

Rocky PrePost Scripting wrapper for a single entry in a MassFlowDynamicInlet’s input list.

Access this wrapper from a given RAMassFlowDynamicInlet with:

input_properties_list = mass_flow_dynamic_inlet.GetInputPropertiesList()
input_properties_1 = input_properties_list.New()
input_properties_1.SetParticle('Particle 1')
input_properties_1.SetMassFlowRate(100, 't/h')

Overview#

GetMassFlowRate

Get the value of “Mass Flow Rate”.

SetMassFlowRate

Set the value of “Mass Flow Rate”.

GetTemperature

Get the value of “Temperature”.

SetTemperature

Set the value of “Temperature”.

GetParticle

Get the “Particle”.

SetParticle

Set the “Particle”.

GetAvailableParticles

Get all available Particles.

Import detail#

from ansys.rocky.app.ra_mass_flow_dynamic_inlet_properties import RAMassFlowDynamicInletProperties

Method detail#

classmethod RAMassFlowDynamicInletProperties.GetWrappedClass() → type[rocky30.models.input.mass_flow_dynamic_inlet.MassFlowDynamicInletProperties]#
classmethod RAMassFlowDynamicInletProperties.GetClassName() → str#
RAMassFlowDynamicInletProperties.GetMassFlowRate(unit: str | None = None) → float#

Get the value of “Mass Flow Rate”.

Parameters:

unit – The unit for the returned value. If no unit is provided, the returned value will be in “t/h”.

RAMassFlowDynamicInletProperties.SetMassFlowRate(value: str | float, unit: str | None = None) → None#

Set the value of “Mass Flow Rate”.

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 “t/h”.

RAMassFlowDynamicInletProperties.GetTemperature(unit: str | None = None) → float#

Get the value of “Temperature”.

Parameters:

unit – The unit for the returned value. If no unit is provided, the returned value will be in “K”.

RAMassFlowDynamicInletProperties.SetTemperature(value: str | float, unit: str | None = None) → None#

Set the value of “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”.

RAMassFlowDynamicInletProperties.GetParticle()#

Get the “Particle”.

Return type:

RAParticle

RAMassFlowDynamicInletProperties.SetParticle(value) → None#

Set the “Particle”.

:param unicode, RAParticle value:

Either the API object wrapping the desired entity or its name.

RAMassFlowDynamicInletProperties.GetAvailableParticles()#

Get all available Particles.

Return type:

List[RAParticle] A list of RAParticle.