Git Product home page Git Product logo

voltagecalculator's Introduction

Nodal Analysis

This is a Python program for performing nodal analysis on an electrical circuit. Nodal analysis is a method for determining the voltage at each node in an electrical circuit.

How to Use

  1. Run the Program: Run the nodal_analysis function in a Python environment. Upon execution, the program will prompt you to input the number of nodes, current sources at each node, and the admittances between nodes.

  2. Input Requirements:

    • Number of nodes: Enter the total number of nodes in the circuit.
    • Current sources: For each node, enter the complex value of the current source.
    • Self-admittances: For each node, enter the complex value of the self-admittance.
    • Admittances between nodes: For each pair of nodes, enter the complex value of the admittance between them.
  3. Output: The program will calculate and display the voltage at each node in the circuit.

Example

Enter the number of nodes: 3
Enter current source at node 1: 5
Enter current source at node 2: 3
Enter current source at node 3: 1
Enter admittance at node 1: 0.5
Enter admittance at node 2: 0.6
Enter admittance at node 3: 0.4
Enter the admittance between nodes 1 and 2: 0.2
Enter the admittance between nodes 1 and 3: 0.3
Enter the admittance between nodes 2 and 3: 0.1

Voltage of node 1: 2.917241379310345
Voltage of node 2: 2.2405172413793105
Voltage of node 3: 1.7862068965517242

voltagecalculator's People

Contributors

fariborzemami avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.