KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_track_width_calculations.cpp File Reference
#include <cmath>
#include <boost/test/unit_test.hpp>
#include <track_width_calculations.h>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (ExternalCurrentFromWidth)
 Tests for the IPC-2152 (Brooks & Adam) track width / current calculations.
 
 BOOST_AUTO_TEST_CASE (InternalCurrentFromWidth)
 
 BOOST_AUTO_TEST_CASE (InternalNotHalvedRelativeToExternal)
 
 BOOST_AUTO_TEST_CASE (InternalCopperWeightSelection)
 
 BOOST_AUTO_TEST_CASE (RoundTripExternal)
 
 BOOST_AUTO_TEST_CASE (RoundTripInternal)
 
 BOOST_AUTO_TEST_CASE (Monotonicity)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

BOOST_AUTO_TEST_CASE ( ExternalCurrentFromWidth )

Tests for the IPC-2152 (Brooks & Adam) track width / current calculations.

Reference values are computed directly from the published fit dT = K * I^a * W^b * Th^c (Brooks & Adam, "Trace Currents and Temperatures Revisited," 2015, Table 3-1) with W and Th in mils and I in amperes.

Definition at line 37 of file test_track_width_calculations.cpp.

References BOOST_AUTO_TEST_CASE(), and TRACK_WIDTH_CALCULATIONS::CurrentFromWidth().

◆ BOOST_AUTO_TEST_CASE() [2/7]

BOOST_AUTO_TEST_CASE ( InternalCopperWeightSelection )

◆ BOOST_AUTO_TEST_CASE() [3/7]

BOOST_AUTO_TEST_CASE ( InternalCurrentFromWidth )

◆ BOOST_AUTO_TEST_CASE() [4/7]

BOOST_AUTO_TEST_CASE ( InternalNotHalvedRelativeToExternal )

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( Monotonicity )

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( RoundTripExternal )

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( RoundTripInternal )