assign_mass_flow_free_opening#

Icepak.assign_mass_flow_free_opening(assignment, boundary_name=None, temperature='AmbientTemp', radiation_temperature='AmbientRadTemp', pressure='AmbientPressure', mass_flow_rate='0kg_per_s', inflow=True, direction_vector=None)[source]#

Assign free opening boundary condition.

Parameters:
assignmentint or str or list

Integer indicating a face ID or a string indicating an object name. A list of face IDs or object names is also accepted.

boundary_namestr, optional

Boundary name. The default is None, in which case the name is generated automatically.

temperaturestr or float or dict, optional

Prescribed temperature at the boundary. If a string is set, a variable name or a number with the unit is expected. If a float is set, the unit 'cel' is automatically added. Also, a dictionary containing the keys 'Function' and 'Values' can be passed to set a transient behaviour. The acceptable values associated with those keys can be found in the Icepak documentation. Default is "AmbientTemp".

radiation_temperaturestr or float, optional

Prescribed radiation temperature at the boundary. If a string is set, a variable name or a number with the unit is expected. If a float is set, the unit 'cel' is automatically added. Also, a dictionary containing the keys 'Function' and 'Values' can be passed to set a transient behaviour. The acceptable values associated with those keys can be found in the Icepak documentation. Default is "AmbientRadTemp".

pressurefloat or str or dict, optional

Prescribed pressure (static or total coherently with flow type) at the boundary. If a string is set, a variable name or a number with the unit is expected. If a float is set, the unit 'pascal' is automatically added. Also, a dictionary containing the keys 'Function' and 'Values' can be passed to set a transient behavior. The acceptable values associated with those keys can be found in the Icepak documentation. The default is "AmbientPressure".

mass_flow_ratefloat or str or dict, optional

Prescribed pressure (static or total coherently with flow type) at the boundary. If a string is set, a variable name or a number with the unit is expected. If a float is set, the unit 'kg_per_s' is automatically added. Also, a dictionary containing the keys 'Function' and 'Values' can be passed to set a transient behaviour. The acceptable values associated with those keys can be found in the Icepak documentation. Default is "0kg_per_s".

inflowbool, optional

Prescribe if the imposed mass flow is an inflow or an outflow. Default is "True", in which case an inflow is prescribed.

direction_vectorlist, optional

Prescribe the direction of the massflow. Default is "None", in which case a massflow normal to the boundary is prescribed.

Returns:
pyaedt.modules.Boundary.BoundaryObject

Boundary object when successful or None when failed.

References

oModule.AssignOpeningBoundary

Examples

>>> import pyaedt
>>> icepak = pyaedt.Icepak()
>>> f_id = icepak.modeler["Region"].faces[0].id
>>> icepak.assign_mass_flow_free_opening(f_id)