/// <summary> /// Execute behavior for AC analysis /// </summary> void IFrequencyBehavior.Load() { // Load Y-matrix CPosBranchPtr.ThrowIfNotBound(this).Value += 1.0; CBranchPosPtr.Value += 1.0; CNegBranchPtr.Value -= 1.0; CBranchNegPtr.Value -= 1.0; CBranchControlPosPtr.Value -= BaseParameters.Coefficient.Value; CBranchControlNegPtr.Value += BaseParameters.Coefficient.Value; }
/// <summary> /// Execute behavior for AC analysis /// </summary> void IFrequencyBehavior.Load() { // Load Y-matrix CPosBranchPtr.ThrowIfNotBound(this).Value += 1.0; CBranchPosPtr.Value += 1.0; CNegBranchPtr.Value -= 1.0; CBranchNegPtr.Value -= 1.0; // Load Rhs-vector CBranchPtr.Value += FrequencyParameters.Phasor; }