您的示例看起来很像modelica,这是一种基于创建块和连接块之间端口的面向对象的仿真语言。
使用电气元件库的示例(来自maplesoft.com),
encapsulated model ChuaCircuit "Chua's circuit, ns, V, A"
import Modelica.Electrical.Analog.Basic;
import Modelica.Electrical.Analog.Examples.Utilities;
import Modelica.Icons;
extends Icons.Example;
Basic.Inductor L(L=18);
Basic.Resistor Ro(R=12.5e-3);
Basic.Conductor G(G=0.565);
Basic.Capacitor C1(C=10, v(start=4));
Basic.Capacitor C2(C=100);
Utilities.NonlinearResistor Nr(
Ga(min=-1) = -0.757576,
Gb(min=-1) = -0.409091,
Ve=1);
Basic.Ground Gnd;
equation
connect(L.p, G.p);
connect(G.n, Nr.p);
connect(Nr.n, Gnd.p);
connect(C1.p, G.n);
connect(L.n, Ro.p);
connect(G.p, C2.p);
connect(C1.n, Gnd.p);
connect(C2.n, Gnd.p);
connect(Ro.n, Gnd.p);
end ChuaCircuit;
尽管您可以从模型生成示意图,但通常这是在 GUI 中完成的,该 GUI 使用位置和方向信息对组件进行注释。