Beruflich Dokumente
Kultur Dokumente
The advanced circuit-coupled simulation available in the ANSYS program allows for accurate
simulation of items such as those listed below:
z Solenoid actuators
z Transformers
z AC machines.
Note-This chapter describes some of the most important characteristics of CIRCU124. For a complete
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 2 of 26
Table 15-1 Circuit components which the CIRCU124 element can model
KEYOPT(1)
Circuit Option and Graphics Label Real Constants
Setting
Resistor (R) 0 R1 = Resistance (RES)
R1 = Inductance (IND)
Inductor (L) 1
R2 = Initial inductor current (ILO)
R1 = Capacitance (CAP)
Capacitor (C) 2 R2 = Initial Capacitor Voltage
(VCO)
R1 = Primary Inductance (IND1)
Mutual Inductor (K) 8 R2 = Secondary Inductance (IND2)
R3 = Coupling Coefficient (K)
Voltage-controlled Current Source (G) 9 R1 = Transconductance (GT)
Current-Controlled Current Source (F) 12 R1 = Current Gain (AI)
Voltage-Controlled Voltage Source (E) 10 R1 = Voltage Gain (AV)
Current-Controlled Voltage Source (H) 11 R1 = Transresistance (RT)
Stranded Coil Current Source (N) 5 R1 = Factor (SCAL)
2D Massive Conductor Voltage Source
6 R1 = Factor (SCAL)
(M)
3D Massive Conductor Voltage Source
7 R1 = Factor (SCAL)
(P)
Note-For all of the circuit options shown in Table 15-1 and in Figure 15-1 below, the following real
constants are created automatically by the ANSYS Circuit Builder: R15 (graphical offset, GOFFST) and
R16 (element identification number (ID). See Section 15.3 for a discussion of the Circuit Builder.
Figure 15-1 below shows you the different circuit components created by different KEYOPT(1) settings.
Nodes shown next to the component symbol are "floating" nodes (they are not attached to the circuit
directly).
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 3 of 26
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 4 of 26
No eddy currents can exist in the stranded coil connection. The Magnetic Vector Potential (MVP) and
current determine the coil voltage. Expressed as equations, the connection is:
In the equations above, Rc is the coil resistance, nc is the number of coil turns, and Sc is the coil cross-
section area.
The massive conductor connections take skin effects into account. In these conductors, the MVP and
voltage determine the total current. Expressed as equations, the connection is:
In the two equations above, Lc is the conductor length and is the voltage drop.
The ANSYS program achieves coupling via two additional degrees of freedom to circuit component and
FEA conductor elements. The characteristics of these DOFs are as follows:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 5 of 26
z CURR - The current flowing through the circuit and the modeled conductor
z EMF - The voltage drop across the modeled conductor (2-D stranded, 2-D massive, and 3-D
stranded conductors)
z VOLT - The electric potential in a 3-D massive conductor
z Enables you to select circuit components and place them at the desired location in the circuit with
the help of a mouse
z Creates a model of the circuit interactively
z Assigns "real" constants to circuit components and allows you to edit them
z Assigns excitation to independent sources
z Verifies excitation graphically
z Provides an interactive connection to the FEA domain
z Lets you specify source loads for voltage and current source components.
The Circuit Builder establishes the element types, real constants, and node and element definitions. It
sets up multiple element types, one for each circuit element. As with any other GUI feature, the Circuit
Builder writes to the log file all the commands used to create the circuit elements.
z Circuit icons are fixed size. To set focus and distance in the GUI, issue the Circuit Builder's
"Center WP" option.
z Consider displaying two windows: one for the circuit and the other for your model.
z Remember to ground the circuit at one node. To do so, either choose Main
Menu>Preprocessor>Loads>-Loads-Apply>-Electric-Boundary> -Voltage-On Nodes or issue
the D command with the VOLT label.
1. Choose menu path Main Menu>Preferences. The Preferences dialog box appears.
3. Choose Utility Menu>File>Change Jobname. In the dialog box that appears, specify a jobname for
your analysis and click on OK.
4. Choose Utility Menu>File>Change Title. In the dialog box that appears, specify a title for your
analysis and click on OK.
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 6 of 26
6. If you need to locate the circuit away from an existing finite element model (for instance, if you are
doing a coupled electromagnetic-circuit analysis), use the WorkPlane option on the Utility Menu to
move the working plane origin to the location where you want to start the circuit. (Otherwise, skip this
step.) The location of the circuit can be arbitrary and does not affect the analysis results. For
convenience, you can center the working plane origin in the Graphics Window by choosing Circuit
Menu>Center WP.
7. Choose the circuit component you want from the Circuit Menu and follow the prompts shown in the
ANSYS Input Window. Most choices display the "picker" you use to locate the I and J nodes of the
element and then position the circuit component by picking an offset location from the I-J line. The
length of each circuit element, and the element's location relative to other circuit elements, can be
arbitrary and does not affect analysis results. Once you have picked all necessary locations, a dialog box
appears requesting an ID number (element number) and real constants to identify the component.
8. After building the circuit, verify it and modify the data if necessary. The Plot Waveform menu
choice allows you to plot and verify the wave form of any input loads. Another menu choice, Edit Real
Cnst, allows you to check and modify the real constants of any circuit component. To delete specific
circuit components, choose Main Menu>Preprocessor>Delete.
The Circuit Builder is the most convenient way to construct a circuit. However, you can also build a
circuit by individually defining each node, element type, element, and real constant.
Once you have built the circuit, you are ready to perform a static, harmonic, or transient analysis (the
source determines the type of analysis).
In Figure 15-3 monitoring Kirchoff's loop equation on the lower loop, what is the voltage between node
1 and 2? If V1 and V2 are not equal, the voltage forces are inconsistent. Note that voltage generators
form a loop as shown in Figure 15-3. Even if V1 and V2 were consistent, numerical solution difficulties
would occur.
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 7 of 26
The circuit in Figure 15-4 is more complicated than that shown in Figure 15-3, yet the main topological
inconsistency is still present. The voltage generators form a loop.
Figure 15-5 is even more complex. But you can easily identify the inconsistent loop of voltage
generators.
In Figure 15-6, monitoring Kirchoff's nodal equation of node 1, what is the balance? If I1 I2, then the
balance is not zero, the current forces are inconsistent. Even if I1 = I2 numerical solution difficulties
would occur.
The circuit in Figure 15-7 is more complex. Here, the current generators have no common node.
Kirchoff's nodal law is violated on a "super-node" shown on Figure 15-7. The "super-node" is called a
cut. Current generators cannot form cuts; that is, there should be no super-node such that only current
generators are entering it.
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 8 of 26
In a transient analysis, at t=0, a capacitor can be represented by a voltage generator having the same
voltage as the initial voltage of the capacitor. See Figure 15-8.
In Figure 15-9, right after closure of the switch, the initial current distribution can be computed by the
equivalent circuit shown on the right-hand side. This is an inconsistent circuit (producing infinite
current) because the voltage generators form a loop. Thus, the DC/harmonic rule that voltage generators
should not form a loop should be applied such that the capacitors are considered as voltage generators.
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 9 of 26
In Figure 15-11, right after the closure of the switch, the initial voltage distribution can be computed by
the equivalent circuit shown on the right-hand side. This is an inconsistent circuit (producing infinite
voltage) because the current generators form a cut. Thus, the DC/harmonic rule that the current
generators should not form a cut should be applied such that the inductors are considered as current
generators.
These circuits are contradictory, and they do not have physical meanings. Therefore, the ANSYS
program cannot detect them.
Command(s):
CP
GUI:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 10 of 26
Once you have built the circuit, you apply loads and obtain the solution, then view the results.
Command(s):
/SOLU
GUI:
Main Menu>Solution
z In the GUI, choose menu path Main Menu>Solution>New Analysis and choose a Static analysis.
z If this is a new analysis, issue the command ANTYPE,STATIC,NEW.
Restarting an analysis usually is required only for continuing a transient circuit analysis.
Normally, you specify source loads for circuits in the Circuit Builder, as element real constants. Besides
the source loads, the only other "load" is a VOLT=0 specification at the ground nodes. To specify
VOLT=0, use either of the following:
Command(s):
GUI:
Should you need to modify the source loads, use one of the following:
Command(s):
R, RMODIF
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 11 of 26
GUI:
Use either the SAVE command or the SAVE_DB button on the Toolbar to save a backup copy of the
ANSYS database.
Command(s):
SOLVE
GUI:
Main Menu>Solution>Current LS
Command(s):
FINISH
GUI:
Main Menu>Finish
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 12 of 26
For more information about the derived results, see the ANSYS Elements Reference.
You can review analysis results in POST1, the general postprocessor, by choosing either of the
following:
Command(s):
/POST1
GUI:
To review results in POST1, the ANSYS database must contain the same model for which the solution
was calculated. Also, the results file (Jobname.RTH) must be available.
To read the data from the results file into the database, use either of the following:
Command(s):
SET
GUI:
Once the database contains the desired set of results, use one of the following to list the primary nodal
data (voltages and currents):
Command(s):
PRNSOL
GUI:
Command(s):
PRESOL
GUI:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 13 of 26
Command(s):
/SOLU
GUI:
Main Menu>Solution
z In the GUI, choose menu path Main Menu>Solution>New Analysis and choose a Harmonic
analysis.
z If this is a new analysis, issue the command ANTYPE,HARMIC,NEW.
Command(s):
EQSLV
GUI:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 14 of 26
Only the frontal (default) and sparse solvers are available for problems using the CIRCU124 element.
You need to specify how the harmonic voltage and current are listed in the printed output,
Jobname.OUT. You can choose either real and imaginary parts (default) or amplitudes and phase angles.
Command(s):
HROUT
GUI:
Normally, you specify source loads for circuits in the Circuit Builder, as element real constants. Besides
the source loads, the only other "load" is a VOLT=0 specification at the ground nodes. To specify
VOLT=0, use either of the following:
Command(s):
GUI:
Should you need to modify the source loads, use one of the following:
Command(s):
R, RMODIF
GUI:
You can specify one dynamics option, the operating frequency (in Hz) of the harmonic loads. To specify
the frequency, use either method shown below:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 15 of 26
Command(s):
HARFRQ
GUI:
The only general option you can specify is the number of harmonic solutions. You can requests any
number of solutions to be calculated, and those solutions (or substeps) will be spaced evenly within the
specified operating frequency. For example, if you specify 10 solutions in the range 50 to 60 Hz, the
ANSYS program will calculate the response at 51, 52, 53, ..., 59, and 60 Hz. ANSYS calculates no
response at the lower end of the frequency range.
Command(s):
NSUBST
GUI:
Use either the SAVE command or the SAVE_DB button on the Toolbar to save a backup copy of the
ANSYS database.
Command(s):
SOLVE
GUI:
Main Menu>Solution>Current LS
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 16 of 26
Command(s):
FINISH
GUI:
Main Menu>Finish
The derived data for a harmonic circuit analysis are the same as for a static circuit analysis, and you use
the same procedures to review results. However, for harmonic analyses, you can also store results per
element in the element table and list them using one of the following:
Command(s):
PRETAB
GUI:
One you have built the circuit, you apply loads to and solve the model and then review the results. Other
points to remember when doing a transient circuit analysis are:
z Circuits in a transient analysis do not use an automatic time-stepping feature. However, you can
use invoking automatic time-stepping to ramp the time step. (Doing this increase the time step by
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 17 of 26
Command(s):
SOLU
GUI:
Main Menu>Solution
z In the GUI, choose menu path Main Menu>Solution>New Analysis and choose a Transient
analysis.
z If this is a new analysis, issue the command ANTYPE,TRANSIENT,NEW.
You can restart (continue) a transient analysis from a previously completed transient run, and you can
modify circuit component real constants. However, the Jobname.EMAT, Jobname.ESAV, and
Jobname.DB files must be available to restart an analysis.
Command(s):
EQSLV
GUI:
Only the frontal (default) and sparse solvers are available for problems using the CIRCU124 element.
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 18 of 26
Normally, you specify source loads for circuits in the Circuit Builder, as element real constants. Besides
the source loads, the only other "load" is a VOLT=0 specification at the ground nodes. To specify
VOLT=0, use either of the following:
Command(s):
GUI:
Should you need to modify the source loads, use one of the following:
Command(s):
R, RMODIF
GUI:
To include transient effects in the analysis, you must turn time integration effects on or else a static
solution will be performed. By default, time integration effects are on in a transient analysis, but you can
turn them off to obtain a static solution.
Command(s):
TIMINT
GUI:
General Options
You can specify three general options: time, the integration time step, and automatic time stepping.
To specify the time at the end of a load step, use one of the following:
Command(s):
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 19 of 26
TIME
GUI:
The integration time step is the time increment used in the time integration scheme. The time step size
determines the accuracy of the solution: the smaller the value, the higher the accuracy. To specify time
step size, use either of the following:
Command(s):
DELTIM
GUI:
Use the DTIME field to specify initial time step size, the DTMIN field to specify minimum time step
size, and DTMAX to specify maximum time step size.
Although in circuit analysis you cannot use automatic time stepping to increase or decrease the time step
size automatically, you can use it to increase from an initial time step size to a final time step size. A
factor of 3 is applied each time step to the time increment until the maximum time step size is reached.
Command(s):
AUTOTS
GUI:
In cases where sharp changes exist in the source load wave form, you should break a transient analysis
into several load steps. At the time when these sharp transitions take place, specify a new load step and
re-specify the time step options if necessary to get a small initial time step at the transition point.
Output Controls
You can include any results data in the printed output file (Jobname.OUT). To use this option, choose
either of the following:
Command(s):
OUTPR
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 20 of 26
GUI:
To control what data goes to the results file (Jobname.RTH), choose either of the following:
Command(s):
OUTRES
GUI:
Note-By default, the ANSYS program writes only the last substep of each load step to the results file. If
you want all substeps included on the results file, set the FREQ field to ALL or 1.
You must write the each load step to a load step file. Repeat the loading, load step options, and load step
file writing operations until all load steps have been specified.
Command(s):
LSWRITE
GUI:
Use either the SAVE command or the SAVE_DB button on the Toolbar to save a backup copy of the
ANSYS database.
Command(s):
LSSOLVE
GUI:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 21 of 26
Command(s):
FINISH
GUI:
Main Menu>Finish
For more information about the derived results, see the ANSYS Elements Reference.
You can review analysis results in either POST1, the general postprocessor, or POST26, the time-history
postprocessor. POST1 allows you to review results over the entire model at specific time points.
POST26 allows you to review results at specific points in the model over the entire transient.
Using POST26
Command(s):
/POST26
GUI:
To review results in POST26, the ANSYS database must contain the same model for which the solution
was calculated. Also, the results file (Jobname.RTH) must be available.
To read the data from the results file into the database, use either of the following:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 22 of 26
Command(s):
SET
GUI:
POST26 works with tables of result items, known as variables, versus time. Each variable is assigned a
reference number, with variable number 1 reserved for time. The first thing you do, then, is define the
variables using the commands or menu paths shown below.
Command(s):
NSOL
GUI:
Command(s):
ESOL
GUI:
Command(s):
RFORCE
GUI:
Once you have defined the variables, you can graph them versus time or any other variable. To do so,
use either of the following:
Command(s):
PLVAR
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 23 of 26
GUI:
To list just the extreme variable values, use either of the following:
Command(s):
EXTREM
GUI:
By reviewing the time-history results at strategic points throughout the model, you can identify the
critical time points for further postprocessing in POST1.
Using POST1
To review results in POST1, the ANSYS database must contain the same model for which the solution
was calculated. Also, the results file (Jobname.RTH) must be available.
The first step in using POST1 is to read in results at the desired time point. To do so, use the TIME field
on the SET command or its equivalent menu path, Utility Menu>List>Results>Load Step Summary.
If you specify a time value for which no results are available, ANSYS does linear interpolation to
calculate the results at that time. ANSYS uses the last time point if the time specified is beyond the time
span of the transient. (You can also identify the results to be read by their load step and substep
numbers.)
Once the database contains the desired set of results, use one of the following to list the primary nodal
data (voltages and currents):
Command(s):
PRNSOL
GUI:
Command(s):
PRESOL
GUI:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 24 of 26
You can perform the example AC (harmonic) circuit analysis using the ANSYS commands shown
below instead of GUI choices. Items prefaced with an exclamation point (!) are comments.
/BATCH,LIST
/PREP7
/TITLE, AC CIRCUIT ANALYSIS
/COM, SEE SCHAUMS OUTLINE "BASIC CIRCUIT ANALYSIS", 2ND ED, 1992,
/NOPR
ET,1,CIRCU124,4 ! VOLTAGE SOURCE
ET,2,CIRCU124,3 ! CURRENT SOURCE
ET,3,CIRCU124,0 ! RESISTOR
ET,4,CIRCU124,1 ! INDUCTOR
ET,5,CIRCU124,12 ! CURRENT CONTROLLED CURRENT SOURCE
N,1
NGEN,10,1,1,1,1
TYPE,1
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 25 of 26
REAL,1
E,2,1,7 ! V1
TYPE,3
REAL,3
E,2,3 ! R1
TYPE,4
REAL,5
E,3,1 ! L1
TYPE,3
REAL,4
E,3,4 ! R2
TYPE,5
REAL,6
E,3,4,5,2,1,7 ! CCCS
TYPE,2
REAL,2
E,1,4 ! C1
FINISH
/SOLU
ANTYP,HARM
D,1,VOLT,0
PI=4*ATAN(1)
HARFRQ,1/(2*PI)
OUTPR,ALL,ALL
HROUT,OFF
SOLVE
FINISH
/POST1
SET,1,1 ! READ IN REAL SOLUTION
PRESOL,ELEM ! PRINT CIRCUIT SOLUTION PER ELEMENT
SET,1,1,,1 ! READ IN IMAGINARY SOLUTION
PRESOL,ELEM ! PRINT CIRCUIT SOLUTION PER ELEMENT
FINISH
The ANSYS Verification Manual consists of test case analyses demonstrating the analysis capabilities of
the ANSYS family of products. While these test cases demonstrate solutions to realistic analysis
problems, the ANSYS Verification Manual does not present them as step-by-step examples with lengthy
data input instructions and printouts. However, most ANSYS users who have at least limited finite
element experience should be able to fill in the missing details by reviewing each test case's finite
element model and input data with accompanying comments.
The following list shows you some of the structural static analysis test cases that the ANSYS Verification
Manual includes:
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010
EMAG: Chapter 15: Electric Circuit Analysis (UP19980818) Page 26 of 26
http://tigger.uic.edu/depts/accc/software/ansys/html/guide_55/g-ele/GELE15.htm 12/9/2010