47 aCalc.SetParameter(
TCP::H, 200.0e-6 );
48 aCalc.SetParameter(
TCP::H_T, 1.0e12 );
49 aCalc.SetParameter(
TCP::T, 35.0e-6 );
84 const double shift = std::fabs( z0_ds - z0_const );
116 <<
" dB, atten_d_ds="
117 << atten_d_ds <<
" dB" );
122 const double ratio = atten_d_ds / atten_d_const;
163 <<
" loss_d_const=" << loss_d_const
164 <<
" loss_d_ds=" << loss_d_ds );
168 const double z0_ratio_expected = std::sqrt( 4.4 / 4.270924 );
169 BOOST_TEST( z0_ds / z0_const == z0_ratio_expected, boost::test_tools::tolerance( 0.002 ) );
173 const double loss_ratio_expected = std::sqrt( 4.270924 / 4.4 ) * ( 0.020486 / 0.02 );
174 BOOST_TEST( loss_d_ds / loss_d_const == loss_ratio_expected,
175 boost::test_tools::tolerance( 0.005 ) );
189 auto configure = [](
COAX& calc )
197 calc.SetParameter(
TCP::Z0, 50.0 );
203 configure( calcConst );
222 <<
" Dout_ds=" << dOut_ds
223 <<
" len_const=" << len_const
224 <<
" len_ds=" << len_ds );
254 calc.SetParameter(
TCP::Z0, 400.0 );
260 configure( calcConst );
277 <<
" len_const=" << len_const
278 <<
" len_ds=" << len_ds );
Coaxial transmission line calculation (TEM mode).
void SetSynthesizeTarget(TRANSLINE_PARAMETERS aTarget) override
Choose which geometry parameter will be solved for during synthesis.
bool Synthesize(SYNTHESIZE_OPTS aOpts) override
Synthesize the cable geometry to match the given Z0 target.
void Analyse() override
Analyse cable geometry parameters to output Z0, electrical length, losses and cutoffs.
void Analyse() override
Analyse track geometry parameters to output Z0 and Ang_L.
Rectangular waveguide calculation.
bool Synthesize(SYNTHESIZE_OPTS aOpts) override
Synthesize the broad dimension a from a target Z0. Only PHYS_WIDTH is a valid 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.
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
static void configureFR4Microstrip(MICROSTRIP &aCalc)
BOOST_AUTO_TEST_CASE(MicrostripFR4Z0Shift)
BOOST_TEST(contains==c.ExpectedContains)
BOOST_AUTO_TEST_SUITE_END()
BOOST_TEST_MESSAGE("\n=== Real-World Polygon PIP Benchmark ===\n"<< formatTable(table))
TRANSLINE_PARAMETERS
All possible parameters used (as inputs or outputs) by the transmission line calculations.