/
Create a subcircuit

Documentation Home Page HYPERSIM Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Create a subcircuit

This is the procedure to create a sub-circuit from a part of an existing network like the one shown below:

Existing network diagram
Existing network diagram

First, add the port connectors.

Click the Options tab, then click New Port Connector in the Subcircuit section of the toolbar.

This opens the New Port Connector window

Opening the New Port Connector window
Opening the New Port Connector window


Select Power (for a power signal) and enter a port name in the Port Name: field, then click Place.

New Port Connector settings
New Port Connector settings


Connect the newly-created port to the appropriate segment and repeat the operation for each signal that will display outside of the subcircuit.

Added port connector
Added port connector


Click and drag to select the parts of the model to encapsulate in a subcircuit.

Selected zone to be encapsulated in a subcircuit
Selected zone to be encapsulated in a subcircuit


With the parts highlighted, click Create Subcircuit Block... in the Options toolbar.

This opens the Subcircuit Wizard.

Create Subcircuit Block tool
Create Subcircuit Block tool

Select The selected items in the current circuit and click Next.



Specify the desired pin positions and click Next.

Specifying pin positions
Specifying pin positions

Unless you want to reposition pins on the subcircuit block, simply enter a name for the subcircuit in the Symbol Name field and click Next.

Naming symbols in the Symbol Text Options window
Naming symbols in the Symbol Text Options window


Click the checkbox to save the subcircuit in a library check the box and provide the library name where to save it and click Finish.

Saving the new part
Saving the new part

Delete the blocks used to create the sub-circuit if needed and connect the sub-circuit to the desired location.

New circuit diagram with subcircuit
New circuit diagram with subcircuit


Once the subcircuit is created, you can open the subcircuit with the shortcut Ctrl + Shift + i

Right-click the subcircuit and select Subcircuit info to view subcircuit content. The subcircuit Properties window appears.

Click Open.

Viewing the subcircuit
Viewing the subcircuit

The subcircuit window appears and you can view all its components.

Subcircuit content
Subcircuit content


Finally, start the model to verify that it is functioning properly.

Running model
Running model





OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter