41 Electric Circuits - Reloaded
|
06-19-2014, 03:46 PM
(This post was last modified: 06-20-2014 08:39 AM by Ángel Martin.)
Post: #1
|
|||
|
|||
41 Electric Circuits - Reloaded
Like me, you may have also missed the excellent article in the old forum by Guillermo Castarés with programs to solve electric circuits:
http://www.hpmuseum.org/software/41/41elcirc.htm The approached he followed was remarkable in two aspects – first it had a precise usage of the PVT routine from the Math Pac using complex matrices; which wasn’t documented at all in the flimsy manual that was provided with that module. More interesting was his idea of using ASCII files to define the circuit topology: type, elements, values, etc. This approach allows a very effective use of the system capabilities, without the need to re-enter all data each time allowing quick what-if scenarios for component value changes. Not to mention that you could build up a library of circuits in X-memory very nicely. For example, these are the files for the Math Pac and the Advantage Pac manuals (Remember student “AC Dimmer”?), listed with their respective solutions. Code:
I’ve taken the opportunity to update the program, replacing the PVT call with the much faster MSYS in the Advantage Pac (or in the SandMatrix, of course); an splendid example of the MCODE advantages. And to round up the task a new data-entry program is also provided, which builds the ASCII file from the scratch in an interactive way just entering the information in the prompts. The new data-entry program “EEE” is completely independent, and its end result is an ASCII file to use as input for “EEA”, the circuit solver program. Raw files are attached if you want to take them for a spin. Note that they use functions form the AMC_OSX module for a more convenient UI – but you can replace them with those in the CCD with the same names. Code:
Modified EEA Program follows - maintains the same logic as the original to read the circuit file and create the system matrices, only slightly modified the data output routine to account for the differences between PVT and MSYS. Refer to the original article for user instructions and documentation. Code:
Hope you enjoy it - Many thanks to Guillermo for the original contribution! "To live or die by your own sword one must first learn to wield it aptly." |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
41 Electric Circuits - Reloaded - Ángel Martin - 06-19-2014 03:46 PM
RE: 41 Electric Circuits - Reloaded - damaltor - 01-24-2018, 01:43 PM
RE: 41 Electric Circuits - Reloaded - rprosperi - 01-24-2018, 02:49 PM
RE: 41 Electric Circuits - Reloaded - Massimo Gnerucci - 01-24-2018, 04:30 PM
RE: 41 Electric Circuits - Reloaded - rprosperi - 01-24-2018, 08:04 PM
RE: 41 Electric Circuits - Reloaded - damaltor - 01-26-2018, 08:20 AM
RE: 41 Electric Circuits - Reloaded - morex - 11-28-2018, 07:39 PM
RE: 41 Electric Circuits - Reloaded - Ángel Martin - 12-11-2018, 10:26 AM
|
User(s) browsing this thread: 1 Guest(s)