PHP Classes

Nodal Analysis: Perform nodal analysis of linear circuit networks

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 262 All time: 7,787 This week: 206Up
Version License PHP version Categories
nodal-analysis 1Artistic License5.0PHP 5, Physics


This class can be used to perform nodal analysis of linear circuit networks.

It takes as parameters the definition of nodes and connections between nodes of an electric circuit that maybe resistances, voltage and current sources.

The class performs the nodal analysis calculations solving equations to determine the voltage difference between nodes.

Innovation Award
PHP Programming Innovation award nominee
June 2010
Number 2

Prize: One downloadable copy of Komodo IDE
Nodal analysis is a method for performing evaluation of the state of electric circuits.

This class implements a pure PHP based solution to perform nodal analysis.

Manuel Lemos
Picture of Bart Plovie
Name: Bart Plovie <contact>
Classes: 1 package by
Country: Belgium Belgium
Age: 34
All time rank: 394122 in Belgium Belgium
Week rank: 245 Up2 in Belgium Belgium Up
Innovation award
Innovation award
Nominee: 1x


Q:What will this class do? A:It will attempt to solve a simple linear DC electrical network using the nodal analysis method. For more information about nodal analysis please check wikipedia. Keep in mind though this script was made quickly in a single afternoon and went through almost no testing. As it is the result of a small contest/challenge. The goal was to write a script that could use the nodal voltage method to solve the network seen in the example. So it most likely contains some serious errors and you really shouldn't use it for anything important. If you wish to actually get a reliable result use software like Multisim. The only reason this is being published is cause I couldn't find anybody else that ever bothered to write anything similar in PHP and release the source code. The comments and example should explain how it works. If there is enough response I will rewrite the class and actually bother to do extensive testing. If you find an error feel free to contact me at bart [dot] plovie [at] gmail [dot] com. And now the license (Short version: Give credit, and don't use it for commercial goals): This work is licenced under the Creative Commons Attribution-Non-Commercial 2.0 Belgium License. To view a copy of this licence, visit or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California 94105, USA.

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example network
Accessible without login Image file network.jpeg Photo Image of the example network
Plain text file nodal.class.php Class Main Class
Accessible without login Plain text file readme.txt Doc. Readme & License

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,787
This week:206Up