예제 #1
0
 /// <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;
 }
예제 #2
0
        /// <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;
        }