private Complex VoltageDrop()
        {
            if (!Positive.IsConnected() || !Negative.IsConnected())
            {
                return(new Complex());
            }

            var V = Positive.Node.Voltage - Negative.Node.Voltage;

            return(V - Voltage);
        }
Beispiel #2
0
        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);
        }