/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <summary>Registeres the equation system solution proxies.</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.GetSolutionProxy(anode); this.cathode = adapter.GetSolutionProxy(cathode); }
/// <summary>Returns proxy class for the i-th variable of the solution.</summary> /// <param name="index"></param> /// <returns></returns> public IEquationSystemSolutionProxy GetSolutionProxy(int index) { return(decoreated.GetSolutionProxy(GetMappedIndex(index))); }