add_face_node#
- NetworkObject.add_face_node(assignment, name=None, thermal_resistance='NoResistance', material=None, thickness=None, resistance=None)[source]#
Create a face node in the network.
- Parameters:
- assignment
int
Face ID.
- name
str
,optional
Name of the node. Default is
None
.- thermal_resistance
str
Thermal resistance value and unit. Default is
"NoResistance"
.- material
str
,optional
Material specification (required if
thermal_resistance="Compute"
). Default isNone
.- thickness
str
orfloat
,optional
Thickness value and unit (required if
thermal_resistance="Compute"
). If a float is passed,"mm"
unit is automatically used. Default isNone
.- resistance
str
orfloat
,optional
Resistance value and unit (required if
thermal_resistance="Specified"
). If a float is passed,"cel_per_w"
unit is automatically used. Default isNone
.
- assignment
- Returns:
- bool
True if successful.
Examples
>>> import ansys.aedt.core >>> app = ansys.aedt.core.Icepak() >>> network = ansys.aedt.core.modules.boundary.Network(app) >>> box = app.modeler.create_box([5, 5, 5],[20, 50, 80]) >>> faces_ids = [face.id for face in box.faces] >>> network.add_face_node(faces_ids[0]) >>> network.add_face_node(faces_ids[1],name="TestNode",thermal_resistance="Compute", ... material="Al-Extruded",thickness="2mm") >>> network.add_face_node(faces_ids[2],name="TestNode",thermal_resistance="Specified",resistance=2)