22#include <boost/test/unit_test.hpp>
42 BOOST_CHECK_CLOSE( current, 1.4164291025677085, 1e-6 );
51 BOOST_CHECK_CLOSE( current, 1.513124408404138, 1e-6 );
63 BOOST_CHECK_GT( internal, 0.5 * external );
74 BOOST_CHECK_CLOSE( current, 2.208736063285966, 1e-6 );
81 const double width = 25.0;
82 const double thickness = 1.378;
83 const double deltaT = 30.0;
88 BOOST_CHECK_CLOSE( recovered, width, 1e-6 );
94 const double width = 25.0;
95 const double thickness = 1.378;
96 const double deltaT = 30.0;
101 BOOST_CHECK_CLOSE( recovered, width, 1e-6 );
double CurrentFromWidth(double aWidthMils, double aThicknessMils, double aDeltaT_C, bool aUseInternalLayer)
Compute the maximum current a track can carry for a given temperature rise.
double WidthFromCurrent(double aCurrentA, double aThicknessMils, double aDeltaT_C, bool aUseInternalLayer)
Compute the track width required to carry a given current for a given temperature rise.
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(ExternalCurrentFromWidth)
Tests for the IPC-2152 (Brooks & Adam) track width / current calculations.