Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Wilkinson3way_ImprovedIsolation.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 WILKINSON3WAY_IMPROVEDISOLATION_H
19#define WILKINSON3WAY_IMPROVEDISOLATION_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
27/*
28 * References:
29 * [1] "Power combiners, impedance transformers and directional couplers: part
30 * II". Andrei Grebennikov. High Frequency Electronics. 2008
31 * [2] "New 3N way hybrid power dividers", IEEE Trans. Microwave Theory Tech.,
32 * vol. MTT-25, Dec. 1977, pp. 1008-1012
33 */
34
36 public:
40 void synthesize();
41
42 private:
43 PowerCombinerParams Specification;
44
45 double lambda4;
46 double Z1, Z2, R1, R2;
47
48 void calculateParams();
49 void buildWilkinson3Way_IdealTL();
50 void buildWilkinson3Way_Microstrip();
51
52 // Private variables for components location
53 private:
54 // This function sets the component's location before the schematic is built
55 void setComponentsLocation();
56
57 // General components spacing
58 int x_spacing, y_spacing;
59
60 // Ports
61 QVector<QPoint> Ports_pos;
62
63 // Isolation resistors
64 QVector<QPoint> Riso_pos;
65
66 // Transmission lines
67 QVector<QPoint> TL_pos;
68
69 // Nodes
70 QVector<QPoint> N_pos;
71};
72
73#endif // WILKINSON3WAY_IMPROVEDISOLATION_H
Definition Network.h:36
Definition Wilkinson3way_ImprovedIsolation.h:35
Definition structures.h:189