Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Tools
PowerCombining
Bagley.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 BAGLEY_H
19
#define BAGLEY_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
Bagley
:
public
Network
{
28
public
:
29
Bagley
();
30
virtual
~Bagley
();
31
Bagley
(
PowerCombinerParams
);
32
void
synthesize();
33
34
private
:
35
PowerCombinerParams
Specification;
36
37
double
lambda4, lambda2, Zbranch;
38
39
void
calculateParams();
40
void
buildBagley_IdealTL();
41
void
buildBagley_Microstrip();
42
43
44
private
:
45
46
// Components' locations
47
48
// This function sets the component's location before the schematic is built
49
void
setComponentsLocation();
50
51
// Private variables for components location
52
int
x_spacing, y_spacing;
// General components spacing
53
54
// Ports
55
QPoint Port_in;
56
QPoint Port_1st_out;
57
58
// 1st output node
59
int
y_out;
// y-axis coordinate of the output lines
60
QPoint N_1st_out;
61
62
// Transmission lines
63
QPoint left_TL;
64
QPoint right_TL;
65
66
67
};
68
69
#endif
// BAGLEY_H
Bagley
Definition
Bagley.h:27
Network
Definition
Network.h:36
PowerCombinerParams
Definition
structures.h:189
Generated by
1.9.8