assign_free_opening#
- Icepak.assign_free_opening(assignment, boundary_name=None, temperature='AmbientTemp', radiation_temperature='AmbientRadTemp', flow_type='Pressure', pressure='AmbientPressure', no_reverse_flow=False, velocity=['0m_per_sec', '0m_per_sec', '0m_per_sec'], mass_flow_rate='0kg_per_s', inflow=True, direction_vector=None)[source]#
Assign free opening boundary condition.
- Parameters:
- assignment
int
orstr
orlist
Integer indicating a face ID or a string indicating an object name. A list of face IDs or object names is also accepted.
- boundary_name
str
,optional
Boundary name. Default is
None
, in which case the name is generated automatically.- temperature
str
orfloat
ordict
orBoundaryDictionary
,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. Assign a transient condition using the result of a function with thecreate_*_transient_assignment
pattern.- radiation_temperature
str
orfloaty
,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. Default is"AmbientRadTemp"
.- flow_type
int
orstr
,optional
Prescribed radiation flow type at the boundary. Available options are
"Pressure"
,"Velocity"
, and"Mass Flow"
. The default is"Pressure"
.- pressure
float
orstr
ordict
orBoundaryDictionary
,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. Assign a transient condition using the result of a function with thecreate_*_transient_assignment
pattern. The default is"AmbientPressure"
.- no_reverse_flowbool,
optional
Option to block reverse flow at the boundary. Default is
False
.- velocity
list
,optional
- Prescribed velocity at the boundary. If a list of strings is set, a variable name or a number
with the unit is expected for each element. If list of floats is set, the unit
'm_per_sec'
is automatically added. Assign a transient condition using the result of a function with the
create_*_transient_assignment
pattern as an element of the list. Default is["0m_per_sec", "0m_per_sec", "0m_per_sec"]
.- mass_flow_rate
float
orstr
ordict
orBoundaryDictionary
,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. Assign a transient condition using the result of a function with thecreate_*_transient_assignment
pattern. 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_vector
list
,optional
Prescribe the direction of the massflow. Default is
"None"
, in which case a massflow normal to the boundary is prescribed.
- assignment
- Returns:
ansys.aedt.core.modules.boundary.BoundaryObject
Boundary object when successful or
None
when failed.
References
oModule.AssignOpeningBoundary
Examples
>>> import ansys.aedt.core >>> icepak = ansys.aedt.core.Icepak() >>> f_id = icepak.modeler["Region"].faces[0].id >>> icepak.assign_free_opening(f_id)