Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
simulationsetup.h
Go to the documentation of this file.
1
8
9#ifndef SIMULATIONSETUP_H
10#define SIMULATIONSETUP_H
11
12#include "Misc/general.h"
14
16#include <QButtonGroup>
17#include <QComboBox>
18#include <QGridLayout>
19#include <QGroupBox>
20#include <QHBoxLayout>
21#include <QLabel>
22#include <QRadioButton>
23#include <QSpinBox>
24#include <QTabWidget>
25#include <QVBoxLayout>
26#include <QWidget>
27
28// Needed for having the substrate structures for each transmission line
29// implementation
31
37class SimulationSetup : public QWidget {
38 Q_OBJECT
39 public:
42 SimulationSetup(QWidget* parent = nullptr);
43
46
51 double getFstart();
52
55 QString getFstart_as_Text();
56
59 double getFstop();
60
63 QString getFstop_as_Text();
64
67 int getNpoints() { return npointsSpinBox->value(); }
69
76 TransmissionLineType getTransmissionLineType();
77
80 return substrateThicknessSpinBox->value(); // in mm
81 }
82
85 return substratePermittivitySpinBox->value();
86 }
87
90 return substrateLossTangentSpinBox->value();
91 }
92
95 return conductorThicknessSpinBox->value();
96 }
97
100 return conductorConductivitySpinBox->value();
101 }
102
106 return groundPlaneThicknessSpinBox->value();
107 }
109
112 MS_Substrate get_MS_Substrate() { return MS_Subs; }
113
114 private:
115 // Tab widget
116 QTabWidget *tabWidget;
117
120 CustomDoubleSpinBox *fstartSpinBox;
121 CustomDoubleSpinBox *fstopSpinBox;
122 QComboBox *fstartScaleComboBox;
123 QComboBox *fstopScaleComboBox;
124 QSpinBox *npointsSpinBox;
126
129 QComboBox *transmissionLineComboBox;
130 CustomDoubleSpinBox *substrateThicknessSpinBox;
131 CustomDoubleSpinBox *substratePermittivitySpinBox;
132 CustomDoubleSpinBox *substrateLossTangentSpinBox;
133 CustomDoubleSpinBox *conductorThicknessSpinBox;
134 CustomDoubleSpinBox *conductorConductivitySpinBox;
135 CustomDoubleSpinBox *groundPlaneThicknessSpinBox;
136 QLabel *imageLabel;
138
141 QWidget* createFrequencySweepTab();
142 QWidget* createSubstratePropertiesTab();
143 void updateImageDisplay();
145
146 // Substrate data
147 MS_Substrate MS_Subs;
148
149 private slots:
151 void updateSubstrateDefinition();
152
154 void updateFrequencySweep() {emit updateSimulation();}
155
157 void onTransmissionLineTypeChanged();
158
159 signals:
162
165};
166
167#endif // SIMULATIONSETUP_H
Custom QDoubleSpinBox. It includes a context menu (right-click) for setting the minimum,...
Synthesize microstrip lines (definition)
A QDoubleSpinBox subclass that provides a context menu for configuring range and step.
Definition CustomDoubleSpinBox.h:28
UI component to set the simulation settings The widget consists of two tabs: 1) Frequency Sweep – sta...
Definition simulationsetup.h:37
double getConductorThickness()
Conductor thickness (µm)
Definition simulationsetup.h:94
QString getFstop_as_Text()
Get the stop frequency as a formatted string.
Definition simulationsetup.cpp:318
void updateSimulation()
Emitted when any simulation parameter changes.
double getSubstrateThickness()
Substrate thickness (mm).
Definition simulationsetup.h:79
double getGroundPlaneThickness()
Ground‑plane thickness (µm).
Definition simulationsetup.h:105
MS_Substrate get_MS_Substrate()
}@
Definition simulationsetup.h:112
double getSubstrateLossTangent()
Loss tangent (tan δ)
Definition simulationsetup.h:89
double getConductorConductivity()
Conductor conductivity (S/m)
Definition simulationsetup.h:99
double getFstop()
Get the stop frequency in Hz.
Definition simulationsetup.cpp:310
~SimulationSetup()
Class destructor.
Definition simulationsetup.h:45
QString getFstart_as_Text()
Get the start frequency as a formatted string.
Definition simulationsetup.cpp:303
double getSubstratePermittivity()
Relative permittivity (εᵣ)
Definition simulationsetup.h:84
void updateSubstrate()
Emitted specifically when substrate data changes.
int getNpoints()
Get the number of frequency points.
Definition simulationsetup.h:67
Utility functions needed across the whole project.
Definition of the classes related to the component, nodes and wires data.
Microstrip substrate parameters.
Definition structures.h:145