# Tony Fisher's Circuit Simulator

Experimental!

## Introduction

This is a circuit simulator, written in Java and C++, which can be accessed via the World Wide Web.

If you don't have a Java-capable browser, the best I can offer is a screen dump showing the simulator running.

## Drawing and editing your circuit

You draw an analogue electronic circuit on the screen by ``pointing and clicking'' with the mouse in a way which is tedious to explain, but which a few minutes' experimentation will make clear. At the moment, you can include only passive components (resistors, capacitors and inductors), voltage sources and current sources, voltmeters, and op-amps. Other active devices, e.g. diodes and transistors, might follow one day.

When you have drawn your circuit, press the ``simulate'' button. At this point, if one or more components lacks a value, you will be invited to supply as many values as are required. The component whose value you are being asked to enter turns red, so you know which one the program is talking about.

Once all components have been given values, the program analyses the circuit and computes the voltages at each node. This process is called ``simulation''. When the computations are complete, a number of graphs will appear. There will be as many graphs as there are voltmeters in your circuit, and each graph shows the voltmeter ``reading'' as a function of frequency. Voltmeters measure complex voltages, and the graphs show the magnitude in red and the phase in blue. The graphs are produced with the help of the excellent gd GIF manipulation library from Quest Protein Database Center.

A table of complex voltages at each node, for various values of frequency, is also given.

## Caveat

This is a teaching tool. It's not an ``industrial strength'' design tool; it's suitable only for teaching the elementary properties of simple circuits and circuit elements. It's not finished. There are bound to be bugs - especially since this is my very first Java program!

The error messages are sometimes not helpful. The message ``The nodal admittance matrix is singular'', for example, generally means that one or more nodes has an undefined voltage, or that your circuit involves infinite currents or voltages.

## Bugs:

This simulator does not run under Microsoft Internet Explorer 4, which reports ``Class Cctsim not found''.

This simulator does not run properly under some versions of Netscape Navigator Gold for PCs. Symptoms of the bug are:

• Components in the prototype area (the scrollable menu of components on the left of the applet window) appear in strange colours. These components should appear in black or red. Anything else is an error.

• When you select an example circuit from the list below, all the components should have values. If they don't, this is an error.

• When you press the ``simulate'' button, all nodes (junction points) in the diagram should receive node numbers. If they don't, this is an error.

I am trying to track down this bug. Similar bugs have been reported by Netscape (``XOR drawing doesn't work'') and Sun (``fixed in JDK 1.1.2'', bug no.402 8864) and mentioned in some old news articles in comp.lang.java. I suspect that the setXORMode method is behaving in a way I did not expect.

Netscape claim that you need a 256-colour video driver in order to run Java applets under Windows.

If you are a Java expert and can guess what the problem is, please let me know.

Unix implementations (e.g. Netscape 3.01 and 4.05) appear to be fine.

## Examples

Here are some example circuits for you to try.

## Feedback

I'd appreciate comments on this package by email to KILLspamfisherSPAM at minster.york.ac.uk.

Tony Fisher / fisher@minster.york.ac.uk     24 Jun 1997

 file: /Techref/uk/ac/york/cs/www-users/http/~fisher/cctsim/index.htm, 4KB, , updated: 2000/6/26 17:56, local time: 2024/4/20 12:08, TOP NEW HELP FIND:  3.227.240.72:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?Please DO link to this page! Digg it! / MAKE! Tony Fisher's Circuit Simulator

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
 Did you find what you needed? "No. I'm looking for: " "No. Take me to the search page." "No. Take me to the top so I can drill down by catagory" "No. I'm willing to pay for help, please refer me to a qualified consultant"

.