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:
assignmentint

Face ID.

namestr, optional

Name of the node. Default is None.

thermal_resistancestr

Thermal resistance value and unit. Default is "NoResistance".

materialstr, optional

Material specification (required if thermal_resistance="Compute"). Default is None.

thicknessstr or float, optional

Thickness value and unit (required if thermal_resistance="Compute"). If a float is passed, "mm" unit is automatically used. Default is None.

resistancestr or float, optional

Resistance value and unit (required if thermal_resistance="Specified"). If a float is passed, "cel_per_w" unit is automatically used. Default is None.

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)