41void SetDefaults(
COAX& aCalc )
71 BOOST_TEST(
Z0 == 50.0, boost::test_tools::tolerance( 0.5 / 50.0 ) );
89 BOOST_TEST( fc == 35.4e9, boost::test_tools::tolerance( 1.0 / 35.4 ) );
107 BOOST_TEST(
Z0 == 50.0, boost::test_tools::tolerance( 1.0 / 50.0 ) );
132 const double alpha_d = (
M_PI * 1.0e9 * std::sqrt( 4.3 ) * 0.02 ) /
TC::C0;
135 BOOST_TEST( loss_d == expected_dB, boost::test_tools::tolerance( 0.01 ) );
163 BOOST_TEST( Z0_check == 50.0, boost::test_tools::tolerance( 0.1 / 50.0 ) );
184 const std::string teModes = calc.
GetTEModes();
185 BOOST_TEST( teModes.rfind(
"H(1,1) ", 0 ) == 0u );
Coaxial transmission line calculation (TEM mode).
std::string GetTEModes() const
Returns a UI-friendly string enumerating propagating TE_1m modes at the current frequency.
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.
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.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_CASE(AirFilled50OhmImpedance)
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.