public override void Analyze(Analysis Mna) { // Unknown current. Mna.AddTerminal(Terminal, Mna.AddUnknown("i" + Name)); // Set voltage equal to the rail. Mna.AddEquation(V, Voltage); // Add initial conditions, if necessary. Expression V0 = ((Expression)Voltage).Evaluate(t, 0); if (!(V0 is Constant)) Mna.AddInitialConditions(Arrow.New(V0, 0)); }
public override void Analyze(Analysis Mna) { // Unknown current. Mna.AddTerminal(Terminal, Mna.AddUnknown("i" + Name)); // Set voltage equal to the rail. Mna.AddEquation(V, Voltage); // Add initial conditions, if necessary. Expression V0 = ((Expression)Voltage).Evaluate(t, 0); if (!(V0 is Constant)) { Mna.AddInitialConditions(Arrow.New(V0, 0)); } }
public static void Analyze(Analysis Mna, string Name, Node Anode, Node Cathode, Expression V, Arrow InitialConditions) { Analyze(Mna, Name, Anode, Cathode, V); Mna.AddInitialConditions(InitialConditions); }
public static void Analyze(Analysis Mna, Node Anode, Node Cathode, Expression Current, Arrow InitialConditions) { Analyze(Mna, Anode, Cathode, Current); Mna.AddInitialConditions(InitialConditions); }
public static void Analyze(Analysis Mna, string Name, Node Anode, Node Cathode, Expression V, Arrow InitialConditions) { Analyze(Mna, Name, Anode, Cathode, V); Mna.AddInitialConditions(InitialConditions); }
public static void Analyze(Analysis Mna, Node Anode, Node Cathode, Expression Current, Arrow InitialConditions) { Analyze(Mna, Anode, Cathode, Current); Mna.AddInitialConditions(InitialConditions); }