74 BOOST_TEST( fc == 6.557e9, boost::test_tools::tolerance( 0.005 ) );
76 const double Z0 = results.at(
TCP::Z0).first;
77 BOOST_TEST(
Z0 == 500.0, boost::test_tools::tolerance( 20.0 / 500.0 ) );
83 BOOST_TEST( loss_c == 0.011, boost::test_tools::tolerance( 0.30 ) );
104 const std::string teModes = calc.
GetTEModes();
105 BOOST_TEST( teModes.rfind(
"H(1,0) ", 0 ) == 0u );
130 BOOST_TEST( loss_d_hi == 2.0 * loss_d_lo, boost::test_tools::tolerance( 1e-9 ) );
153 BOOST_TEST( Z0_check == 500.0, boost::test_tools::tolerance( 1.0 / 500.0 ) );
172 const std::string teModes = calc.
GetTEModes();
173 const std::string tmModes = calc.
GetTMModes();
177 BOOST_TEST( teModes.find(
"H(1,0)" ) != std::string::npos );
178 BOOST_TEST( teModes.find(
"H(2,0)" ) != std::string::npos );
179 BOOST_TEST( teModes.find(
"H(0,1)" ) != std::string::npos );
180 BOOST_TEST( teModes.find(
"H(1,1)" ) != std::string::npos );
181 BOOST_TEST( tmModes.find(
"E(1,1)" ) != std::string::npos );
Rectangular waveguide calculation.
std::string GetTEModes() const
Returns a UI-friendly string enumerating propagating TE_mn modes at the current frequency.
bool Synthesize(SYNTHESIZE_OPTS aOpts) override
Synthesize the broad dimension a from a target Z0. Only PHYS_WIDTH is a valid target.
std::string GetTMModes() const
Returns a UI-friendly string enumerating propagating TM_mn modes at the current frequency.
void Analyse() override
Analyse waveguide geometry to produce Z0, electrical length, loss, and mode cutoffs.
void SetSynthesizeTarget(TRANSLINE_PARAMETERS aTarget) override
Choose which geometry parameter will be solved for during synthesis.
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_TEST(contains==c.ExpectedContains)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(WR90AirFilledReference)
TRANSLINE_PARAMETERS
All possible parameters used (as inputs or outputs) by the transmission line calculations.