gen~ for System Modeling (Circuits)

bearded clumsybear's icon

After watching Vult's video about his approach of analog modelling, I'm wondering if it would be possible to use gen~ as something like Mathematica System Modeler or Matlab SimuLink.
https://www.youtube.com/watch?v=xQYLBS9R_uA

Let's imagine there are blocks (codeblocks in gen) defining analog models of electronic components like resistors, capacitors, inductors, and so on, which we can connect to build a circuit of some sort. The basic components will always be the same, although we can change their values. Like the resistance of a resistor for example. That way we could translate a lot of analog circuit designs to the digital domain.

Would that work and give usable results in gen? Is there already something similar out there?

I'm not really familiar with Mathematica System Modeler or any other modelling software, but as far as I can tell, the models of electronic components Vult uses are just equations. Now I do not know how System Modeler handles the currents of the model and if it would be possible to remake it in gen~.

Any ideas?