const inputTerminalElementId = "cc2dba81-3e89-b667-aa14-d2f17a8323ed";
const outputTerminalElementId = "36523bf2-fb3f-76c6-4a49-6aac5ebca3bd";
const inputTerminalElement = flux.getNodeById(inputTerminalElementId, "elementTerminal");
const outputTerminalElement = flux.getNodeById(outputTerminalElementId, "elementTerminal");
const currentThru = flux.createOutputNode("va");
flux.on("setup", () => {
// set the internal resistance of the current meter to 100 ohms
const resistance = 10;
flux.simulationModel = simModel(resistance);
});
flux.on("beforeStep", () => {
// set the internal resistance of the current meter to 100 ohms
const resistance = 10;
flux.simulationModel = simModel(resistance);
});
flux.on("afterStep", () => {