KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_calculator/transline/stripline.cpp
Go to the documentation of this file.
1/*
2 * stripline.cpp - stripline class definition
3 *
4 * Copyright (C) 2011 Michael Margraf <[email protected]>
5 * Modifications 2018 for Kicad: Jean-Pierre Charras
6 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or (at
11 * your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this package; see the file COPYING. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22 *
23 */
24
25#include "stripline.h"
26#include <units_scales.h>
27
28
30{
31 m_Name = "StripLine";
32 Init();
33}
34
35
37{
38 m_calc.Analyse();
39}
40
41
46
47
70
71
94
95
99
100
void calcSynthesize() override
Computation for synthesis.
void getProperties() override
@function getProperties
void showSynthesize() override
Shows analysis results and checks for errors / warnings.
void show_results() override
Shows results.
void calcAnalyze() override
Computation for analysis.
void showAnalyze() override
Shows synthesis results and checks for errors / warnings.
void Init()
Definition transline.cpp:87
void setResult(int, double, const char *)
double m_parameters[EXTRA_PRMS_COUNT]
Definition transline.h:133
virtual void getProperties()
@function getProperties
const char * m_Name
Definition transline.h:86
static char convertParameterStatusCode(TRANSLINE_STATUS aStatus)
Converts a TRANSLINE_PARAMETER status to a PCB Calculation status.
void setProperty(enum PRMS_ID aPrmId, double aValue)
void setErrorLevel(PRMS_ID, char)
@function setErrorLevel
#define UNIT_MICRON
@ SIGMA_PRM
Definition transline.h:71
@ SKIN_DEPTH_PRM
Definition transline.h:72
@ FREQUENCY_PRM
Definition transline.h:53
@ T_PRM
Definition transline.h:48
@ MURC_PRM
Definition transline.h:52
@ STRIPLINE_A_PRM
Definition transline.h:47
@ Z0_PRM
Definition transline.h:54
@ TAND_PRM
Definition transline.h:42
@ PHYS_LEN_PRM
Definition transline.h:62
@ ANG_L_PRM
Definition transline.h:57
@ EPSILONR_PRM
Definition transline.h:41
@ H_PRM
Definition transline.h:44
@ PHYS_WIDTH_PRM
Definition transline.h:58