Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Tools
PowerCombining
TJunction.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 TJUNCTION_H
19
#define TJUNCTION_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
TJunction
:
public
Network
{
28
public
:
29
TJunction
();
30
virtual
~TJunction
();
31
TJunction
(
PowerCombinerParams
);
32
void
synthesize();
33
34
private
:
35
PowerCombinerParams
Specification;
36
37
void
buildTJunction_IdealTL(
double
lambda4,
double
K);
38
void
buildTJunction_Microstrip(
double
lambda4,
double
K);
39
40
private
:
41
42
// This function sets the component's location before the schematic is built
43
void
setComponentsLocation();
44
45
// Private variables for components location
46
int
x_spacing, y_spacing;
// General components spacing
47
48
// Ports
49
QVector<QPoint> Ports_pos;
50
51
// Isolation resistor
52
QPoint Riso_pos;
53
QPoint GND_Riso_pos;
54
55
// Transmission lines
56
QVector<QPoint> TL_pos;
57
58
// Nodes
59
QVector<QPoint> N_pos;
60
};
61
62
#endif
// TJUNCTION_H
Network
Definition
Network.h:36
TJunction
Definition
TJunction.h:27
PowerCombinerParams
Definition
structures.h:189
Generated by
1.9.8