assign_velocity_free_opening#
- Icepak.assign_velocity_free_opening(assignment, boundary_name=None, temperature='AmbientTemp', radiation_temperature='AmbientRadTemp', pressure='AmbientPressure', velocity=['0m_per_sec', '0m_per_sec', '0m_per_sec'])[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
,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_temperature
str
orfloat
,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"
.- pressure
float
orstr
ordict
,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"
.- 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. Also, a dictionary containing the keys
'Function'
and'Values'
can be passed in one or more vector element to set a transient behaviour. The acceptable values associated with those keys can be found in the Icepak documentation. Default is["0m_per_sec", "0m_per_sec", "0m_per_sec"]
.
- assignment
- 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_velocity_free_opening(f_id)