Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Tools
PowerCombining
Gysel.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 GYSEL_H
19
#define GYSEL_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
class
Gysel
:
public
Network
{
28
public
:
29
Gysel
();
30
virtual
~Gysel
();
31
Gysel
(
PowerCombinerParams
);
32
void
synthesize();
33
34
private
:
35
PowerCombinerParams
Specification;
36
37
double
lambda4, lambda2;
38
39
void
calculateParams();
40
void
buildGysel_IdealTL();
41
void
buildGysel_Microstrip();
42
43
private
:
44
45
// Components' locations
46
47
// These variables are put as class private because these positions are shared between TLIN and MS implemenations
48
49
// This function sets the component's location before the schematic is built
50
void
setComponentsLocation();
51
52
// Private variables for components location
53
int
x_spacing, y_spacing;
// General components spacing
54
55
// Ports
56
QPoint Port_in;
57
QPoint Port_out_up;
58
QPoint Port_out_bottom;
59
60
// Nodes
61
QPoint N1_pos;
// Node in front of the input port
62
QPoint N2_pos;
// Node in front of the upper output port
63
QPoint N3_pos;
// Node in front of the lower output port
64
QPoint N4_pos;
// Node in front of the upper resistor
65
QPoint N5_pos;
// Node in front of the lower resistor
66
67
// Transmission lines
68
QPoint TL1_pos;
69
QPoint TL2_pos;
70
QPoint TL3_pos;
71
QPoint TL4_pos;
72
QPoint TL5_pos;
73
74
// Resistors
75
QPoint R_top, R_GND_top;
76
QPoint R_bottom, R_GND_bottom;
77
78
};
79
80
#endif
// GYSEL_H
Gysel
Definition
Gysel.h:27
Network
Definition
Network.h:36
PowerCombinerParams
Definition
structures.h:189
Generated by
1.9.8