KiCad PCB EDA Suite
|
#include <rectwaveguide.h>
Public Member Functions | |
RECTWAVEGUIDE () | |
void | setProperty (enum PRMS_ID aPrmId, double aValue) |
double | getProperty (enum PRMS_ID aPrmId) |
void | getProperties () |
@function getProperties | |
void | checkProperties () |
@function checkProperties | |
void | setResult (int, double, const char *) |
void | setResult (int, const char *) |
bool | isSelected (enum PRMS_ID aPrmId) |
void | Init () |
virtual void | synthesize () |
virtual void | calc () |
void | analyze () |
Public Attributes | |
const char * | m_Name |
KIGFX::COLOR4D | errCol = KIGFX::COLOR4D( 1, 0.63, 0.63, 1 ) |
KIGFX::COLOR4D | warnCol = KIGFX::COLOR4D( 1, 1, 0.57, 1 ) |
KIGFX::COLOR4D | okCol = KIGFX::COLOR4D( 1, 1, 1, 1 ) |
Protected Member Functions | |
bool | minimizeZ0Error1D (double *) |
@function minimizeZ0Error1D | |
double | skin_depth () |
@function skin_depth calculate skin depth | |
void | ellipke (double, double &, double &) |
double | ellipk (double) |
void | setErrorLevel (PRMS_ID, char) |
@function setErrorLevel | |
Protected Attributes | |
double | m_parameters [EXTRA_PRMS_COUNT] |
Private Member Functions | |
double | kval_square () |
double | kc_square (int, int) |
double | fc (int, int) |
double | alphac () |
double | alphac_cutoff () |
double | alphad () |
void | get_rectwaveguide_sub () |
void | get_rectwaveguide_comp () |
void | get_rectwaveguide_phys () |
void | get_rectwaveguide_elec () |
void | show_results () override |
Shows results. | |
void | calcAnalyze () override |
Computation for analysis. | |
void | calcSynthesize () override |
Computation for synthesis. | |
void | showAnalyze () override |
Shows synthesis results and checks for errors / warnings. | |
void | showSynthesize () override |
Shows analysis results and checks for errors / warnings. | |
Private Attributes | |
double | mur |
double | a |
double | b |
double | l |
double | Z0 |
double | Z0EH |
double | mur_eff |
double | atten_dielectric |
double | atten_cond |
double | fc10 |
Definition at line 33 of file rectwaveguide.h.
RECTWAVEGUIDE::RECTWAVEGUIDE | ( | ) |
Definition at line 31 of file rectwaveguide.cpp.
References TRANSLINE::Init(), and TRANSLINE::m_Name.
|
private |
Definition at line 88 of file rectwaveguide.cpp.
References a, b, fc(), FREQUENCY_PRM, TRANSLINE::m_parameters, MU0, MURC_PRM, PHYS_A_PRM, PHYS_B_PRM, SIGMA_PRM, and ZF0.
Referenced by calcAnalyze(), and calcSynthesize().
|
private |
Definition at line 161 of file rectwaveguide.cpp.
References kc_square(), and kval_square().
Referenced by calcAnalyze(), and calcSynthesize().
|
private |
Definition at line 174 of file rectwaveguide.cpp.
References kc_square(), kval_square(), TRANSLINE::m_parameters, and TAND_PRM.
Referenced by calcAnalyze(), and calcSynthesize().
|
inherited |
Definition at line 208 of file transline.cpp.
References TRANSLINE::calcAnalyze(), TRANSLINE::checkProperties(), TRANSLINE::getProperties(), TRANSLINE::show_results(), and TRANSLINE::showAnalyze().
Referenced by PANEL_TRANSLINE::OnTranslineAnalyse().
|
inlinevirtualinherited |
Definition at line 97 of file transline.h.
|
overrideprivatevirtual |
Computation for analysis.
Reimplemented from TRANSLINE.
Definition at line 243 of file rectwaveguide.cpp.
References alphac(), alphac_cutoff(), alphad(), ANG_L_PRM, EPSILON_EFF_PRM, EPSILONR_PRM, fc(), FREQUENCY_PRM, kc_square(), kval_square(), LOSS_CONDUCTOR_PRM, LOSS_DIELECTRIC_PRM, TRANSLINE::m_parameters, MUR_PRM, PHYS_LEN_PRM, Z0_PRM, and ZF0.
|
overrideprivatevirtual |
Computation for synthesis.
Reimplemented from TRANSLINE.
Definition at line 286 of file rectwaveguide.cpp.
References alphac(), alphac_cutoff(), alphad(), ANG_L_PRM, C0, EPSILON_EFF_PRM, EPSILONR_PRM, fc(), FREQUENCY_PRM, kc_square(), kval_square(), LOSS_CONDUCTOR_PRM, LOSS_DIELECTRIC_PRM, TRANSLINE::m_parameters, MUR_PRM, PHYS_A_PRM, PHYS_LEN_PRM, Z0_PRM, and ZF0.
|
inherited |
@function checkProperties
Checks the input parameters (ie: negative length). Does not check for incompatibility between values as this depends on the line shape.
Definition at line 166 of file transline.cpp.
References EPSILONR_PRM, FREQUENCY_PRM, H_PRM, H_T_PRM, TRANSLINE::m_parameters, MUR_PRM, MURC_PRM, RHO_PRM, TRANSLINE::setErrorLevel(), STRIPLINE_A_PRM, TAND_PRM, TRANSLINE_WARNING, TWISTEDPAIR_EPSILONR_ENV_PRM, and TWISTEDPAIR_TWIST_PRM.
Referenced by TRANSLINE::analyze(), and TRANSLINE::synthesize().
|
protectedinherited |
Definition at line 321 of file transline.cpp.
References TRANSLINE::ellipke().
Referenced by COPLANAR::calcAnalyze().
|
protectedinherited |
Definition at line 256 of file transline.cpp.
References INFINITY, M_PI_2, and NR_EPSI.
Referenced by TRANSLINE::ellipk().
|
private |
Definition at line 77 of file rectwaveguide.cpp.
References C0, EPSILONR_PRM, kc_square(), TRANSLINE::m_parameters, and MUR_PRM.
Referenced by alphac(), calcAnalyze(), calcSynthesize(), and show_results().
|
private |
Definition at line 208 of file rectwaveguide.cpp.
References FREQUENCY_PRM, TRANSLINE::getProperty(), and TRANSLINE::m_parameters.
|
private |
Definition at line 219 of file rectwaveguide.cpp.
References ANG_L_PRM, TRANSLINE::getProperty(), TRANSLINE::m_parameters, and Z0_PRM.
|
private |
Definition at line 231 of file rectwaveguide.cpp.
References TRANSLINE::getProperty(), TRANSLINE::m_parameters, PHYS_A_PRM, PHYS_B_PRM, and PHYS_LEN_PRM.
|
private |
Definition at line 193 of file rectwaveguide.cpp.
References EPSILONR_PRM, TRANSLINE::getProperty(), TRANSLINE::m_parameters, MUR_PRM, MURC_PRM, RHO_PRM, SIGMA_PRM, and TAND_PRM.
|
inherited |
@function getProperties
Get all properties from the UI. Computes some extra ones.
Definition at line 147 of file transline.cpp.
References DUMMY_PRM, EPSILON_EFF_PRM, TRANSLINE::getProperty(), TRANSLINE::m_parameters, RHO_PRM, TRANSLINE::setErrorLevel(), SIGMA_PRM, TRANSLINE::skin_depth(), SKIN_DEPTH_PRM, and TRANSLINE_OK.
Referenced by TRANSLINE::analyze(), and TRANSLINE::synthesize().
|
inherited |
Definition at line 137 of file transline.cpp.
References GetPropertyInDialog().
Referenced by get_rectwaveguide_comp(), get_rectwaveguide_elec(), get_rectwaveguide_phys(), get_rectwaveguide_sub(), and TRANSLINE::getProperties().
|
inherited |
Definition at line 87 of file transline.cpp.
References KIGFX::COLOR4D::b, EXTRA_PRMS_COUNT, KIGFX::COLOR4D::g, TRANSLINE::m_parameters, TRANSLINE::okCol, and KIGFX::COLOR4D::r.
Referenced by C_MICROSTRIP::C_MICROSTRIP(), COAX::COAX(), COPLANAR::COPLANAR(), MICROSTRIP::MICROSTRIP(), RECTWAVEGUIDE(), STRIPLINE::STRIPLINE(), TRANSLINE::TRANSLINE(), and TWISTEDPAIR::TWISTEDPAIR().
|
inherited |
Definition at line 116 of file transline.cpp.
References IsSelectedInDialog().
Referenced by COAX::calcSynthesize(), COPLANAR::calcSynthesize(), TWISTEDPAIR::calcSynthesize(), COAX::showSynthesize(), COPLANAR::showSynthesize(), showSynthesize(), and TWISTEDPAIR::showSynthesize().
|
private |
Definition at line 66 of file rectwaveguide.cpp.
References TRANSLINE::m_parameters, PHYS_A_PRM, and PHYS_B_PRM.
Referenced by alphac_cutoff(), alphad(), calcAnalyze(), calcSynthesize(), fc(), and show_results().
|
private |
Definition at line 51 of file rectwaveguide.cpp.
References C0, EPSILONR_PRM, FREQUENCY_PRM, TRANSLINE::m_parameters, and MUR_PRM.
Referenced by alphac_cutoff(), alphad(), calcAnalyze(), calcSynthesize(), and show_results().
|
protectedinherited |
@function minimizeZ0Error1D
Tries to find a parameter that minimizes the error ( on Z0 ). This function only works with a single parameter. Calls calcAnalyze several times until the error is acceptable. While the error is unnacceptable, changes slightly the parameter.
This function does not change Z0 / Angl_L.
avar | Parameter to synthesize |
Definition at line 346 of file transline.cpp.
References ANG_L_PRM, C0, TRANSLINE::calcAnalyze(), EPSILON_EFF_PRM, FREQUENCY_PRM, TRANSLINE::m_parameters, MAX_ERROR, PHYS_LEN_PRM, and Z0_PRM.
Referenced by COPLANAR::calcSynthesize(), MICROSTRIP::calcSynthesize(), STRIPLINE::calcSynthesize(), and TWISTEDPAIR::calcSynthesize().
|
protectedinherited |
@function setErrorLevel
set an error / warning level for a given parameter.
aP | parameter |
aErrorLevel | Error level |
Definition at line 432 of file transline.cpp.
References TRANSLINE::errCol, TRANSLINE::okCol, SetPropertyBgColorInDialog(), TRANSLINE_ERROR, TRANSLINE_WARNING, and TRANSLINE::warnCol.
Referenced by TRANSLINE::checkProperties(), TRANSLINE::getProperties(), C_MICROSTRIP::showAnalyze(), COAX::showAnalyze(), COPLANAR::showAnalyze(), MICROSTRIP::showAnalyze(), showAnalyze(), STRIPLINE::showAnalyze(), TWISTEDPAIR::showAnalyze(), C_MICROSTRIP::showSynthesize(), COAX::showSynthesize(), COPLANAR::showSynthesize(), MICROSTRIP::showSynthesize(), showSynthesize(), STRIPLINE::showSynthesize(), and TWISTEDPAIR::showSynthesize().
|
inherited |
Definition at line 106 of file transline.cpp.
References SetPropertyInDialog().
Referenced by MICROSTRIP::show_results(), C_MICROSTRIP::showAnalyze(), COAX::showAnalyze(), COPLANAR::showAnalyze(), MICROSTRIP::showAnalyze(), showAnalyze(), STRIPLINE::showAnalyze(), TWISTEDPAIR::showAnalyze(), C_MICROSTRIP::showSynthesize(), COAX::showSynthesize(), COPLANAR::showSynthesize(), MICROSTRIP::showSynthesize(), showSynthesize(), STRIPLINE::showSynthesize(), and TWISTEDPAIR::showSynthesize().
|
inherited |
Definition at line 124 of file transline.cpp.
References SetResultInDialog(), and text.
|
inherited |
Definition at line 130 of file transline.cpp.
References SetResultInDialog(), and text.
Referenced by C_MICROSTRIP::show_results(), COAX::show_results(), COPLANAR::show_results(), MICROSTRIP::show_results(), show_results(), STRIPLINE::show_results(), and TWISTEDPAIR::show_results().
|
overrideprivatevirtual |
Shows results.
Reimplemented from TRANSLINE.
Definition at line 373 of file rectwaveguide.cpp.
References EPSILON_EFF_PRM, fc(), FREQUENCY_PRM, kc_square(), kval_square(), LOSS_CONDUCTOR_PRM, LOSS_DIELECTRIC_PRM, TRANSLINE::m_parameters, MAXSTRLEN, TRANSLINE::setResult(), text, Z0EH, and ZF0.
|
overrideprivatevirtual |
Shows synthesis results and checks for errors / warnings.
Reimplemented from TRANSLINE.
Definition at line 351 of file rectwaveguide.cpp.
References ANG_L_PRM, TRANSLINE::m_parameters, PHYS_A_PRM, PHYS_B_PRM, TRANSLINE::setErrorLevel(), TRANSLINE::setProperty(), TRANSLINE_ERROR, TRANSLINE_WARNING, and Z0_PRM.
|
overrideprivatevirtual |
Shows analysis results and checks for errors / warnings.
Reimplemented from TRANSLINE.
Definition at line 325 of file rectwaveguide.cpp.
References ANG_L_PRM, TRANSLINE::isSelected(), TRANSLINE::m_parameters, PHYS_A_PRM, PHYS_B_PRM, PHYS_LEN_PRM, TRANSLINE::setErrorLevel(), TRANSLINE::setProperty(), TRANSLINE_ERROR, TRANSLINE_WARNING, and Z0_PRM.
|
protectedinherited |
@function skin_depth calculate skin depth
Definition at line 234 of file transline.cpp.
References FREQUENCY_PRM, TRANSLINE::m_parameters, MU0, MURC_PRM, and SIGMA_PRM.
Referenced by C_MICROSTRIP::attenuation(), MICROSTRIP::attenuation(), COPLANAR::calcAnalyze(), STRIPLINE::calcAnalyze(), and TRANSLINE::getProperties().
|
virtualinherited |
Definition at line 217 of file transline.cpp.
References TRANSLINE::calcSynthesize(), TRANSLINE::checkProperties(), TRANSLINE::getProperties(), TRANSLINE::show_results(), and TRANSLINE::showSynthesize().
Referenced by PANEL_TRANSLINE::OnTranslineSynthetize().
|
private |
Definition at line 41 of file rectwaveguide.h.
Referenced by alphac().
|
private |
Definition at line 48 of file rectwaveguide.h.
|
private |
Definition at line 47 of file rectwaveguide.h.
|
private |
Definition at line 42 of file rectwaveguide.h.
Referenced by alphac().
|
inherited |
Definition at line 126 of file transline.h.
Referenced by TRANSLINE::setErrorLevel().
|
private |
Definition at line 49 of file rectwaveguide.h.
|
private |
Definition at line 43 of file rectwaveguide.h.
|
inherited |
Definition at line 84 of file transline.h.
Referenced by C_MICROSTRIP::C_MICROSTRIP(), COAX::COAX(), COPLANAR::COPLANAR(), GROUNDEDCOPLANAR::GROUNDEDCOPLANAR(), MICROSTRIP::MICROSTRIP(), TRANSLINE_IDENT::ReadConfig(), RECTWAVEGUIDE(), STRIPLINE::STRIPLINE(), TRANSLINE::TRANSLINE(), TWISTEDPAIR::TWISTEDPAIR(), and TRANSLINE_IDENT::WriteConfig().
|
protectedinherited |
Definition at line 131 of file transline.h.
Referenced by alphac(), COAX::alphac_coax(), alphad(), COAX::alphad_coax(), C_MICROSTRIP::attenuation(), MICROSTRIP::attenuation(), COAX::calcAnalyze(), COPLANAR::calcAnalyze(), calcAnalyze(), STRIPLINE::calcAnalyze(), TWISTEDPAIR::calcAnalyze(), C_MICROSTRIP::calcSynthesize(), COAX::calcSynthesize(), COPLANAR::calcSynthesize(), MICROSTRIP::calcSynthesize(), calcSynthesize(), STRIPLINE::calcSynthesize(), TWISTEDPAIR::calcSynthesize(), TRANSLINE::checkProperties(), C_MICROSTRIP::compute_single_line(), C_MICROSTRIP::conductor_losses(), MICROSTRIP::conductor_losses(), C_MICROSTRIP::delta_u_thickness(), C_MICROSTRIP::dielectric_losses(), MICROSTRIP::dielectric_losses(), MICROSTRIP::dispersion(), C_MICROSTRIP::er_eff_freq(), C_MICROSTRIP::er_eff_static(), fc(), get_rectwaveguide_comp(), get_rectwaveguide_elec(), get_rectwaveguide_phys(), get_rectwaveguide_sub(), TRANSLINE::getProperties(), TRANSLINE::Init(), kc_square(), kval_square(), C_MICROSTRIP::line_angle(), MICROSTRIP::line_angle(), STRIPLINE::lineImpedance(), MICROSTRIP::microstrip_Z0(), TRANSLINE::minimizeZ0Error1D(), MICROSTRIP::mur_eff_ms(), C_MICROSTRIP::show_results(), COAX::show_results(), COPLANAR::show_results(), MICROSTRIP::show_results(), show_results(), STRIPLINE::show_results(), TWISTEDPAIR::show_results(), C_MICROSTRIP::showAnalyze(), COAX::showAnalyze(), COPLANAR::showAnalyze(), MICROSTRIP::showAnalyze(), showAnalyze(), STRIPLINE::showAnalyze(), TWISTEDPAIR::showAnalyze(), C_MICROSTRIP::showSynthesize(), COAX::showSynthesize(), COPLANAR::showSynthesize(), MICROSTRIP::showSynthesize(), showSynthesize(), STRIPLINE::showSynthesize(), TWISTEDPAIR::showSynthesize(), TRANSLINE::skin_depth(), C_MICROSTRIP::syn_fun(), C_MICROSTRIP::synth_width(), MICROSTRIP::synth_width(), TRANSLINE::TRANSLINE(), C_MICROSTRIP::Z0_dispersion(), and C_MICROSTRIP::Z0_even_odd().
|
private |
Definition at line 40 of file rectwaveguide.h.
|
private |
Definition at line 46 of file rectwaveguide.h.
|
inherited |
Definition at line 128 of file transline.h.
Referenced by TRANSLINE::Init(), and TRANSLINE::setErrorLevel().
|
inherited |
Definition at line 127 of file transline.h.
Referenced by TRANSLINE::setErrorLevel().
|
private |
Definition at line 44 of file rectwaveguide.h.
|
private |
Definition at line 45 of file rectwaveguide.h.
Referenced by show_results().