RAMassFlowDynamicInlet#
- class ansys.rocky.app.ra_mass_flow_dynamic_inlet.RAMassFlowDynamicInlet(id: str, model_id: str | None = None)#
Bases:
ansys.rocky.app.api_element_item.ApiElementItemRocky PrePost Scripting wrapper for a single Mass Flow Dynamic Inlet input.
This wrapper class corresponds to an individual entry under the “Inputs” item on the project’s data tree. Mass Flow Dynamic Inlets can be retrieved from the
RAStudyor theRAInletsOutletsCollectionvia:inlet = study.GetElement('Mass Flow Dynamic Inlet <1>')
Overview#
Return a list of input properties |
|
Add a new particle to the Mass Flow Dynamic Inlet input properties list. |
|
Remove a particle from the Mass Flow Dynamic Inlet input properties list. |
|
Get the value of “Name”. |
|
Set the value of “Name”. |
|
Get the value of “Injection Velocity”. |
|
Set the value of “Injection Velocity”. |
|
Get the value of “Maximum Injection Tries”. |
|
Set the value of “Maximum Injection Tries”. |
|
Get the value of “Period”. |
|
Set the value of “Period”. |
|
Get the value of “Random Travel Exponent”. |
|
Set the value of “Random Travel Exponent”. |
|
Get the value of “Size Scaling”. |
|
Set the value of “Size Scaling”. |
|
Get the value of “Start Time”. |
|
Set the value of “Start Time”. |
|
Get the value of “Stop Time”. |
|
Set the value of “Stop Time”. |
|
Get the value of “Void Fraction”. |
|
Set the value of “Void Fraction”. |
Import detail#
from ansys.rocky.app.ra_mass_flow_dynamic_inlet import RAMassFlowDynamicInlet
Method detail#
- classmethod RAMassFlowDynamicInlet.GetWrappedClass()#
- RAMassFlowDynamicInlet.GetInputPropertiesList() ansys.rocky.app.ra_mass_flow_dynamic_inlet_properties.RAMassFlowDynamicInletPropertiesList#
Return a list of input properties
- RAMassFlowDynamicInlet.AddParticle(particle: ansys.rocky.app.ra_particle.RAParticle | str) ansys.rocky.app.ra_mass_flow_dynamic_inlet_properties.RAMassFlowDynamicInletPropertiesList#
Add a new particle to the Mass Flow Dynamic Inlet input properties list.
- Returns:
A new
RAMassFlowDynamicInletPropertiesListobject.
- RAMassFlowDynamicInlet.RemoveParticle(particle: ansys.rocky.app.ra_particle.RAParticle | str) None#
Remove a particle from the Mass Flow Dynamic Inlet input properties list.
- Parameters:
particle – The particle to remove, either as an
RAParticleobject or by name.
- RAMassFlowDynamicInlet.SetName(value: str) None#
Set the value of “Name”.
- Parameters:
value – The value to set.
- RAMassFlowDynamicInlet.GetInjectionVelocity(unit: str | None = None) float#
Get the value of “Injection Velocity”.
- Parameters:
unit – The unit for the returned value. If no unit is provided, the returned value will be in “m/s”.
- RAMassFlowDynamicInlet.SetInjectionVelocity(value: str | float, unit: str | None = None) None#
Set the value of “Injection 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”.
- RAMassFlowDynamicInlet.SetMaximumInjectionTries(value: str | int) None#
Set the value of “Maximum Injection Tries”.
- Parameters:
value – The value to set. This value can be an expression with input variables or int type.
- RAMassFlowDynamicInlet.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”.
- RAMassFlowDynamicInlet.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”.
- RAMassFlowDynamicInlet.SetRandomTravelExponent(value: str | float) None#
Set the value of “Random Travel Exponent”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAMassFlowDynamicInlet.SetSizeScaling(value: str | float) None#
Set the value of “Size Scaling”.
- Parameters:
value – The value to set. This value can be an expression with input variables or float type.
- RAMassFlowDynamicInlet.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”.
- RAMassFlowDynamicInlet.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”.
- RAMassFlowDynamicInlet.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”.
- RAMassFlowDynamicInlet.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”.