77 BOOST_TEST(
Z0 == 72.30, boost::test_tools::tolerance( 0.02 ) );
87 SetDefaults( calc_cpw );
93 SetDefaults( calc_cbcpw );
124 const double epsr = 4.4;
125 const double tand = 0.02;
126 const double freq = 1.0e9;
128 const double ad_factor = ( epsr / ( epsr - 1.0 ) ) * tand *
M_PI /
TC::C0;
129 const double expected_dB =
TC::LOG2DB * len * ad_factor * freq * ( eps_eff - 1.0 ) / std::sqrt( eps_eff );
131 BOOST_TEST( loss_d == expected_dB, boost::test_tools::tolerance( 0.05 ) );
177 BOOST_TEST( Z0_cpw == Z0_cpw_again, boost::test_tools::tolerance( 1.0e-9 ) );
Coplanar waveguide (CPW) and conductor-backed coplanar waveguide (CBCPW) calculation.
void SetSynthesizeTarget(TRANSLINE_PARAMETERS aTarget) override
Choose which geometry parameter will be solved for during synthesis.
void Analyse() override
Analyse trace geometry to produce Z0, electrical length, effective permittivity, and losses.
bool Synthesize(SYNTHESIZE_OPTS aOpts) override
Synthesize the unknown geometry parameter to match the Z0 target.
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.
constexpr double UNIT_MICRON
EDA_ANGLE abs(const EDA_ANGLE &aAngle)
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(UngroundedImpedance)
BOOST_TEST(contains==c.ExpectedContains)
BOOST_AUTO_TEST_SUITE_END()
TRANSLINE_PARAMETERS
All possible parameters used (as inputs or outputs) by the transmission line calculations.