An electrical network is an interconnection of electrical elements such as resistors, inductors, capacitors, transmission lines, voltage sources, current sources and switches. An electrical circuit is a special type of network, one that has a closed loop giving a return path for the current. Electrical networks that consist only of sources (voltage or current), linear lumped elements (resistors, capacitors, inductors), and linear distributed elements (transmission lines) can be analyzed by algebraic and transform methods to determine DC response, AC response, and transient response. A network that contains active electronic components is known as an electronic circuit. Such networks are generally nonlinear and require more complex design and analysis tools.
Circuit simulation software, such as HSPICE, and languages such as VHDLAMS and verilogAMS allow engineers to design circuits without the time, cost and risk of error involved in building circuit prototypes. Electrical laws A number of electrical laws apply to all electrical networks. These include: Kirchhoff's current law: The sum of all currents entering a node is equal to the sum of all currents leaving the node. See also Analysis of resistive circuits. Other more complex laws may be needed if the network contains nonlinear or reactive components. Nonlinear selfregenerative heterodyning systems can be approximated. Applying these laws results in a set of simultaneous equations that can be solved either algebraically or numerically. Network simulation software More complex circuits can be analyzed numerically with software such as SPICE or GNUCAP, or symbolically using software such as SapWin. Linearization around operating point When faced with a new circuit, the software first tries to find a steady state solution, that is, one where all nodes conform to Kirchhoff's Current Law and the voltages across and through each element of the circuit conform to the voltage/current equations governing that element. Once the steady state solution is found, the operating points of each element in the circuit are known. For a small signal analysis, every nonlinear element can be linearized around its operation point to obtain the smallsignal estimate of the voltages and currents. This is an application of Ohm's Law. The resulting linear circuit matrix can be solved with Gaussian elimination. Piecewiselinear approximation Software such as the PLECS interface to Simulink uses piecewiselinear approximation of the equations governing the elements of a circuit. The circuit is treated as a completely linear network of ideal diodes. Every time a diode switches from on to off or vice versa, the configuration of the linear network changes. Adding more detail to the approximation of equations increases the accuracy of the simulation, but also increases its running time. See also
Retrieved from "http://en.wikipedia.org/" 
