Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

agent (5836)


Agent Zhang (章亦春) is a happy Yahoo! China guy who loves Perl more than anything else.

Journal of agent (5836)

Saturday April 16, 2005
01:45 AM

Introducing Types Voltameter and Galvanometer to CIR

[ #24217 ]

=from 2005.4.13.10:25.AM
=to ...4.13.11:05.AM

I'm well on my way of learning Thevenin and Norton's theorems. I noticed the CIR script lacks the ability to express the voltage across any pair of circuit nodes, although now we can represent voltages across any circuit wires and circuit elements. From the viewpoint of implementation and practical usage, it is desirable to introduce two new circuit element types Voltammeter and Galvanometer. Voltammeters are those Elem objects whose currents are always zero. Whereas, a Galvanometer is defined to be a special Elem with zero voltage across it.

It is also advisable to treat Wire as a sub-class inherited from Elem, which is exactly identical to Galvanometer. Um, the semantics of such class hierarchy seems not clear enough to me though.

In my opinion, the Galvanometer type is not as useful as Voltammeter, as we can readily get the current through any circuit branches without the former. Galvanometer is introduced only for conceptual completeness. :P

I'm very glad to see CIR's capability of describing complicated problems is growing unfailingly. Wonderful!

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.