Giter Club home page Giter Club logo

Comments (3)

pfalstad avatar pfalstad commented on August 22, 2024

There's a bug in the simulator that causes the first circuit to not work. It's throwing an exception, which is handled and ignored, so that's why nothing happens.

The problem is the 2-terminal voltage source. It doesn't work in subcircuits because of a bug.

You can work around the issue by doing the following:

  1. create a ground node like so: https://www.falstad.com/circuit/circuitjs.html?ctz=CQAgjCAMB0l3BWcMBMcUHYMGZIA4UA2ATmIxAUgoqoQFMBaMMAKADMQAWbFEXTioSr8+vMNCQxIKFgCdBVMBkIKQKPHijJ4LAO6qetIXzwDIe1es2EUAq1BZpy3XiJdqEKgQDUAlgDtHSHIbOw0QUI8vEG8AewBXABcWADcuYhVsU3SVJRUqKk5aLQKJC04MkwFPYWzzfQrc5VU8hwbKrIF3TocnLh4q-tdsaIBxABMWAHM1DF5bKkx5uZKWIA

  2. select everything except the ground

  3. create subcircuit

from circuitjs1.

arashhabibi avatar arashhabibi commented on August 22, 2024

Thank you very much for your rapid and efficient reply. Everything works now.
So I must remember : all circuits yielding a subcircuit must contain a ground, even if, when making the subcircuit, we choose not to include the ground in the subcircuit.
I also must remember to use 1-terminal voltage sources in subcircuits.
All the best, and thank you for your great app !
AH

from circuitjs1.

pfalstad avatar pfalstad commented on August 22, 2024

reopening this so I remember to fix the bug

from circuitjs1.

Related Issues (20)

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.