Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Wilkinson2Way.h
1/*
2 * Copyright (C) 2019-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 WILKINSON2WAY_H
19#define WILKINSON2WAY_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
27class Wilkinson2Way : public Network {
28 public:
30 virtual ~Wilkinson2Way();
32 void synthesize();
33
34 private:
35 PowerCombinerParams Specification;
36
37 double Z2, Z3, R, R2, R3;
38
39 void calculateParams();
40 void buildWilkinson_LumpedLC();
41 void buildWilkinson_IdealTL();
42 void buildWilkinson_Microstrip();
43
44 private:
45
46 // This function sets the component's location before the schematic is built
47 void setComponentsLocation();
48
49 // Private variables for components location
50 int x_spacing, y_spacing; // General components spacing
51
52 // Ports
53 QPoint Port_in;
54 QPoint Port_out1, Port_out2;
55
56 // Isolation resistor
57 QPoint Riso_pos;
58 QPoint GND_Riso_pos;
59
60 // Transmission lines
61 QPoint TL1_pos, TL2_pos, TL3_pos, TL4_pos, TL5_pos;
62
63 // Nodes
64 QPoint N1_pos, N2_pos, N3_pos, N4_pos, N5_pos;
65
66};
67
68#endif // WILKINSON2WAY_H
Definition Network.h:36
Definition Wilkinson2Way.h:27
Definition structures.h:189