Download Advanced Power System Simulation SIMPLIS Reference
Transcript
Chapter 5 Subcircuit Definition E' 5.1 Ebers-Moll model of an NPN transistor: (a) Circuit symbol, (b) the Ebers-Moll model. Note: B', C', and E' are the internal nodes introduced for modeling purposes Subcircuit Definition The main circuit refers to the circuit definition which begins with the title statement, which is the first line in the input file, and ends with the .END statement, which is the last significant line in the input file. Any number of subcircuits can be defined within the main circuit. The subcircuits can also be nested within other subcircuits. As many as 20 levels of nesting are allowed. A typical group of statements defining a subcircuit definition duplicates the following pattern of statements: Start Subcircuit Statement Comment Statements Device Statements Model Statements Subcircuit Definitions Control Statements End Subcircuit Statement Obviously, the "Start Subcircuit Statement" and the "End Subcircuit Statement" must be the first and the last statements, respectively, in the definition of a subcircuit. Between these start and end statements, the comment statements, device statements, model statements, subcircuit definitions, and control statements can appear in any order or sequence without any effect on the reading of the input file. Parent and Child Relationships for Subcircuits When a subcircuit named "AAA" is defined in a general circuit named "BBB", then the subcircuit "AAA" is considered the child of the general circuit "BBB" and the general circuit "BBB" is considered the parent of the subcircuit "AAA". Each subcircuit can 89