public Complex GetCurrent(ComplexSimulationState state) { state.ThrowIfNull(nameof(state)); var conductance = state.Laplace * Capacitance; return((state.Solution[PosNode] - state.Solution[NegNode]) * conductance); }
public Complex GetPower(ComplexSimulationState state) { state.ThrowIfNull(nameof(state)); var voltage = state.Solution[PosNode] - state.Solution[NegNode]; return(voltage * Complex.Conjugate(voltage) * Conductance); }
public Complex GetPower(ComplexSimulationState state) { state.ThrowIfNull(nameof(state)); var v = state.Solution[PosNode] - state.Solution[NegNode]; return(-v *Complex.Conjugate(FrequencyParameters.Phasor)); }
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; }
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)); }
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); }
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)); }
public Complex GetCurrent(ComplexSimulationState state) { state.ThrowIfNull(nameof(state)); return(state.Solution[BranchEq]); }
public Complex GetVoltage(ComplexSimulationState state) { state.ThrowIfNull(nameof(state)); return(state.Solution[PosNode] - state.Solution[NegNode]); }
public Complex GetCurrent(ComplexSimulationState state) { state.ThrowIfNull(nameof(state)); return((state.Solution[ContPosNode] - state.Solution[ContNegNode]) * BaseParameters.Coefficient.Value); }
public Complex GetCurrent(ComplexSimulationState state) { state.ThrowIfNull(nameof(state)); return(state.Solution[ControlBranchEq] * BaseParameters.Coefficient.Value); }