assign_recirculation_opening#
- Icepak.assign_recirculation_opening(face_list, extract_face, thermal_specification='Temperature', assignment_value='0cel', conductance_external_temperature=None, flow_specification='Mass Flow', flow_assignment='0kg_per_s_m2', flow_direction=None, start_time=None, end_time=None, boundary_name=None)[source]#
Assign recirculation faces.
- Parameters:
- face_list
list
List of face primitive objects or a list of integers containing faces IDs.
- extract_face
modeler.cad.elements3d.FacePrimitive
,int
ID of the face on the extract side.
- thermal_specification
str
,optional
Type of the thermal assignment across the two recirculation faces. The default is
"Temperature"
. Options are"Conductance"
,"Heat Input"
, and"Temperature"
.- assignment_value
str
ordict
,optional
String with value and units of the thermal assignment. For a transient assignment, a dictionary can be used. The dictionary should contain two keys:
"Function"
and"Values"
. - For the"Function"
key, options are"Exponential"
,"Linear"
,"Piecewise Linear"
,"Power Law"
,"Sinusoidal"
, and"Square Wave"
. - For the"Values"
key, provide a list of strings containing the parameters required by the"Function"
key selection. For example, when"Linear"
is set as the"Function"
key, two parameters are required: the value of the variable at t=0 and the slope of the line. For the parameters required by each"Function"
key selection, see the Icepak documentation. The parameters must contain the units where needed. The default value is"0cel"
.- conductance_external_temperature
str
,optional
External temperature value, which is needed if
thermal_specification
is set to"Conductance"
. The default isNone
.- flow_specification
str
,optional
Flow specification for the recirculation zone. The default is
"Mass Flow"
. Options are:"Mass Flow"
,"Mass Flux"
, and"Volume Flow"
.- flow_assignment
str
ordict
,optional
String with the value and units of the flow assignment. For a transient assignment, a dictionary can be used. The dictionary should contain two keys:
"Function"
and"Values"
. - For the"Function"
key, options are"Exponential"
,"Linear"
,"Piecewise Linear"
,"Power Law"
,"Sinusoidal"
, and"Square Wave"
. - For the"Values"
key, provide a list of strings containing the parameters required by the"Function"
key selection. For example, when``”Linear”`` is set as the"Function"
key, two parameters are required: the value of the variable at t=0 and the slope of the line. For the parameters required by each"Function"
key selection, see the Icepak documentation. The parameters must contain the units where needed. The default value is"0kg_per_s_m2"
.- flow_direction
list
,optional
Flow direction enforced at the recirculation zone. The default value is
None
, in which case the normal direction is used.- start_time
str
,optional
Start of the time interval. This parameter is relevant only if the simulation is transient. The default value is
"0s"
.- end_time
str
,optional
End of the time interval. This parameter is relevant only if the simulation is transient. The default value is
"0s"
.- boundary_name
str
,optional
Name of the recirculation boundary. The default is
None
, in which case the boundary is automatically generated.
- face_list
- Returns:
pyaedt.modules.Boundary.BoundaryObject
Boundary object when successful or
None
when failed.
References
>>> oModule.AssignRecircBoundary
Examples
>>> from pyaedt import Icepak >>> ipk = Icepak() >>> ipk.solution_type = "Transient" >>> box = ipk.modeler.create_box([5, 5, 5], [1, 2, 3], "BlockBoxEmpty", "copper") >>> box.solve_inside = False >>> recirc = ipk.assign_recirculation_opening([box.top_face_x, box.bottom_face_x], box.top_face_x, >>> flow_assignment="10kg_per_s_m2")