add_boundary_node#
- NetworkObject.add_boundary_node(name, assignment_type, value)#
Add a boundary node to the network.
- Parameters:
- name
str Name of the node.
- assignment_type
str Type assignment. Options are
"Power"and"Temperature".- value
strorfloatordict String, float, or dictionary containing the value of the assignment. If a float is passed the
"W"or"cel"unit is used, depending on the selection for theassignment_typeparameter. If"Power"is selected for the type, a dictionary can be passed to use temperature-dependent or transient assignment.
- name
- Returns:
- bool
Trueif successful.
Examples
>>> import ansys.aedt.core >>> app = ansys.aedt.core.Icepak() >>> network = ansys.aedt.core.modules.boundary.Network(app) >>> network.add_boundary_node("TestNode", "Temperature", 2) >>> ds = app.create_dataset1d_design("Test_DataSet", [1, 2, 3], [3, 4, 5]) >>> network.add_boundary_node("TestNode", "Power", {"Type": "Temp Dep", >>> "Function": "Piecewise Linear", >>> "Values": "Test_DataSet"})