const aTerminal = flux.getNodeById("f1c64112-96ca-9adf-9ea5-70bc6f06d5ae");
const bTerminal = flux.getNodeById("afbc4e75-e2be-000a-58e9-2925c8d3b846");
const cTerminal = flux.getNodeById("b1d2cd10-1507-5a54-e5d8-dd5729c46b58");
const aVoltage = flux.createOutputNode("a-voltage");
const bVoltage = flux.createOutputNode("b-voltage");
const cVoltage = flux.createOutputNode("c-voltage");
flux.on("setup", () => {
flux.simulationModel = {
type: "andGate",
highVoltage: 4.5,
map_input_one_to_terminal_uid: aTerminal?.uid,
map_input_two_to_terminal_uid: bTerminal?.uid,
map_output_to_terminal_uid: cTerminal?.uid
}
});
flux.on("beforeStep", () => {
flux.simulationModel = {
type: "andGate",
highVoltage: 4.5,