Escolar Documentos
Profissional Documentos
Cultura Documentos
Contents-2
1
Using the Maxwell Circuit Editor
Schematic Editor
The Schematic editor is the Ansoft tool for creating circuit schematics, or designs for a transient
solution type. A design graphically represents and captures the electrical structure and characteris-
tics of a circuit. You create such a design by starting the schematic editor and placing components,
ports, connectors, and wires into a default empty schematic.
The Schematic Editor Window
The Schematic Editor window allows you to place components and wire them together. You can
move components by simply selecting and dragging them. Copy and paste can be used on compo-
nents and their wires within the schematic editor.
As you place the cursor near a pin of a component, it changes from an arrow to an X. This indicates
that the schematic editor is in the wiring mode. In the wiring mode, click to start drawing a wire.
Click again to end the wire.
Commonly used items such as ports, n-port black boxes, grounds, and page connectors can be
placed in the schematic by clicking their toolbar icons or by using the Draw menu.
View controls to zoom in, zoom out, and fit the drawing to the editor window are available on the
View menu, and on the shortcut menu that opens when you right-click in a schematic.
The arrow keys scroll the view up, down, left, or right in small increments. The page up and page
down keys scroll the view up or down in larger increments. If you scroll so far that no objects are in
the view, select Fit Drawing from the View pull-down on the Maxwell top menu bar (or press
Ctrl+D) to re-center the entire design, resized to fill the window.
Components
A number of components are available in the Circuit simulator.
To view the Components window in the project tree, click the Components tab. (The Project tab
is visible by default when you first open Maxwell Circuit Editor.)
To expand a component subgroup, double-click its book icon. To read about a specific component,
double-click its information icon in the Help topic tree.
The following types of elements are available in Maxwell Circuit Editor:
• Dedicated Elements
• Passive Elements
• Probes
• Sources
Once components are placed in the schematic for a project, they appear in the project tree beneath
the Project Components branch. The most recently placed components also appear under the
Most Recently Used branch in the project tree. You can also set Favorites that can be accessed
from the project tree.
Related Topics:
Placing Components in the Maxwell Circuit Editor Schematic
Assigning Component Properties in Maxwell Circuit Editor
Dedicated Elements
Three dedicated elements are available in the Maxwell Circuit Editor project tree:
• BarC: Commutator Bar
• BarC_Model: Model Data for Commutator Bar
• Winding: Winding
The text before the colon (:) represents the component name and can be changed in the Properties
window once the component is placed in the schematic.
Related Topics:
Assigning Component Properties in Maxwell Circuit Editor
Commutator Bar and Commutator Bar Model
The commutator bar element is intended to be used for the motor model with a commutator. This
element models the variable (periodic) contact resistance between the brush and the commutator
bars, as well as the switching (commutation of the current) that occurs when the brush makes con-
tact with the two adjacent commutator bars.
The element itself must always be used together with the corresponding commutator bar model.
The commutator bar model can be dropped on the sheet anywhere and needs no connections. Only
the commutator bar element itself should be connected as required by the application. The commu-
tator bar elements need to reference the applicable commutator model.
Once the commutator bar element has been dropped on the sheet, you can double-click it to access
the properties (make sure the Parameter Values tab is selected). Specify the applicable commuta-
tor bar model name in the MOD line and also the Lag parameter in degrees. Lag identifies the angle
the commutator bar has to rotate from TIME = 0 in the chosen sense of rotation until it is perfectly
aligned with the brush. By defa1ult, the element ID and lagging angle in degrees are displayed next
to the element.
The commutator bar model needs to be dropped on the circuit sheet. It is unique for every commu-
tator bar element. The commutator bar model contains the following parameters:
• Model name that has to be referenced by all the commutator bar elements;
• R, the full contact resistance between brush and commutator bar, regardless of which of the
two is wider;
• WidB is the brush width in mechanical degrees;
• WidC is the commutator bar width in mechanical degrees (does not include the insulation
between two adjacent bars);
• Period is the angular periodicity of the positive (or negative) brushes; use 360 for a two pole
machine, 180 for a four pole machine with lap winding, etc.
Related Topics:
An Application of the Commutating Bar Element.
Winding
The winding element is used in the Maxwell Circuit Editor to create the necessary connection
between the finite element model (the type of solution that supports the concept of winding, such as
the transient type of analysis, with or without motion) and the driving circuits. It is necessary that
the name(s) assigned for the winding(s) in the finite element model are matched exactly in the driv-
ing circuit created in Maxwell Circuit Editor. Windings can be placed on the design sheet at any
moment while you are creating the circuitry to be used to drive the finite element windings.
To change the name of the winding placed on the sheet, click the winding symbol on the sheet, and
change the name of the component in the property window (Value field in the DeviceName line,
with the Param Values tab selected).
Note The dot next to the winding symbol is used as the positive reference for the initial current
(positive current is oriented from the "dotted" terminal towards to "un-dotted" terminal
of the winding, through the winding).
Passive Elements
Thirteen passive elements are available in the Maxwell Circuit Editor project tree:
• Cap: Capacitor
• DIODE: Diode
• DIODE_Model: Diode Model Data
• Ind: Inductor
• IndM: Mutual Inductance
• Res: Resistor
• SW_I: Current Controlled Switch
• SW_I4: Current Controlled Switch with Controlling Port
• SW_IModel: Model Data for Current Controlled Switches
• SW_V: Voltage Controlled Switch
• SW_V4: Voltage Controlled Switch with Controlling Port
• SW_VModel: Model Data for Voltage Controlled Switches
• Transformer: Ideal Transformer
The text before the colon (:) represents the component name and can be changed in the Properties
window once the component is placed in the schematic.
Related Topics:
Assigning Component Properties in Maxwell Circuit Editor
⎛ vd ⁄ vt ⎞ ⎛ – ( v + BV ) v ⎞
d t
id = is ⋅ ⎜ e – 1⎟ – ⎜ i bv ⋅ e ⎟
⎝ ⎠ ⎝ ⎠
A +
id
rs
vd
-
K -
v t = N ⋅ ( kT ) ⁄ q
– 19
q = 1.6022 ⋅ 10 C
– 23
k = 1.3807 ⋅ 10 (J ⁄ K)
T is temperature in K, fixed at 300 K
T ⁄ T 0 – 1⎞
⎛ ---------------------------------- XTI
----------
- ⋅ ( EG ) ⁄ v
⎝ kT – 1 ⎠ t T N
i s = IS ⋅ AREA ⋅ e ⋅ ⎛ ------⎞
⎝ T 0⎠
i bv = IBV ⋅ AREA
RS -
r s = ---------------
AREA
Capacitor (CAP)
A capacitor is assumed to be ideal (without losses or inductance) and is defined by the value of its
capacitance (in the unit chosen by the user) and the corresponding initial condition (initial voltage).
The straight bar of the capacitor symbol is used as the positive reference, and the curved bar of the
capacitor symbol is used as a negative reference for the initial voltage (expressed in volts). The
default value of the initial voltage for all capacitors is zero. By default, the capacitance and element
ID are displayed next to the component.
Resistor (Res)
Resistor is assumed to be ideal (without inductive or capacitive effects) and is defined by the value
of its resistance (in the unit chosen by the user, Ohm by default.
By default the resistance and element ID are displayed next to the component.
Inductor (IND)
Inductor is assumed to be ideal (without resistive or capacitive effects) and is defined by the value
of its inductance (in the unit chosen by the user) and the corresponding initial condition (initial cur-
rent). Note that the dot next to the inductor symbol is used as the positive reference for the initial
current (positive current is oriented from the "dotted" terminal towards to "un-dotted" terminal of
the inductor, through the inductor). The dot is also used to specify the mutual inductance between
two or more inductors and thus determines the "polarized" terminals of the inductors. The default
value of the initial current for all inductors is zero. By default the inductance and element ID are
displayed next to the component.
Right-click the current controlled switch model and select Properties. With the Parameter Values
tab selected, specify the switch model name (in the MOD line) as well as the ID of the controlling
element: either an ammeter or a voltage source. In the later case the controlling quantity is the cur-
rent through the voltage source. (Note that an ammeter is a voltage source with zero voltage, i.e. a
short circuit).
The current controlled switch with controlling port allows for the controlling quantity to be wired
directly using connections with wires. In this case a reference arrow in the controlling port is dis-
played and is internally used as current reference (positive current flow as indicated by the arrow).
In the model for the current controlled switch the following parameters are used:
• Ron is the resistance of the switch in the on state (0.001 ohms default value).
• Roff is the resistance of the switch in the off state (1,000,000 ohms default value).
• Ion is the "on" value of the controlling current in amps. If I>Ion, then R=Ron.
• Ioff is the "off" value of the controlling current in amps. If I<Ioff, then R=Roff.
Note Setting ROFF = 0 in the voltage or current controlled switch model data changes the
behavior of the device into a controlled conductance, according to the following
equation:
1
G ( P ) = ------------- ⋅ f control ( P )
R ON
where:
f control ( P )
Right-click the voltage controlled switch model and select Properties. With the Parameter Values
tab selected, specify the switch model name (in the MOD line) as well as the ID of the controlling
element: either a voltmeter or a current source. In the later case the controlling quantity is the volt-
age across the current source. (Note that a voltmeter is a current source with zero current, i.e. an
open circuit).
The voltage controlled switch with controlling port allows for the controlling quantity to be wired
directly using connections with wires. In this case the reference for the voltage across the control-
ling port is displayed by "+" and "-" symbols and the two symbols are internally used as voltage
reference.
In the model for the voltage controlled switch the following parameters are used:
• Ron is the resistance of the switch in the on state (0.001 ohms default value).
• Roff is the resistance of the switch in the off state (1,000,000 ohms default value).
• Von is the "on" value of the controlling voltage in volts. If V>Von, then R=Ron.
• Voff is the "off" value of the controlling voltage in volts. If V<Voff, then R=Roff.
Note Setting ROFF = 0 in the voltage or current controlled switch model data changes the
behavior of the device into a controlled conductance, according to the following
equation:
1
G ( P ) = ------------- ⋅ f control ( P )
R ON
where:
f control ( P )
Transformer
The transformer is an ideal element of infinite power without resistive or capacitive effects and lin-
ear. It is defined the values of the primary and secondary inductances and the coupling coefficient
between the two windings.
Probes
Three types of probes are available in the Maxwell Circuit Editor project tree:
• Ammeter: Ammeter
• Voltmeter: Voltmeter
• VoltmeterG: Voltmeter with One Pin Grounded
The text before the colon (:) represents the component name and can be changed in the Properties
window once the component is placed in the schematic.
Related Topics:
Assigning Component Properties in Maxwell Circuit Editor
Ammeter
The ammeter is an ideal element (equivalent with an ideal voltage source with zero voltage). An
arrow is attached to the symbol so that a positive current measured by the ammeter flows as indi-
cated by the arrow.
No numerical value is needed, just the element ID and name may by altered by the user.
Voltmeter
The voltmeter is an ideal element with two pins (equivalent with an ideal current source with zero
current). A plus sign is attached to the voltmeter symbol so that a reference for the voltage mea-
sured by the voltmeter is possible.
No numerical value is needed, just the element ID and name may by altered by the user.
DC Current Source
This is an independent (DC) current source. The default value of the current is zero. The arrow
symbol shows the direction of the positive current flow through the current source.
Right-click the DC current source on the sheet, and select Properties to edit the features of the ele-
ment:
• On the Parameter Values tab, you can edit the value of the current and the status; status can
be active (default) but can be changed to Inactive_open or Inactive_short if desired.
• On the General tab, you can set general features such as component name, component ID,
symbol name, etc.
• On the Symbol tab, you can change the component color, location and spatial orientation,
• On the Property Displays tab, you can edit the displayed features; by default the component
value (current in this case) and ID are displayed.
Tau2
I2
Tau1
I1
I1
Td1 Td2 t
I2
I1
Tr Pw Tf
Td t
Period
(T2,I2) (T4,I4)
(T1,I1) (T3,I3)
A piecewise linear current source is described by up to 20 pairs (Ti, Ii), where every pair of values
specifies the value Ii in Amps of the current at time Ti in the following units:
• In seconds if type is TIME.
• In degrees if type is POSITION and type of motion is rotational.
I ( t ) = I 0 + I a ⋅ sin [ ( 2π ⋅ F C ⋅ t ) + M di ⋅ sin ( 2π ⋅ F S ⋅ t ) ]
where:
• Io is Offset current in Amps.
• Ia is the peak amplitude in Amps.
• FC is the carrier frequency if type is TIME.
• Mdi is the modulation index.
• FS is the signal frequency if type is TIME.
If the type is POSITION, the frequency should be calculated based on the respective spatial period-
icity, taking into account the fact that "t" in the above equation is measured in degrees for rotational
type of motion and in the user-defined geometry units for translational type of motion.
If the type is SPEED, the frequency should be calculated based on the respective speed periodicity,
taking into account the fact that "t" in the above equation is measured in rpm for rotational type of
motion and in the user-defined geometry units per second for translational type of motion.
–D f ⋅ t
e
Ta
Io
t
Td
– Df ( t – T d )
I (t) = I 0 + I a ⋅ e ⋅ sin [ 2 ⋅ π ⋅ IFreq ⋅ ( t – T d ) – Phase ]
where:
• Io is Offset current in Amps.
• Ia is the peak amplitude in Amps.
• IFreq is the signal frequency if type is TIME.
• Td is the delay time in seconds if type is TIME.
• Phase is the signal phase delay if type is TIME.
• Df is the damping factor in 1/seconds if type is TIME.
If the type is POSITION, the frequency should be calculated based on the respective spatial period-
icity, taking into account the fact that "t" in the above equation is measured in degrees for rotational
type of motion and in the user-defined geometry units for translational type of motion. The delay
and damping factor should also be interpreted accordingly.
If the type is SPEED, the frequency should be calculated based on the respective speed periodicity,
taking into account the fact that "t" in the above equation is measured in rpm for rotational type of
motion and in the user-defined geometry units per second for translational type of motion. The
delay and damping factor should also be interpreted accordingly.
DC Voltage Source
This is an independent (DC) voltage source. The default value of the voltage is zero. The source
exhibits a positive node, marked with the "+" sign, and a negative node, marked with the "-" sign.
The positive current flows from the "+" node to the "-" node through the voltage source.
Right-click the DC voltage source on the sheet, and select Properties to edit the features of the ele-
ment:
• On the Parameter Values tab, you can edit the value of the voltage and the status; status can
be active (default) but can be changed to Inactive_open or Inactive_short if desired.
• On the General tab, you can set general features such as component name, component ID,
V Tau2
I22
V
Tau1
I1
V1
Td1 Td2 t
V2
V1
Tr Pw
Tf
Td t
Period
(T4,V4)
(T2,V2)
(T3,V3)
(T1,V1)
A piecewise linear voltage source is described by up to 20 pairs (Ti, Vi), where every pair of values
specifies the value Vi in Volts of the voltage at time Ti in the following units:
• In seconds if type is TIME.
• In degrees if type is POSITION and type of motion is rotational.
• In geometry units if type is POSITION and type of motion is translational.
V ( t ) = V 0 + V a ⋅ sin [ ( 2π ⋅ F C ⋅ t ) + M di ⋅ sin ( 2π ⋅ F S ⋅ t ) ]
where:
• Vo is Offset voltage in Volts.
• Va is the peak amplitude in Volts.
• FC is the carrier frequency if type is TIME.
• Mdi is the modulation index.
• FS is the signal frequency if type is TIME.
If the type is POSITION, the frequency should be calculated based on the respective spatial period-
icity. taking into account the fact that "t" in the above equation is measured in degrees for rotational
type of motion and in the user-defined geometry units for translational type of motion.
If the type is SPEED, the frequency should be calculated based on the respective speed periodicity,
taking into account the fact that "t" in the above equation is measured in rpm for rotational type of
motion and in the user-defined geometry units per second for translational type of motion.
–D f ⋅ t
e
Ta
Vo
t
Td
– Df ( t – T d )
V (t) = V 0 + V a ⋅ e ⋅ sin [ 2 ⋅ π ⋅ IFreq ⋅ ( t – T d ) – Phase ]
where:
• Vo is Offset voltage in Volts.
• Va is the peak amplitude in Volts.
• IFreq is the signal frequency if type is TIME.
• Td is the delay time in seconds if type is TIME.
• Phase is the signal phase delay if type is TIME.
• Df is the damping factor in 1/seconds if type is TIME.
If the type is POSITION, the frequency should be calculated based on the respective spatial period-
icity, taking into account the fact that "t" in the above equation is measured in degrees for rotational
type of motion and in the user-defined geometry units for translational type of motion. The delay
and damping factor should also be interpreted accordingly.
If the type is SPEED, the frequency should be calculated based on the respective speed periodicity,
taking into account the fact that "t" in the above equation is measured in rpm for rotational type of
motion and in the user-defined geometry units per second for translational type of motion. The
delay and damping factor should also be interpreted accordingly.
Hint To access these commands, you can also right-click and select one of the following from
the shortcut menu:
• Place and Finish
• Finish
Related Topics:
Assigning Component Properties in Maxwell Circuit Editor
Note Variables may be assigned to parameter values in the circuit by entering a variable name
in the parameter value field and assigning a value in the Add Variable dialog box.
Variables assigned in Maxwell Circuit Editor will be exported with the circuit and are
available for modifying when the circuit is imported into another Ansoft application.
3. Optionally, you can select or clear the Show Hidden check box on any of the Properties win-
dow tabs.
4. Click OK.
The specific properties differ per component, as seen in the help topics describing each circuit com-
ponent.
Each tab of the Properties window contains a list of parameters (each individual row) and proper-
ties you need to set for each parameter (each column is a property).
Related Topics:
Placing Components in the Maxwell Circuit Editor Schematic
Callback Scripting Using PropHost Object
The driving circuit for the winding in this design consists of a voltage source in series with a resis-
tor and with the winding. When complete, the circuit should look similar to the figure below.
a. In the project tree, under Sources select a VPulse element (Pulse Voltage Source).
b. Drag it to the sheet, and then right-click and select Finish to place it onto the sheet.
c. Double-click the source element symbol on the sheet, and then specify the following
source characteristics:
Parameter Value Description
V1 0 Initial voltage
V2 5.97 Peak voltage
Tr 0.001 Rise time
Tf 0.001 Fall time
Pw 1 Pulse width
Period 2
d. Leave the other fields set to the default values, and click OK.
Connect the Circuit Elements in Series
To connect the circuit elements in series:
1. From within the Maxwell Circuit Editor, click Draw>Wire.
2. Click each terminal.
3. When done, place the Ground symbol: Click Draw>Ground (or click the Ground symbol on
the toolbar), place the Ground symbol on the sheet, right-click, and select Finish to place the
symbol.
4. Connect the ground to the circuit: Click Draw>Wire, and draw the final wire.
Export the Netlist
To export the netlist:
1. From within the Maxwell Circuit Editor, click Maxwell Circuit>Export Netlist.
The Netlist Export dialog box appears.
Note To view the netlist before exporting it, click Maxwell Circuit>Browse Netlist.
2. Select the folder where you want to save the external circuit file.
3. Type a name for the circuit in the File name box.
4. Click Save.
The Netlist Export dialog box closes and the Maxwell Circuit Editor reappears.
The DC winding is of lap type with coil pitch of 5 slots. The flat-out extensional drawing of the
motor indicating the relationship of permanent magnets, coils, commutating bars, and brushes at
the initial position is shown in Fig. 2. With the rotation direction shown in Fig. 2, the brush aligned
with the S pole is positive, and the brush aligned with the N pole is negative. The "go" terminal of
coil0 connects to bar0, and its return terminal connects to bar1; the "go" terminal of coil1 connects
to bar1, and its return terminal connects to bar2; and so on.
At the initial time, bar0 lags the positive brush by 15 mechanical degrees (a half commutating bar
pitch), and it lags the negative brush by 195 mechanical degrees; bar1 lags the positive brush by -15
mechanical degrees, or 345 degrees, and it lags the negative brush by 165 mechanical degrees; and
so on. The functional connection of each commutating bar with the positive brush or negative brush
is modeled by BarC (commutating bar) elements, as shown in Fig. 3 with ID number from 37 to 60.
In Fig. 4, the input value "ComModel" for MOD is the model name that defines the parameters of
commutating bars and brushes. The parameters of ComModel can be edited by double-clicking the
BarC_Model element, as shown in Fig. 5.
In this design, the commutator diameter is 24mm, and the brush width is 8mm. Therefore, the brush
width in mechanical degrees is the following:
WidB = 2 * arcsin(8/24) = 38.9 (deg)
The number of commutator bars is 12 (the same as the number of slots), and the commutator insu-
lation thickness is 0.5mm. Therefore, the commutator bar width in mechanical degrees is the fol-
lowing:
WidC = 360/12 - 2 * arcsin(0.5/24) = 27.6 (deg)
The electric conductance between a commutating bar and a brush varies with the rotor position and
can be derived from the model parameters, as shown in Fig. 6, where Gmax = 1 / R.
In Fig. 6, LagAngle is treated as a BarC element parameter because it is different for different com-
mutating bars. All other values (Gmax, WidB, WidC, and Period) can be obtained from
BarC_Model parameters. Positions a, b, c, and d correspond to the positions when one side of a
commutating bar (solid color) aligns to one side of a brush, as shown in Figs. 7 and 8.
The computed no-load induced voltage, taking into account the commutating process, is shown in
Fig. 9.
E
editing an external circuit 1-40
exporting a netlist 1-40
N
netlist
exporting 1-40
Index-1