KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SMITH_MATH Namespace Reference

Functions

bool GammaToImpedance (double aRe, double aIm, double aZ0, double &aResistance, double &aReactance)
 Impedance of a reflection coefficient, z = z0 ( 1 + gamma ) / ( 1 - gamma ), false at the gamma = 1 singularity.
 
double VSWR (double aGammaMag)
 
double ReturnLoss (double aGammaMag)
 
double SeriesInductance (double aReactance, double aFreq)
 Series equivalent element of a reactance at one frequency, henries for aReactance > 0, farads for aReactance < 0.
 
double SeriesCapacitance (double aReactance, double aFreq)
 
wxRealPoint ZoomAboutPoint (const SMITH_VIEW &aView, const wxPoint &aPos, double aNewZoom)
 Pan that keeps the gamma point under aPos fixed when the view zooms to aNewZoom.
 
bool ParseSParamPorts (const wxString &aVectorName, long *aResponsePort, long *aDrivePort)
 S-parameter vectors are named S_<responsePort>_<drivePort>.
 

Function Documentation

◆ GammaToImpedance()

bool SMITH_MATH::GammaToImpedance ( double aRe,
double aIm,
double aZ0,
double & aResistance,
double & aReactance )
inline

Impedance of a reflection coefficient, z = z0 ( 1 + gamma ) / ( 1 - gamma ), false at the gamma = 1 singularity.

Definition at line 65 of file smith_math.h.

Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SIMULATOR_FRAME_UI::fillSmithCursorRow(), and SMITH_CURSOR::Plot().

◆ ParseSParamPorts()

bool SMITH_MATH::ParseSParamPorts ( const wxString & aVectorName,
long * aResponsePort,
long * aDrivePort )
inline

S-parameter vectors are named S_<responsePort>_<drivePort>.

Definition at line 117 of file smith_math.h.

Referenced by BOOST_AUTO_TEST_CASE(), SIMULATOR_FRAME_UI::getSmithPortImpedance(), and SIMULATOR_FRAME_UI::ToggleSmithChart().

◆ ReturnLoss()

double SMITH_MATH::ReturnLoss ( double aGammaMag)
inline

◆ SeriesCapacitance()

double SMITH_MATH::SeriesCapacitance ( double aReactance,
double aFreq )
inline

Definition at line 101 of file smith_math.h.

References M_PI.

Referenced by BOOST_AUTO_TEST_CASE(), and SMITH_CURSOR::Plot().

◆ SeriesInductance()

double SMITH_MATH::SeriesInductance ( double aReactance,
double aFreq )
inline

Series equivalent element of a reactance at one frequency, henries for aReactance > 0, farads for aReactance < 0.

Definition at line 96 of file smith_math.h.

References M_PI.

Referenced by BOOST_AUTO_TEST_CASE(), and SMITH_CURSOR::Plot().

◆ VSWR()

double SMITH_MATH::VSWR ( double aGammaMag)
inline

◆ ZoomAboutPoint()

wxRealPoint SMITH_MATH::ZoomAboutPoint ( const SMITH_VIEW & aView,
const wxPoint & aPos,
double aNewZoom )
inline

Pan that keeps the gamma point under aPos fixed when the view zooms to aNewZoom.

Definition at line 107 of file smith_math.h.

References SMITH_VIEW::center, SMITH_VIEW::radius, SMITH_VIEW::ToGamma(), and SMITH_VIEW::zoom.

Referenced by BOOST_AUTO_TEST_CASE(), and SIM_VIEW::SmithZoomAt().