Electrical_Aspect - nasa/gunns GitHub Wiki

GUNNS Wiki Elect Aspect

Distributed Bi-Directional Flow Electrical Interface

This wiki page will walk new users through the process of creating GUNNS electrical networks. It is actively in progress, so stay tuned.

Note we’ve done a more recent validation of GUNNS electrical networks against NI Multisim and hardware builds, detailed here:

electrical_validation.pdf

To demonstrate how GUNNS can be used to simulate electrical circuits, we will walk through the process of setting up a few simple example networks in GunnsDraw. We will use that tool to export the model to Trick compatible C++ code. Next, we will include the network C++ class into a Trick sim object. Finally, we will use Trick to run our simulation.

In order to validate our results, and reinforce the similarity between GUNNS and other circuit simulators, we will be using the popular web based circuit simulator at:

http://www.docircuits.com

To best follow along with this wiki tutorial, create a free account at that website, and watch their 5 minute introduction video tutorial.

Sample Case 1: Resistors

The first circuit we will simulate will involve the classic case of resistors in series and parallel. This tutorial will ignore the details of how the GUNNS solver constructs an admittance matrix from the circuit representation. That topic has already been covered thoroughly in the GUNNS Electrical Refresher Course document located here:

Electrical_Refresher.pdf

In this tutorial we will borrow the example circuit from the Electrical Refresher course document and continue on where that course left off. By the end of this tutorial, you will see how to build a Trick simulation of electrical circuits and verify the GUNNS solution against the DoCircuit online simulator.

The GunnsDraw and DoCircuit representations of our first electrical circuit are shown below.

GunnsDraw Representation

DoCircuit Representation

⚠️ **GitHub.com Fallback** ⚠️