Skip to main content
Ctrl+K
PyAEDT - Home PyAEDT - Home
  • Getting started
  • User guide
  • API reference
  • Examples
  • Release notes
Ctrl+K
  • GitHub
  • Support
  • Getting started
  • User guide
  • API reference
  • Examples
  • Release notes
Ctrl+K
  • GitHub
  • Support

Section Navigation

  • Application and solvers
  • Material and stackup
  • 3D modeler
  • 2D modeler
  • Primitives
  • Modeler in HFSS 3D Layout
  • Modeler and components Circuit
  • Boundary objects
    • BoundaryObject
    • FarFieldSetup
    • NearFieldSetup
    • Matrix
    • MaxwellParameters
    • MaxwellMatrix
    • BoundaryObject3dLayout
    • NetworkObject
      • add_boundary_node
      • add_face_node
      • add_internal_node
      • add_link
      • add_links_from_dictionaries
      • add_nodes_from_dictionaries
      • create
      • delete
      • jsonalize_tree
      • suppress_all
      • unsuppress_all
      • update
      • update_assignment
      • update_property
      • auto_update
      • available_properties
      • boundary_nodes
      • c_links
      • children
      • command
      • face_nodes
      • faces_ids_in_network
      • internal_nodes
      • links
      • name
      • nodes
      • objects_in_network
      • properties
      • props
      • r_links
      • type
    • Sources
    • PowerSinSource
    • PowerIQSource
    • VoltageFrequencyDependentSource
    • VoltageDCSource
    • VoltageSinSource
    • CurrentSinSource
    • NativeComponentPCB
    • NativeComponentObject
    • PCBSettingsDeviceParts
    • PCBSettingsPackageParts
    • SinusoidalDictionary
    • LinearDictionary
    • PowerLawDictionary
    • ExponentialDictionary
    • SquareWaveDictionary
    • PieceWiseLinearDictionary
  • Mesh operations
  • Setup
  • Visualization
  • Logger
  • Optimetrics
  • Variable
  • Constants
  • Configuration files
  • Setup templates
  • Cable modeling
  • Filter design
  • Generic
  • PyAnsys
  • API reference
  • Boundary objects
  • NetworkObject
  • add_links_from_dictionaries

add_links_from_dictionaries#

NetworkObject.add_links_from_dictionaries(connections)#

Create links in the network object.

Parameters:
connectionsdict or list of dict

Dictionary or list of dictionaries containing the links between nodes. Each dictionary consists of these elements:

  • "Link": a three-item list consisting of the two nodes that the link is connecting and

    the value with unit of the link. The node of the connection can be referred to with the name (str) or face ID (int). The link type (resistance, heat transfer coefficient, or mass flow) is determined automatically from the unit.

  • "Name" (optional): a string specifying the name of the link.

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[i]) for i in range(2)]
>>> connection = {"Name": "LinkTest", "Link": [faces_ids[1], faces_ids[0], "1cel_per_w"]}
>>> network.add_links_from_dictionaries(connection)
On this page
  • add_links_from_dictionaries()
Edit on GitHub
  • Show Source

© Copyright (c) 2025 ANSYS, Inc. All rights reserved.

Created using Sphinx 8.1.3.

Built with the Ansys Sphinx Theme 1.5.3.
Last updated on