SE 3M04 T1 2002
Assignment 4a - Final Version (Tue. Nov 12)
- Due: Thursday November 21, 20:00 through WebCT
- Goals:
- Learn about system integration
- Build a Java program that constructs mathematical
expressions for simple RCL circuits given from Spice
files.
- This assignment uses the book
Introduction to Electrical Engineering, J. David Irwin
and David V. Kerns, Jr.
for all its circuit examples; this book was the textbook used
in EE 2CI4 / EE 2CJ4 last year, so most of you should have a copy.
- The program should be designed so that it
write out the equations for all of the following circuits:
- p.59 Figure 2.24(a)
- p.61 Figure D2.12
- p.85 Exercise 2.12 and 2.16
- p.122 Exercise 3.12
- p.123 Exercise 3.22
Note that solving the equations is not required. You
will need to extend (slightly) the previous code(s) to
handle some of these questions.
- More specifically, using at least Kirchoff's current law
and Ohm's law, write down the node equations for the current
and the equivalent equations for the voltages. All exercises
for this assignment will have known currents (and only current
sources) and unknown voltages. Supernodes will not be needed.
- More specifically, you are to
- Write Spice files corresponding to the above exercises.
- Have your program read them in to a Circuit, using the
code from assignment 2.
- From the circuit, use a nodal analysis to create the
equations, and use the Equation class (and all its sub-classes)
from assignment 3 to store the results
- Print out the resulting equation Strings to standard
output. The equations are to be printed twice:
- Once with all components fully symbolic
- Once with known values substituted in
- Deliverables:
- Complete Java program (ie all necessary .java and .class
files for a working program)
- Spice files corresponding to each of the 6 exercise
- The output of running your program on all 6 (both sets
of equations)
- electronic copy of log
- Notes:
- You may share Spice files around. Just be sure to
indicate this in your log.
- See section 2.7 of the book, specifically Figure 2.23(a)
and the accompanying text for a worked
out fully symbolic example, and Figure 2.24(a) and the
accompanying text for a worked out values substituted
example with the same circuit
- The equations output by your program are expected to
look awful and be un-simplified.
- The PCs in the ITB building now have Java installed on
the Windows partition as well as the Linux partition.
- Hints:
- Use Maple and the Syrup package to verify
your answers. This is not required by any means, but
you may find this very helpful for completing the
assignment correctly.
- Use the node names, as defined in the Spice file,
to name your voltage nodes. Use the component names
for the currents (both for the known current sources and
the current accross other components). This will make
your output a lot more predictable.
- Bonus points:
- There are many different possibilities for 'bonus'
assignments leveraging off of this assignment. If you
are interested, contact me, and I will give you
choices, with different effort/point levels, as you
wish to pursue. There will all be due Dec. 2nd
Back to main page