const aTerminal = flux.getNodeById("e451406c-bdf9-558a-bb23-77ed78935623");
const bTerminal = flux.getNodeById("d5d3e630-adfa-bb0d-a083-a540f2c2a8e4");
const yTerminal = flux.getNodeById("ac4c9640-8c79-3cf9-f0ec-d30200f3d7bd");
const aVoltage = flux.createOutputNode("a-voltage");
const bVoltage = flux.createOutputNode("b-voltage");
const yVoltage = flux.createOutputNode("y-voltage");
flux.on("setup", () => {
flux.simulationModel = {
type: "norGate",
highVoltage: 4.5,
map_input_one_to_terminal_uid: aTerminal?.uid,
map_input_two_to_terminal_uid: bTerminal?.uid,
map_output_to_terminal_uid: yTerminal?.uid
}
});
flux.on("beforeStep", () => {
flux.simulationModel = {
type: "norGate",
highVoltage: 4.5,