public Net(double sizeX, double sizeY, Material mat, double dL, double Z0, double f0, double c, int N, Boundaries bounds, int mode) { this.x = sizeX; this.y = sizeY; this.dL = dL; this.material = mat; this.c = c; this.f0 = f0; this.dL = dL; this.N = N; this.Z0 = Z0; this.boundaries = bounds; this.mode = mode; this.Calc(this.mode); }
public Node(int i, int j, Material mat, double dL, double Ylt, int N, int mode, bool input = false) { this.i = i; this.j = j; this.material = mat; this.dL = dL; if (mode == 0) { this.Ylt = Ylt; } else { this.Zlt = 1 / Ylt; } this.x = j * dL; this.y = i * dL; this.Vi = new Ports(N); this.Vr = new Ports(N); this.mode = mode; this.input = input; RecalcParams(mode); }