private Complex VoltageDrop() { if (!Positive.IsConnected() || !Negative.IsConnected()) { return(new Complex()); } var V = Positive.Node.Voltage - Negative.Node.Voltage; return(V - Voltage); }
private Complex OhmsLaw() { if (!Positive.IsConnected() || !Negative.IsConnected()) { return(new Complex()); } var V = Positive.Node.Voltage - Negative.Node.Voltage; var I = Positive.Current; var R = Resistance; return(V - R * I); }