Esempio n. 1
0
        public Complex GetCurrent(ComplexSimulationState state)
        {
            state.ThrowIfNull(nameof(state));
            var conductance = state.Laplace * Capacitance;

            return((state.Solution[PosNode] - state.Solution[NegNode]) * conductance);
        }
Esempio n. 2
0
        public Complex GetPower(ComplexSimulationState state)
        {
            state.ThrowIfNull(nameof(state));
            var voltage = state.Solution[PosNode] - state.Solution[NegNode];

            return(voltage * Complex.Conjugate(voltage) * Conductance);
        }
Esempio n. 3
0
        public Complex GetPower(ComplexSimulationState state)
        {
            state.ThrowIfNull(nameof(state));
            var v = state.Solution[PosNode] - state.Solution[NegNode];

            return(-v *Complex.Conjugate(FrequencyParameters.Phasor));
        }
Esempio n. 4
0
 public Complex GetCurrent(ComplexSimulationState state)
 {
     state.ThrowIfNull(nameof(state));
     var geq = Capacitance * state.Laplace + Conductance;
     var voltage = state.Solution[PosPrimeNode] - state.Solution[NegNode];
     return voltage * geq;
 }
Esempio n. 5
0
        public Complex GetPower(ComplexSimulationState state)
        {
            state.ThrowIfNull(nameof(state));
            var v = state.Solution[PosNode] - state.Solution[NegNode];
            var i = (state.Solution[ContPosNode] - state.Solution[ContNegNode]) * BaseParameters.Coefficient.Value;

            return(-v *Complex.Conjugate(i));
        }
Esempio n. 6
0
 public Complex GetPower(ComplexSimulationState state)
 {
     state.ThrowIfNull(nameof(state));
     var geq = Capacitance * state.Laplace + Conductance;
     var current = (state.Solution[PosPrimeNode] - state.Solution[NegNode]) * geq;
     var voltage = state.Solution[PosNode] - state.Solution[NegNode];
     return voltage * -Complex.Conjugate(current);
 }
Esempio n. 7
0
        public Complex GetPower(ComplexSimulationState state)
        {
            state.ThrowIfNull(nameof(state));

            var v = state.Solution[PosNode] - state.Solution[NegNode];
            var i = state.Solution[BranchEq];

            return(-v *Complex.Conjugate(i));
        }
Esempio n. 8
0
        public Complex GetCurrent(ComplexSimulationState state)
        {
            state.ThrowIfNull(nameof(state));

            return(state.Solution[BranchEq]);
        }
Esempio n. 9
0
        public Complex GetVoltage(ComplexSimulationState state)
        {
            state.ThrowIfNull(nameof(state));

            return(state.Solution[PosNode] - state.Solution[NegNode]);
        }
Esempio n. 10
0
 public Complex GetCurrent(ComplexSimulationState state)
 {
     state.ThrowIfNull(nameof(state));
     return((state.Solution[ContPosNode] - state.Solution[ContNegNode]) * BaseParameters.Coefficient.Value);
 }
Esempio n. 11
0
 public Complex GetCurrent(ComplexSimulationState state)
 {
     state.ThrowIfNull(nameof(state));
     return(state.Solution[ControlBranchEq] * BaseParameters.Coefficient.Value);
 }