55
66# Define constants for common test data
77
8- DIFFUSIVE_KNUDSEN = np .array ([0.1 , 0. 5 , 1.0 , 5.0 , 10.0 ])
9- COULOMB_POTENTIAL_RATIO_ARRAY = np .array ([0.0 , 0. 7 , 0.9 , 1.0 , 1.1 ])
8+ DIFFUSIVE_KNUDSEN = np .array ([0.5 , 1.0 , 5.0 , 10.0 ])
9+ COULOMB_POTENTIAL_RATIO_ARRAY = np .array ([0.7 , 0.9 , 1.0 , 1.1 ])
1010
1111
1212def test_kernel_call ():
@@ -41,7 +41,7 @@ def test_hard_sphere():
4141 dimensionless_result = kernel_concrete .dimensionless (
4242 DIFFUSIVE_KNUDSEN , COULOMB_POTENTIAL_RATIO_ARRAY )
4343 expected_result = np .array (
44- [0.1096043 , 1.65971644 , 4.12694075 , 24.16690909 , 49.22484307 ])
44+ [1.65971644 , 4.12694075 , 24.16690909 , 49.22484307 ])
4545 np .testing .assert_almost_equal (
4646 dimensionless_result , expected_result , decimal = 4 )
4747
@@ -56,7 +56,7 @@ def test_coulomb_dyachkov2007():
5656 dimensionless_result = kernel_concrete .dimensionless (
5757 DIFFUSIVE_KNUDSEN , COULOMB_POTENTIAL_RATIO_ARRAY )
5858 expected_result = np .array (
59- [0.10047769 , 1.73703563 , 4.60921277 , 26.22159795 , 51.92102133 ])
59+ [1.73703563 , 4.60921277 , 26.22159795 , 51.92102133 ])
6060 np .testing .assert_almost_equal (
6161 dimensionless_result , expected_result , decimal = 4 )
6262
@@ -71,7 +71,7 @@ def test_coulomb_gatti2008():
7171 dimensionless_result = kernel_concrete .dimensionless (
7272 DIFFUSIVE_KNUDSEN , COULOMB_POTENTIAL_RATIO_ARRAY )
7373 expected_result = np .array (
74- [0.50132565 , 2.00132915 , 5.10865767 , 26.42422258 , 52.43789491 ])
74+ [2.00132915 , 5.10865767 , 26.42422258 , 52.43789491 ])
7575 np .testing .assert_almost_equal (
7676 dimensionless_result , expected_result , decimal = 4 )
7777
@@ -86,7 +86,7 @@ def test_coulomb_gopalakrishnan2012():
8686 dimensionless_result = kernel_concrete .dimensionless (
8787 DIFFUSIVE_KNUDSEN , COULOMB_POTENTIAL_RATIO_ARRAY )
8888 expected_result = np .array (
89- [0.1096043 , 1.83746548 , 4.83694019 , 24.16690909 , 49.22484307 ])
89+ [1.83746548 , 4.83694019 , 24.16690909 , 49.22484307 ])
9090 np .testing .assert_almost_equal (
9191 dimensionless_result , expected_result , decimal = 4 )
9292
@@ -101,6 +101,6 @@ def test_coulomb_chahl2019():
101101 dimensionless_result = kernel_concrete .dimensionless (
102102 DIFFUSIVE_KNUDSEN , COULOMB_POTENTIAL_RATIO_ARRAY )
103103 expected_result = np .array (
104- [0.10960427 , 1.65863442 , 4.37444613 , 28.05501739 , 59.74082667 ])
104+ [1.65863442 , 4.37444613 , 28.05501739 , 59.74082667 ])
105105 np .testing .assert_almost_equal (
106106 dimensionless_result , expected_result , decimal = 4 )
0 commit comments