Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Tools
PowerCombining
Branchline.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 BRANCHLINE_H
19
#define BRANCHLINE_H
20
21
#include "../../Misc/general.h"
22
#include "../../Schematic/Network.h"
23
#include "../../Schematic/component.h"
24
#include "../TransmissionLineSynthesis/Microstrip.h"
25
26
class
Branchline
:
public
Network
{
27
public
:
28
Branchline
();
29
virtual
~Branchline
();
30
Branchline
(
PowerCombinerParams
);
31
void
synthesize();
32
33
private
:
34
struct
PowerCombinerParams
Specification;
35
36
double
lambda4, ZA, ZB;
37
38
void
calculateParams();
39
void
setComponentsLocation();
40
void
buildBranchline_IdealTL();
41
void
buildBranchline_Microstrip();
42
43
private
:
44
// Private variables for components location
45
int
x_spacing, y_spacing;
// General components spacing
46
47
// Ports
48
QPoint Port_in;
49
QPoint Port_out1, Port_out2;
50
51
// Isolation resistor
52
QPoint Riso_pos;
53
QPoint GND_Riso;
54
55
// Transmission lines
56
QPoint TL1_pos;
57
QPoint TL2_pos;
58
QPoint TL3_pos;
59
QPoint TL4_pos;
60
61
// Nodes
62
QPoint N1_pos, N2_pos, N3_pos, N4_pos;
63
64
};
65
66
#endif
// BRANCHLINE_H
Branchline
Definition
Branchline.h:26
Network
Definition
Network.h:36
PowerCombinerParams
Definition
structures.h:189
Generated by
1.9.8