Skip to content

Latest commit

 

History

History
84 lines (67 loc) · 2.6 KB

README.md

File metadata and controls

84 lines (67 loc) · 2.6 KB

Weylandinator ©

GitHub Workflow Status GitHub issues Sonar Quality Gate

Weylandinator

The Weylandinator is a tool to simulate circuits with voltage sources, resistors and loads.

Ideas

  • Responsibilities
    • UI
      • Schaltung definieren
        • Spannungsquelle
        • Wiederstände
        • Verbraucher
    • Logik
      • Komplettwiederstand berechnen
      • Spannungsabfall pro Wiederstand

Installation

  • Download the latest installer from the release page.
  • Execute the installer.
  • Open the Weylandinator.

How to use it

  1. Open the Weylandinator Weylandinator
  2. Add as many elements as you need
  3. Add the parameter that you have for each element
  4. The total resistance will be shown on the top left

Sample Circuits

This is a sample circuit that could be represented using the Weylandinator.

Sample Circuits

Sample Data

A circuit is stored in a tree like structure. So each Element can have multiple child elements.

By Default there's a RootElement that stores all the other elements.

This sample shows a circuit with two parallel resistors and a single voltage source.

{
    "circuit": {
        "name": "RootElement",
        "childElements": [
            {
                "type": "CircuitElementType.VoltageSource",
                "name": "U_0",
                "voltage": 5,
                "current": 0,
                "resistance": 0,
                "childElements": [
                    {
                        "type": "CircuitElementType.Resistor",
                        "name": "R_1",
                        "voltage": 0,
                        "current": 0,
                        "resistance": 1000,
                        "childElements": []
                    },
                    {
                        "type": "CircuitElementType.Resistor",
                        "name": "R_2",
                        "voltage": 0,
                        "current": 0,
                        "resistance": 500,
                        "childElements": []
                    }
                ]
            }
        ]
    }
}