Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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>
        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);
        }
Ejemplo 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>
        /// <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);
        }
Ejemplo n.º 8
0
 /// <summary>Returns proxy class for coefficient at given coordinates in the equation matrix.</summary>
 /// <param name="row">Row coordinate.</param>
 /// <param name="column">Column coordinate.</param>
 /// <returns></returns>
 public IEquationSystemCoefficientProxy GetMatrixCoefficientProxy(int row, int column)
 {
     return(decoreated.GetMatrixCoefficientProxy(GetMappedIndex(row), GetMappedIndex(column)));
 }
Ejemplo 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);
 }