Esempio n. 1
0
 /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
 /// <param name="adapter">The equation system adapter.</param>
 /// <param name="anode">Index of anode terminal.</param>
 /// <param name="cathode">Index of cathode terminal.</param>
 public void Register(IEquationSystemAdapter adapter, int anode, int cathode)
 {
     n11 = adapter.GetMatrixCoefficientProxy(anode, anode);
     n12 = adapter.GetMatrixCoefficientProxy(anode, cathode);
     n21 = adapter.GetMatrixCoefficientProxy(cathode, anode);
     n22 = adapter.GetMatrixCoefficientProxy(cathode, cathode);
 }
Esempio n. 2
0
 /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
 /// <param name="adapter">The equation system adapter.</param>
 /// <param name="anode">Index of anode terminal.</param>
 /// <param name="cathode">Index of cathode terminal.</param>
 /// <param name="ranode">Index of reference anode terminal.</param>
 /// <param name="rcathode">Index of reference cathode terminal.</param>
 public void Register(IEquationSystemAdapter adapter, int anode, int cathode, int ranode, int rcathode)
 {
     nara = adapter.GetMatrixCoefficientProxy(anode, ranode);
     ncra = adapter.GetMatrixCoefficientProxy(cathode, ranode);
     narc = adapter.GetMatrixCoefficientProxy(anode, rcathode);
     ncrc = adapter.GetMatrixCoefficientProxy(cathode, rcathode);
 }
Esempio n. 3
0
        /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
        /// <param name="adapter">The equation system adapter.</param>
        /// <param name="anode">Index of anode terminal.</param>
        /// <param name="cathode">Index of cathode terminal.</param>
        public void Register(IEquationSystemAdapter adapter, int anode, int cathode, int refBranch)
        {
            n14 = adapter.GetMatrixCoefficientProxy(anode, BranchVariable);
            n24 = adapter.GetMatrixCoefficientProxy(cathode, BranchVariable);
            n41 = adapter.GetMatrixCoefficientProxy(BranchVariable, anode);
            n42 = adapter.GetMatrixCoefficientProxy(BranchVariable, cathode);
            n43 = adapter.GetMatrixCoefficientProxy(BranchVariable, refBranch);

            solution = adapter.GetSolutionProxy(BranchVariable);
        }
Esempio n. 4
0
        /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
        /// <param name="adapter">The equation system adapter.</param>
        /// <param name="anode">Index of anode terminal.</param>
        /// <param name="cathode">Index of cathode terminal.</param>
        public void Register(IEquationSystemAdapter adapter, int anode, int cathode)
        {
            voltage.Register(adapter, anode, cathode);
            currentStamper.Register(adapter, anode, cathode);
            n13 = adapter.GetMatrixCoefficientProxy(anode, BranchVariable);
            n23 = adapter.GetMatrixCoefficientProxy(cathode, BranchVariable);
            n33 = adapter.GetMatrixCoefficientProxy(BranchVariable, BranchVariable);

            r3 = adapter.GetRightHandSideCoefficientProxy(BranchVariable);
        }
Esempio n. 5
0
        /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
        /// <param name="adapter">The equation system adapter.</param>
        /// <param name="anode">Index of anode terminal.</param>
        /// <param name="cathode">Index of cathode terminal.</param>
        public void Register(IEquationSystemAdapter adapter, int anode, int cathode)
        {
            n13 = adapter.GetMatrixCoefficientProxy(anode, BranchVariable);
            n23 = adapter.GetMatrixCoefficientProxy(cathode, BranchVariable);
            n31 = adapter.GetMatrixCoefficientProxy(BranchVariable, anode);
            n32 = adapter.GetMatrixCoefficientProxy(BranchVariable, cathode);

            br = adapter.GetRightHandSideCoefficientProxy(BranchVariable);

            solution = adapter.GetSolutionProxy(BranchVariable);
        }
Esempio n. 6
0
        /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
        /// <param name="adapter">The equation system adapter.</param>
        /// <param name="anode">Index of anode terminal.</param>
        /// <param name="cathode">Index of cathode terminal.</param>
        /// <param name="ranode">Index of reference anode terminal.</param>
        /// <param name="rcathode">Index of reference cathode terminal.</param>
        public void Register(IEquationSystemAdapter adapter, int anode, int cathode, int ranode, int rcathode)
        {
            nab  = adapter.GetMatrixCoefficientProxy(anode, BranchVariable);
            ncb  = adapter.GetMatrixCoefficientProxy(cathode, BranchVariable);
            nba  = adapter.GetMatrixCoefficientProxy(BranchVariable, anode);
            nbc  = adapter.GetMatrixCoefficientProxy(BranchVariable, cathode);
            nbra = adapter.GetMatrixCoefficientProxy(BranchVariable, ranode);
            nbrc = adapter.GetMatrixCoefficientProxy(BranchVariable, rcathode);

            cur = adapter.GetSolutionProxy(BranchVariable);
        }
Esempio n. 7
0
        /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
        /// <param name="adapter">The equation system adapter.</param>
        /// <param name="anode">Index of anode terminal.</param>
        /// <param name="cathode">Index of cathode terminal.</param>
        public void Register(IEquationSystemAdapter adapter, int anode, int cathode)
        {
            nba = adapter.GetMatrixCoefficientProxy(BranchVariable, anode);
            nbc = adapter.GetMatrixCoefficientProxy(BranchVariable, cathode);
            nab = adapter.GetMatrixCoefficientProxy(anode, BranchVariable);
            ncb = adapter.GetMatrixCoefficientProxy(cathode, BranchVariable);
            nbb = adapter.GetMatrixCoefficientProxy(BranchVariable, BranchVariable);

            nb = adapter.GetRightHandSideCoefficientProxy(BranchVariable);

            sol = adapter.GetSolutionProxy(BranchVariable);
        }
Esempio n. 8
0
 /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
 /// <param name="adapter">The equation system adapter.</param>
 /// <param name="anode">Index of anode terminal.</param>
 /// <param name="cathode">Index of cathode terminal.</param>
 public void Register(IEquationSystemAdapter adapter, int anode, int cathode)
 {
     this.anode   = adapter.GetRightHandSideCoefficientProxy(anode);
     this.cathode = adapter.GetRightHandSideCoefficientProxy(cathode);
 }
Esempio n. 9
0
 /// <summary>Registeres the equation system coefficient proxies into the stamper.</summary>
 /// <param name="adapter">The equation system adapter.</param>
 /// <param name="anode">Index of anode terminal.</param>
 /// <param name="cathode">Index of cathode terminal.</param>
 /// <param name="branch">Index of variable containing the reference current.</param>
 public void Register(IEquationSystemAdapter adapter, int anode, int cathode, int branch)
 {
     na = adapter.GetMatrixCoefficientProxy(anode, branch);
     nc = adapter.GetMatrixCoefficientProxy(cathode, branch);
 }