Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
DoubleBoxBranchline.h
1/*
2 * Copyright (C) 2025 Andrés Martínez Mera - andresmmera@protonmail.com
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef DOUBLE_BOX_BRANCHLINE_H
19#define DOUBLE_BOX_BRANCHLINE_H
20
21#include "../../Misc/general.h"
22#include "../../Schematic/Network.h"
23#include "../../Schematic/component.h"
24#include "../TransmissionLineSynthesis/Microstrip.h"
25#include <QPen>
26
28public:
30 virtual ~DoubleBoxBranchline();
32 void synthesize();
33
34private:
35 PowerCombinerParams Specification;
36
37 double lambda4, ZA, ZB, ZD;
38
39 void calculateParams();
40 void buildDoubleBoxBranchline_IdealTL();
41 void buildDoubleBoxBranchline_Microstrip();
42
43private:
44
45 // This function sets the component's location before the schematic is built
46 void setComponentsLocation();
47
48 // Private variables for components location
49 int x_spacing, y_spacing; // General components spacing
50
51 // Ports
52 QPoint Port_in;
53 QPoint Port_out1, Port_out2;
54
55 // Isolation resistor
56 QPoint Riso_pos;
57 QPoint GND_Riso_pos;
58
59 // Transmission lines
60 QPoint TL1_pos, TL2_pos, TL3_pos, TL4_pos, TL5_pos, TL6_pos, TL7_pos;
61
62 // Nodes
63 QPoint N1_pos, N2_pos, N3_pos, N4_pos, N5_pos, N6_pos;
64};
65
66#endif // DOUBLE_BOX_BRANCHLINE_H
Definition DoubleBoxBranchline.h:27
Definition Network.h:36
Definition structures.h:189