// see https://docs.flux.ai/simulator/triode
const p1TerminalId = "dcf700f4-0356-d05a-2174-b6e94efeaf85";
const p2TerminalId = "8a0a3777-8447-490a-a8bc-aeb68ec467d5";
const p3TerminalId = "e9a9ebda-23ea-5053-88e2-f3f0f1fc904c";
const p1Terminal = flux.getNodeById(p1TerminalId, "elementTerminal");
const p2Terminal = flux.getNodeById(p2TerminalId, "elementTerminal");
const p3Terminal = flux.getNodeById(p3TerminalId, "elementTerminal");
flux.on("setup", () => {
flux.simulationModel = simModel()
})
function simModel(): TriodeSimulationModelConfig {
return {
type: "triode",
kg1: 680,
mu: 92,
/**
* The terminal ID corresponding to the first input.
*/
map_input_one_to_terminal_uid: p3TerminalId,
/**
* The terminal ID corresponding to the second input.
*/
map_input_two_to_terminal_uid: p2TerminalId,