Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Lim_Eom.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 LIM_EOM_H
19#define LIM_EOM_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] "A New 3-Way Power Divider with Various Output Power Ratios," J.-S. Lim
32 * and S.-Y. Eom, 1996 IEEE MTT-S Int. Microwave Symp. Dig., pp. 785-788."
33 */
34
35class Lim_Eom : public Network {
36public:
37 Lim_Eom();
38 virtual ~Lim_Eom();
40 void synthesize();
41
42private:
43 PowerCombinerParams Specification;
44
45 double lambda4;
46 double Z1, Z2, Z3, Z4, Z5;
47
48 void calculateParams();
49 void buildLimEom_IdealTL();
50 void buildLimEom_Microstrip();
51
52private:
53 // This function sets the component's location before the schematic is built
54 void setComponentsLocation();
55
56 // Private variables for components location
57 int x_spacing, y_spacing; // General components spacing
58
59 // Ports
60 QVector<QPoint> Ports_pos;
61
62 // Isolation resistor
63 QVector<QPoint> Riso_pos;
64 QVector<QPoint> GND_Riso_pos;
65
66 // Transmission lines
67 QVector<QPoint> TL_pos;
68
69 // Nodes
70 QVector<QPoint> N_pos;
71};
72
73#endif // LIM_EOM_H
Definition Lim_Eom.h:35
Definition Network.h:36
Definition structures.h:189