78 const double Z0 = results.at(
TCP::Z0).first;
81 BOOST_TEST(
Z0 == 131.16, boost::test_tools::tolerance( 0.01 ) );
84 BOOST_TEST( epsEff == 1.3947, boost::test_tools::tolerance( 0.01 ) );
102 const double Din = 0.511e-3;
103 const double Dout = 1.000e-3;
115 SetCat5eLike( calc );
120 BOOST_TEST( loss_zero == 0.0, boost::test_tools::tolerance( 1e-12 ) );
132 BOOST_TEST( loss_hi == 2.0 * loss_lo, boost::test_tools::tolerance( 1e-9 ) );
140 SetCat5eLike( calc );
144 constexpr double Z0_target = 100.0;
159 BOOST_TEST( Z0_check == Z0_target, boost::test_tools::tolerance( 1.0 / Z0_target ) );
169 SetCat5eLike( calc );
double GetParameter(const TRANSLINE_PARAMETERS aParam) const
Gets the given calculation property.
void SetParameter(const TRANSLINE_PARAMETERS aParam, const double aValue)
Sets the given calculation property.
std::unordered_map< TRANSLINE_PARAMETERS, std::pair< double, TRANSLINE_STATUS > > & GetAnalysisResults()
Gets the output parameters following analysis.
Twisted-pair transmission line calculation.
bool Synthesize(SYNTHESIZE_OPTS aOpts) override
Synthesize Din or Dout to hit the target Z0. Length is recomputed from ANG_L.
void SetSynthesizeTarget(TRANSLINE_PARAMETERS aTarget) override
Choose which geometry parameter will be solved for during synthesis.
void Analyse() override
Analyse pair geometry to output Z0, electrical length, losses, skin depth, εeff.
constexpr double UNIT_MHZ
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_TEST(contains==c.ExpectedContains)
BOOST_AUTO_TEST_SUITE_END()
VECTOR3I expected(15, 30, 45)
BOOST_AUTO_TEST_CASE(Cat5eReferenceAnalysis)
TRANSLINE_PARAMETERS
All possible parameters used (as inputs or outputs) by the transmission line calculations.
@ TWISTEDPAIR_EPSILONR_ENV