tofu.tests.tests01_geom package¶
Subpackages¶
- tofu.tests.tests01_geom.test_03_core_data package
- Submodules
- tofu.tests.tests01_geom.test_03_core_data.WEST_CoilPF_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_Baffle_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_BumperInner_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_BumperOuter_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_DivLowGC_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_DivLowITER_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_DivUp_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_IC1_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_IC2_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_IC3_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_LH1_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_LH2_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PFC_Ripple_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_PlasmaDomain_Standard_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_Ves_VesIn_Notes module
- tofu.tests.tests01_geom.test_03_core_data.WEST_Ves_VesOut_Notes module
Submodules¶
tofu.tests.tests01_geom.sa_prueba module¶
tofu.tests.tests01_geom.test_01_GG module¶
This module contains tests for tofu.geom in its structured version
- tofu.tests.tests01_geom.test_01_GG.test04_Ves_isInside(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]))[source]¶
- tofu.tests.tests01_geom.test_01_GG.test09_Ves_Smesh_Tor(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]))[source]¶
- tofu.tests.tests01_geom.test_01_GG.test10_Ves_Smesh_Tor_PhiMinMax(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]), plot=True)[source]¶
- tofu.tests.tests01_geom.test_01_GG.test11_Ves_Smesh_TorStruct(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]), plot=True)[source]¶
- tofu.tests.tests01_geom.test_01_GG.test12_Ves_Smesh_Lin(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]))[source]¶
tofu.tests.tests01_geom.test_02_compute module¶
This module contains tests for tofu.geom in its structured version
tofu.tests.tests01_geom.test_03_core module¶
This module contains tests for tofu.geom in its structured version
- class tofu.tests.tests01_geom.test_03_core.Test01_Struct[source]¶
Bases:
object
Class for testing the Struct clas and its methods
In tofu, a Struct is a 3D object defined by a 2D contour in a cross-section It has a - toroidal or linear - extension (None if axisymmetric) It has methods for plotting, computing key parameters…
- classmethod setup_class(dobj={'Lin': {'CoilCS': {'V0': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilCS V0Lin TFG_CoilCS_ExpWEST_V0Lin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0)}, 'CoilPF': {'Bl': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF BlLin TFG_CoilPF_ExpWEST_BlLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'Bu': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF BuLin TFG_CoilPF_ExpWEST_BuLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'DivLow1': class Name SaveName nP noccur nturns active superconducting color ------ ---------- ----------------------------------------------------------- -- ------ ------ ------ --------------- ------------------------ CoilPF DivLow1Lin TFG_CoilPF_ExpWEST_DivLow1Lin_sh00000_Vers1.5.0-3-g96c1c10c 10 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'DivLow2': class Name SaveName nP noccur nturns active superconducting color ------ ---------- ----------------------------------------------------------- -- ------ ------ ------ --------------- ------------------------ CoilPF DivLow2Lin TFG_CoilPF_ExpWEST_DivLow2Lin_sh00000_Vers1.5.0-3-g96c1c10c 10 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'DivUp1': class Name SaveName nP noccur nturns active superconducting color ------ --------- ---------------------------------------------------------- -- ------ ------ ------ --------------- ------------------------ CoilPF DivUp1Lin TFG_CoilPF_ExpWEST_DivUp1Lin_sh00000_Vers1.5.0-3-g96c1c10c 10 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'DivUp2': class Name SaveName nP noccur nturns active superconducting color ------ --------- ---------------------------------------------------------- -- ------ ------ ------ --------------- ------------------------ CoilPF DivUp2Lin TFG_CoilPF_ExpWEST_DivUp2Lin_sh00000_Vers1.5.0-3-g96c1c10c 10 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'Dl': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF DlLin TFG_CoilPF_ExpWEST_DlLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'Du': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF DuLin TFG_CoilPF_ExpWEST_DuLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'El': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF ElLin TFG_CoilPF_ExpWEST_ElLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'Eu': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF EuLin TFG_CoilPF_ExpWEST_EuLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'Fl': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF FlLin TFG_CoilPF_ExpWEST_FlLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0), 'Fu': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF FuLin TFG_CoilPF_ExpWEST_FuLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None None None ( 1.0, 0.0, 0.0, 1.0)}, 'PFC': {'Baffle': class Name SaveName nP noccur color ----- --------- ------------------------------------------------------- -- ------ ------------------------ PFC BaffleLin TFG_PFC_ExpWEST_BaffleLin_sh00000_Vers1.5.0-3-g96c1c10c 13 1 ( 0.8, 0.8, 0.8, 0.8), 'BumperInner': class Name SaveName nP noccur color ----- -------------- ------------------------------------------------------------ -- ------ ------------------------ PFC BumperInnerLin TFG_PFC_ExpWEST_BumperInnerLin_sh00000_Vers1.5.0-3-g96c1c10c 15 6 ( 0.8, 0.8, 0.8, 0.8), 'BumperOuter': class Name SaveName nP noccur color ----- -------------- ------------------------------------------------------------ -- ------ ------------------------ PFC BumperOuterLin TFG_PFC_ExpWEST_BumperOuterLin_sh00000_Vers1.5.0-3-g96c1c10c 16 1 ( 0.8, 0.8, 0.8, 0.8), 'DivLowGC': class Name SaveName nP noccur color ----- ----------- --------------------------------------------------------- -- ------ ------------------------ PFC DivLowGCLin TFG_PFC_ExpWEST_DivLowGCLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 ( 0.8, 0.8, 0.8, 0.8), 'DivLowITER': class Name SaveName nP noccur color ----- ------------- ----------------------------------------------------------- -- ------ ------------------------ PFC DivLowITERLin TFG_PFC_ExpWEST_DivLowITERLin_sh00000_Vers1.5.0-3-g96c1c10c 12 1 ( 0.8, 0.8, 0.8, 0.8), 'DivUp': class Name SaveName nP noccur color ----- -------- ------------------------------------------------------ -- ------ ------------------------ PFC DivUpLin TFG_PFC_ExpWEST_DivUpLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 ( 0.8, 0.8, 0.8, 0.8), 'IC1': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC IC1Lin TFG_PFC_ExpWEST_IC1Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'IC2': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC IC2Lin TFG_PFC_ExpWEST_IC2Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'IC3': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC IC3Lin TFG_PFC_ExpWEST_IC3Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'LH1': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC LH1Lin TFG_PFC_ExpWEST_LH1Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'LH2': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC LH2Lin TFG_PFC_ExpWEST_LH2Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'Ripple': class Name SaveName nP noccur color ----- --------- ------------------------------------------------------- -- ------ ------------------------ PFC RippleLin TFG_PFC_ExpWEST_RippleLin_sh00000_Vers1.5.0-3-g96c1c10c 5 12 ( 0.8, 0.8, 0.8, 0.8)}, 'Ves': {'VesIn': class Name SaveName nP noccur color ----- -------- ------------------------------------------------------ --- ------ ------------------------ Ves VesInLin TFG_Ves_ExpWEST_VesInLin_sh00000_Vers1.5.0-3-g96c1c10c 100 1 ( 0.0, 0.0, 0.0, 1.0), 'VesOut': class Name SaveName nP noccur color ----- --------- ------------------------------------------------------- --- ------ ------------------------ Ves VesOutLin TFG_Ves_ExpWEST_VesOutLin_sh00000_Vers1.5.0-3-g96c1c10c 100 1 ( 0.0, 0.0, 0.0, 1.0)}}, 'Tor': {'CoilCS': {'V0': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilCS V0Tor TFG_CoilCS_ExpWEST_V0Tor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0)}, 'CoilPF': {'Bl': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF BlTor TFG_CoilPF_ExpWEST_BlTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'Bu': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF BuTor TFG_CoilPF_ExpWEST_BuTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'DivLow1': class Name SaveName nP noccur nturns active superconducting color ------ ---------- ----------------------------------------------------------- -- ------ ------ ------ --------------- ------------------------ CoilPF DivLow1Tor TFG_CoilPF_ExpWEST_DivLow1Tor_sh00000_Vers1.5.0-3-g96c1c10c 10 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'DivLow2': class Name SaveName nP noccur nturns active superconducting color ------ ---------- ----------------------------------------------------------- -- ------ ------ ------ --------------- ------------------------ CoilPF DivLow2Tor TFG_CoilPF_ExpWEST_DivLow2Tor_sh00000_Vers1.5.0-3-g96c1c10c 10 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'DivUp1': class Name SaveName nP noccur nturns active superconducting color ------ --------- ---------------------------------------------------------- -- ------ ------ ------ --------------- ------------------------ CoilPF DivUp1Tor TFG_CoilPF_ExpWEST_DivUp1Tor_sh00000_Vers1.5.0-3-g96c1c10c 10 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'DivUp2': class Name SaveName nP noccur nturns active superconducting color ------ --------- ---------------------------------------------------------- -- ------ ------ ------ --------------- ------------------------ CoilPF DivUp2Tor TFG_CoilPF_ExpWEST_DivUp2Tor_sh00000_Vers1.5.0-3-g96c1c10c 10 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'Dl': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF DlTor TFG_CoilPF_ExpWEST_DlTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'Du': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF DuTor TFG_CoilPF_ExpWEST_DuTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'El': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF ElTor TFG_CoilPF_ExpWEST_ElTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'Eu': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF EuTor TFG_CoilPF_ExpWEST_EuTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'Fl': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF FlTor TFG_CoilPF_ExpWEST_FlTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0), 'Fu': class Name SaveName nP noccur nturns active superconducting color ------ ----- ------------------------------------------------------ -- ------ ------ ------ --------------- ------------------------ CoilPF FuTor TFG_CoilPF_ExpWEST_FuTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None None None ( 1.0, 0.0, 0.0, 1.0)}, 'PFC': {'Baffle': class Name SaveName nP noccur color ----- --------- ------------------------------------------------------- -- ------ ------------------------ PFC BaffleTor TFG_PFC_ExpWEST_BaffleTor_sh00000_Vers1.5.0-3-g96c1c10c 13 0 ( 0.8, 0.8, 0.8, 0.8), 'BumperInner': class Name SaveName nP noccur color ----- -------------- ------------------------------------------------------------ -- ------ ------------------------ PFC BumperInnerTor TFG_PFC_ExpWEST_BumperInnerTor_sh00000_Vers1.5.0-3-g96c1c10c 15 6 ( 0.8, 0.8, 0.8, 0.8), 'BumperOuter': class Name SaveName nP noccur color ----- -------------- ------------------------------------------------------------ -- ------ ------------------------ PFC BumperOuterTor TFG_PFC_ExpWEST_BumperOuterTor_sh00000_Vers1.5.0-3-g96c1c10c 16 1 ( 0.8, 0.8, 0.8, 0.8), 'DivLowGC': class Name SaveName nP noccur color ----- ----------- --------------------------------------------------------- -- ------ ------------------------ PFC DivLowGCTor TFG_PFC_ExpWEST_DivLowGCTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 ( 0.8, 0.8, 0.8, 0.8), 'DivLowITER': class Name SaveName nP noccur color ----- ------------- ----------------------------------------------------------- -- ------ ------------------------ PFC DivLowITERTor TFG_PFC_ExpWEST_DivLowITERTor_sh00000_Vers1.5.0-3-g96c1c10c 12 0 ( 0.8, 0.8, 0.8, 0.8), 'DivUp': class Name SaveName nP noccur color ----- -------- ------------------------------------------------------ -- ------ ------------------------ PFC DivUpTor TFG_PFC_ExpWEST_DivUpTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 ( 0.8, 0.8, 0.8, 0.8), 'IC1': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC IC1Tor TFG_PFC_ExpWEST_IC1Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'IC2': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC IC2Tor TFG_PFC_ExpWEST_IC2Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'IC3': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC IC3Tor TFG_PFC_ExpWEST_IC3Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'LH1': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC LH1Tor TFG_PFC_ExpWEST_LH1Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'LH2': class Name SaveName nP noccur color ----- ------ ---------------------------------------------------- -- ------ ------------------------ PFC LH2Tor TFG_PFC_ExpWEST_LH2Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 ( 0.8, 0.8, 0.8, 0.8), 'Ripple': class Name SaveName nP noccur color ----- --------- ------------------------------------------------------- -- ------ ------------------------ PFC RippleTor TFG_PFC_ExpWEST_RippleTor_sh00000_Vers1.5.0-3-g96c1c10c 5 12 ( 0.8, 0.8, 0.8, 0.8)}, 'Ves': {'VesIn': class Name SaveName nP noccur color ----- -------- ------------------------------------------------------ --- ------ ------------------------ Ves VesInTor TFG_Ves_ExpWEST_VesInTor_sh00000_Vers1.5.0-3-g96c1c10c 100 0 ( 0.0, 0.0, 0.0, 1.0), 'VesOut': class Name SaveName nP noccur color ----- --------- ------------------------------------------------------- --- ------ ------------------------ Ves VesOutTor TFG_Ves_ExpWEST_VesOutTor_sh00000_Vers1.5.0-3-g96c1c10c 100 0 ( 0.0, 0.0, 0.0, 1.0)}}})[source]¶
- class tofu.tests.tests01_geom.test_03_core.Test02_Config[source]¶
Bases:
object
Class for testing the Config class and its methods
A Config class holds the geometrical configuration of a tokamak It holds all the structural elements constituting it It provides methods to plot, move them
- classmethod setup_class(dobj={'Lin': tot. Struct tot. occur tot. points ----------- ---------- ----------- 27 53 540 class Name SaveName nP noccur move color visible ------ -------------- ------------------------------------------------------------ --- ------ ---- ------------------------ ------- Ves VesInLin TFG_Ves_ExpWEST_VesInLin_sh00000_Vers1.5.0-3-g96c1c10c 100 1 None ( 0.0, 0.0, 0.0, 1.0) True Ves VesOutLin TFG_Ves_ExpWEST_VesOutLin_sh00000_Vers1.5.0-3-g96c1c10c 100 1 None ( 0.0, 0.0, 0.0, 1.0) True PFC BaffleLin TFG_PFC_ExpWEST_BaffleLin_sh00000_Vers1.5.0-3-g96c1c10c 13 1 None ( 0.8, 0.8, 0.8, 0.8) True PFC BumperInnerLin TFG_PFC_ExpWEST_BumperInnerLin_sh00000_Vers1.5.0-3-g96c1c10c 15 6 None ( 0.8, 0.8, 0.8, 0.8) True PFC BumperOuterLin TFG_PFC_ExpWEST_BumperOuterLin_sh00000_Vers1.5.0-3-g96c1c10c 16 1 None ( 0.8, 0.8, 0.8, 0.8) True PFC DivLowITERLin TFG_PFC_ExpWEST_DivLowITERLin_sh00000_Vers1.5.0-3-g96c1c10c 12 1 None ( 0.8, 0.8, 0.8, 0.8) True PFC IC3Lin TFG_PFC_ExpWEST_IC3Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True PFC DivUpLin TFG_PFC_ExpWEST_DivUpLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 0.8, 0.8, 0.8, 0.8) True PFC LH2Lin TFG_PFC_ExpWEST_LH2Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True PFC LH1Lin TFG_PFC_ExpWEST_LH1Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True PFC DivLowGCLin TFG_PFC_ExpWEST_DivLowGCLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 0.8, 0.8, 0.8, 0.8) True PFC RippleLin TFG_PFC_ExpWEST_RippleLin_sh00000_Vers1.5.0-3-g96c1c10c 5 12 None ( 0.8, 0.8, 0.8, 0.8) True PFC IC2Lin TFG_PFC_ExpWEST_IC2Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True PFC IC1Lin TFG_PFC_ExpWEST_IC1Lin_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True CoilPF BlLin TFG_CoilPF_ExpWEST_BlLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF ElLin TFG_CoilPF_ExpWEST_ElLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DivLow2Lin TFG_CoilPF_ExpWEST_DivLow2Lin_sh00000_Vers1.5.0-3-g96c1c10c 10 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF EuLin TFG_CoilPF_ExpWEST_EuLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DivLow1Lin TFG_CoilPF_ExpWEST_DivLow1Lin_sh00000_Vers1.5.0-3-g96c1c10c 10 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF FlLin TFG_CoilPF_ExpWEST_FlLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF FuLin TFG_CoilPF_ExpWEST_FuLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DivUp1Lin TFG_CoilPF_ExpWEST_DivUp1Lin_sh00000_Vers1.5.0-3-g96c1c10c 10 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DuLin TFG_CoilPF_ExpWEST_DuLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF BuLin TFG_CoilPF_ExpWEST_BuLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DlLin TFG_CoilPF_ExpWEST_DlLin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DivUp2Lin TFG_CoilPF_ExpWEST_DivUp2Lin_sh00000_Vers1.5.0-3-g96c1c10c 10 1 None ( 1.0, 0.0, 0.0, 1.0) True CoilCS V0Lin TFG_CoilCS_ExpWEST_V0Lin_sh00000_Vers1.5.0-3-g96c1c10c 4 1 None ( 1.0, 0.0, 0.0, 1.0) True, 'Tor': tot. Struct tot. occur tot. points ----------- ---------- ----------- 27 53 540 class Name SaveName nP noccur move color visible ------ -------------- ------------------------------------------------------------ --- ------ ---- ------------------------ ------- Ves VesInTor TFG_Ves_ExpWEST_VesInTor_sh00000_Vers1.5.0-3-g96c1c10c 100 0 None ( 0.0, 0.0, 0.0, 1.0) True Ves VesOutTor TFG_Ves_ExpWEST_VesOutTor_sh00000_Vers1.5.0-3-g96c1c10c 100 0 None ( 0.0, 0.0, 0.0, 1.0) True PFC BaffleTor TFG_PFC_ExpWEST_BaffleTor_sh00000_Vers1.5.0-3-g96c1c10c 13 0 None ( 0.8, 0.8, 0.8, 0.8) True PFC BumperInnerTor TFG_PFC_ExpWEST_BumperInnerTor_sh00000_Vers1.5.0-3-g96c1c10c 15 6 None ( 0.8, 0.8, 0.8, 0.8) True PFC BumperOuterTor TFG_PFC_ExpWEST_BumperOuterTor_sh00000_Vers1.5.0-3-g96c1c10c 16 1 None ( 0.8, 0.8, 0.8, 0.8) True PFC DivLowITERTor TFG_PFC_ExpWEST_DivLowITERTor_sh00000_Vers1.5.0-3-g96c1c10c 12 0 None ( 0.8, 0.8, 0.8, 0.8) True PFC IC3Tor TFG_PFC_ExpWEST_IC3Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True PFC DivUpTor TFG_PFC_ExpWEST_DivUpTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 0.8, 0.8, 0.8, 0.8) True PFC LH2Tor TFG_PFC_ExpWEST_LH2Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True PFC LH1Tor TFG_PFC_ExpWEST_LH1Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True PFC DivLowGCTor TFG_PFC_ExpWEST_DivLowGCTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 0.8, 0.8, 0.8, 0.8) True PFC RippleTor TFG_PFC_ExpWEST_RippleTor_sh00000_Vers1.5.0-3-g96c1c10c 5 12 None ( 0.8, 0.8, 0.8, 0.8) True PFC IC2Tor TFG_PFC_ExpWEST_IC2Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True PFC IC1Tor TFG_PFC_ExpWEST_IC1Tor_sh00000_Vers1.5.0-3-g96c1c10c 39 3 None ( 0.8, 0.8, 0.8, 0.8) True CoilPF BlTor TFG_CoilPF_ExpWEST_BlTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF ElTor TFG_CoilPF_ExpWEST_ElTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DivLow2Tor TFG_CoilPF_ExpWEST_DivLow2Tor_sh00000_Vers1.5.0-3-g96c1c10c 10 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF EuTor TFG_CoilPF_ExpWEST_EuTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DivLow1Tor TFG_CoilPF_ExpWEST_DivLow1Tor_sh00000_Vers1.5.0-3-g96c1c10c 10 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF FlTor TFG_CoilPF_ExpWEST_FlTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF FuTor TFG_CoilPF_ExpWEST_FuTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DivUp1Tor TFG_CoilPF_ExpWEST_DivUp1Tor_sh00000_Vers1.5.0-3-g96c1c10c 10 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DuTor TFG_CoilPF_ExpWEST_DuTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF BuTor TFG_CoilPF_ExpWEST_BuTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DlTor TFG_CoilPF_ExpWEST_DlTor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilPF DivUp2Tor TFG_CoilPF_ExpWEST_DivUp2Tor_sh00000_Vers1.5.0-3-g96c1c10c 10 0 None ( 1.0, 0.0, 0.0, 1.0) True CoilCS V0Tor TFG_CoilCS_ExpWEST_V0Tor_sh00000_Vers1.5.0-3-g96c1c10c 4 0 None ( 1.0, 0.0, 0.0, 1.0) True }, verb=False)[source]¶
- class tofu.tests.tests01_geom.test_03_core.Test03_Rays[source]¶
Bases:
object
- classmethod setup_class(dobj={'Lin': {'CamLOS1D': nb. los av. length min length max length nb. touch av. angle min angle max angle ------- ---------- ---------- ---------- --------- --------- --------- --------- 100 2.566 2.258 2.892 2 0.53 0.25 1.47 los index length touch angle (rad) --------- ------ ------------------ ----------- 0 2.892 Ves_VesInLin 0.67 1 2.876 Ves_VesInLin 0.67 2 2.611 PFC_BumperInnerLin 1.04 3 2.597 PFC_BumperInnerLin 1.05 4 2.584 PFC_BumperInnerLin 1.06 5 2.57 PFC_BumperInnerLin 0.55 6 2.557 PFC_BumperInnerLin 0.54 7 2.544 PFC_BumperInnerLin 0.53 8 2.532 PFC_BumperInnerLin 0.53 9 2.571 PFC_BumperInnerLin 0.52 10 2.621 PFC_BumperInnerLin 0.51 11 2.734 Ves_VesInLin 0.6 12 2.721 Ves_VesInLin 0.59 13 2.708 Ves_VesInLin 0.58 14 2.696 Ves_VesInLin 0.57 15 2.684 Ves_VesInLin 0.57 16 2.673 Ves_VesInLin 0.56 17 2.661 Ves_VesInLin 0.55 18 2.65 Ves_VesInLin 0.55 19 2.639 Ves_VesInLin 0.54 20 2.629 Ves_VesInLin 0.53 21 2.619 Ves_VesInLin 0.53 22 2.609 Ves_VesInLin 0.52 23 2.6 Ves_VesInLin 0.51 24 2.59 Ves_VesInLin 0.51 25 2.581 Ves_VesInLin 0.5 26 2.573 Ves_VesInLin 0.5 27 2.565 Ves_VesInLin 0.49 28 2.557 Ves_VesInLin 0.48 29 2.549 Ves_VesInLin 0.48 30 2.542 Ves_VesInLin 0.47 31 2.535 Ves_VesInLin 0.47 32 2.529 Ves_VesInLin 0.46 33 2.522 Ves_VesInLin 0.46 34 2.517 Ves_VesInLin 0.45 35 2.511 Ves_VesInLin 0.45 36 2.506 Ves_VesInLin 0.44 37 2.501 Ves_VesInLin 0.44 38 2.497 Ves_VesInLin 0.44 39 2.493 Ves_VesInLin 0.43 40 2.489 Ves_VesInLin 0.43 41 2.269 PFC_BumperInnerLin 1.47 42 2.266 PFC_BumperInnerLin 0.26 43 2.264 PFC_BumperInnerLin 0.26 44 2.262 PFC_BumperInnerLin 0.25 45 2.26 PFC_BumperInnerLin 0.25 46 2.259 PFC_BumperInnerLin 0.25 47 2.258 PFC_BumperInnerLin 0.25 48 2.473 Ves_VesInLin 0.42 49 2.473 Ves_VesInLin 0.41 50 2.473 Ves_VesInLin 0.41 51 2.473 Ves_VesInLin 0.42 52 2.474 Ves_VesInLin 0.42 53 2.475 Ves_VesInLin 0.42 54 2.476 Ves_VesInLin 0.42 55 2.478 Ves_VesInLin 0.42 56 2.48 Ves_VesInLin 0.42 57 2.483 Ves_VesInLin 0.42 58 2.486 Ves_VesInLin 0.43 59 2.489 Ves_VesInLin 0.43 60 2.493 Ves_VesInLin 0.43 61 2.497 Ves_VesInLin 0.44 62 2.501 Ves_VesInLin 0.44 63 2.506 Ves_VesInLin 0.44 64 2.511 Ves_VesInLin 0.45 65 2.517 Ves_VesInLin 0.45 66 2.522 Ves_VesInLin 0.46 67 2.529 Ves_VesInLin 0.46 68 2.535 Ves_VesInLin 0.47 69 2.542 Ves_VesInLin 0.47 70 2.549 Ves_VesInLin 0.48 71 2.557 Ves_VesInLin 0.48 72 2.565 Ves_VesInLin 0.49 73 2.573 Ves_VesInLin 0.5 74 2.581 Ves_VesInLin 0.5 75 2.59 Ves_VesInLin 0.51 76 2.6 Ves_VesInLin 0.51 77 2.609 Ves_VesInLin 0.52 78 2.619 Ves_VesInLin 0.53 79 2.496 PFC_BumperInnerLin 0.42 80 2.426 PFC_BumperInnerLin 0.43 81 2.419 PFC_BumperInnerLin 0.44 82 2.429 PFC_BumperInnerLin 0.45 83 2.439 PFC_BumperInnerLin 0.46 84 2.45 PFC_BumperInnerLin 0.47 85 2.461 PFC_BumperInnerLin 1.16 86 2.472 PFC_BumperInnerLin 1.15 87 2.721 Ves_VesInLin 0.59 88 2.734 Ves_VesInLin 0.6 89 2.747 Ves_VesInLin 0.6 90 2.76 Ves_VesInLin 0.61 91 2.774 Ves_VesInLin 0.62 92 2.787 Ves_VesInLin 0.62 93 2.802 Ves_VesInLin 0.63 94 2.816 Ves_VesInLin 0.64 95 2.831 Ves_VesInLin 0.64 96 2.845 Ves_VesInLin 0.65 97 2.861 Ves_VesInLin 0.66 98 2.876 Ves_VesInLin 0.67 99 2.892 Ves_VesInLin 0.67, 'CamLOS2D': nb. los av. length min length max length nb. touch av. angle min angle max angle ------- ---------- ---------- ---------- --------- --------- --------- --------- 10000 2.245 0.000 3.064 6 0.72 0.01 1.57 }, 'Tor': {'CamLOS1D': nb. los av. length min length max length nb. touch av. angle min angle max angle ------- ---------- ---------- ---------- --------- --------- --------- --------- 100 2.292 0.601 6.207 3 0.70 0.22 1.49 los index length touch angle (rad) --------- ------ ------------------ ----------- 0 5.387 PFC_LH2Tor 0.72 1 5.424 PFC_LH2Tor 0.71 2 2.703 PFC_BumperInnerTor 1.36 3 2.607 PFC_BumperInnerTor 1.29 4 2.532 PFC_BumperInnerTor 1.24 5 2.496 PFC_BumperInnerTor 0.36 6 2.505 PFC_BumperInnerTor 0.37 7 2.514 PFC_BumperInnerTor 0.38 8 6.11 Ves_VesInTor 0.55 9 6.143 Ves_VesInTor 0.54 10 6.175 Ves_VesInTor 0.53 11 6.207 Ves_VesInTor 0.52 12 3.127 Ves_VesInTor 1.49 13 2.931 Ves_VesInTor 1.35 14 2.824 Ves_VesInTor 1.27 15 2.744 Ves_VesInTor 1.2 16 2.678 Ves_VesInTor 1.15 17 2.622 Ves_VesInTor 1.1 18 2.573 Ves_VesInTor 1.05 19 2.529 Ves_VesInTor 1.01 20 2.49 Ves_VesInTor 0.97 21 2.454 Ves_VesInTor 0.93 22 2.421 Ves_VesInTor 0.89 23 2.391 Ves_VesInTor 0.85 24 2.363 Ves_VesInTor 0.82 25 2.337 Ves_VesInTor 0.78 26 2.313 Ves_VesInTor 0.75 27 2.291 Ves_VesInTor 0.72 28 2.27 Ves_VesInTor 0.69 29 2.25 Ves_VesInTor 0.66 30 2.232 Ves_VesInTor 0.63 31 2.216 Ves_VesInTor 0.6 32 2.2 Ves_VesInTor 0.57 33 2.186 Ves_VesInTor 0.54 34 2.172 Ves_VesInTor 0.51 35 2.16 Ves_VesInTor 0.48 36 2.148 Ves_VesInTor 0.46 37 2.138 Ves_VesInTor 0.43 38 2.128 Ves_VesInTor 0.4 39 2.12 Ves_VesInTor 0.38 40 2.112 Ves_VesInTor 0.36 41 2.105 Ves_VesInTor 0.33 42 2.098 Ves_VesInTor 0.31 43 2.093 Ves_VesInTor 0.29 44 2.089 Ves_VesInTor 0.27 45 2.085 Ves_VesInTor 0.26 46 2.082 Ves_VesInTor 0.24 47 2.079 Ves_VesInTor 0.23 48 2.078 Ves_VesInTor 0.22 49 2.077 Ves_VesInTor 0.22 50 2.077 Ves_VesInTor 0.22 51 2.078 Ves_VesInTor 0.22 52 2.079 Ves_VesInTor 0.23 53 2.082 Ves_VesInTor 0.24 54 2.085 Ves_VesInTor 0.26 55 2.089 Ves_VesInTor 0.27 56 2.093 Ves_VesInTor 0.29 57 2.098 Ves_VesInTor 0.31 58 2.105 Ves_VesInTor 0.33 59 2.112 Ves_VesInTor 0.36 60 2.12 Ves_VesInTor 0.38 61 2.128 Ves_VesInTor 0.4 62 2.138 Ves_VesInTor 0.43 63 2.148 Ves_VesInTor 0.46 64 1.827 PFC_BumperInnerTor 1.22 65 1.801 PFC_BumperInnerTor 0.38 66 1.81 PFC_BumperInnerTor 0.4 67 1.819 PFC_BumperInnerTor 0.43 68 1.829 PFC_BumperInnerTor 0.45 69 1.84 PFC_BumperInnerTor 0.48 70 1.851 PFC_BumperInnerTor 0.5 71 1.863 PFC_BumperInnerTor 0.52 72 1.875 PFC_BumperInnerTor 0.55 73 1.889 PFC_BumperInnerTor 0.57 74 1.903 PFC_BumperInnerTor 0.6 75 1.918 PFC_BumperInnerTor 0.62 76 1.934 PFC_BumperInnerTor 0.65 77 1.95 PFC_BumperInnerTor 0.68 78 2.454 Ves_VesInTor 0.93 79 2.49 Ves_VesInTor 0.97 80 2.529 Ves_VesInTor 1.01 81 2.573 Ves_VesInTor 1.05 82 2.622 Ves_VesInTor 1.1 83 2.678 Ves_VesInTor 1.15 84 2.744 Ves_VesInTor 1.2 85 2.824 Ves_VesInTor 1.27 86 2.931 Ves_VesInTor 1.35 87 3.127 Ves_VesInTor 1.49 88 0.683 PFC_LH2Tor 1.03 89 0.673 PFC_LH2Tor 1.02 90 0.664 PFC_LH2Tor 1.01 91 0.656 PFC_LH2Tor 1.0 92 0.648 PFC_LH2Tor 0.99 93 0.64 PFC_LH2Tor 0.98 94 0.633 PFC_LH2Tor 0.97 95 0.626 PFC_LH2Tor 0.96 96 0.619 PFC_LH2Tor 0.95 97 0.613 PFC_LH2Tor 0.94 98 0.607 PFC_LH2Tor 0.93 99 0.601 PFC_LH2Tor 0.92, 'CamLOS2D': nb. los av. length min length max length nb. touch av. angle min angle max angle ------- ---------- ---------- ---------- --------- --------- --------- --------- 10000 1.902 0.601 6.266 10 0.78 0.02 1.54 }}, verb=False)[source]¶
tofu.tests.tests01_geom.test_04_sampling module¶
Tests of the functions in sampling_tools.pxd or their wrappers found in tofu.geom.
- tofu.tests.tests01_geom.test_04_sampling.test02_discretize_vpoly(VPoly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]))[source]¶
- tofu.tests.tests01_geom.test_04_sampling.test05_sa_integ_map(ves_poly=array([[3.00000000e+00, 2.99798668e+00, 2.99195481e+00, 2.98192870e+00, 2.96794870e+00, 2.95007112e+00, 2.92836793e+00, 2.90292654e+00, 2.87384938e+00, 2.84125353e+00, 2.80527026e+00, 2.76604444e+00, 2.72373404e+00, 2.67850941e+00, 2.63055267e+00, 2.58005691e+00, 2.52722547e+00, 2.47227107e+00, 2.41541501e+00, 2.35688622e+00, 2.29692038e+00, 2.23575894e+00, 2.17364818e+00, 2.11083820e+00, 2.04758192e+00, 1.98413404e+00, 1.92075004e+00, 1.85768516e+00, 1.79519333e+00, 1.73352619e+00, 1.67293204e+00, 1.61365487e+00, 1.55593339e+00, 1.50000000e+00, 1.44607994e+00, 1.39439031e+00, 1.34513927e+00, 1.29852511e+00, 1.25473555e+00, 1.21394691e+00, 1.17632342e+00, 1.14201659e+00, 1.11116455e+00, 1.08389154e+00, 1.06030738e+00, 1.04050703e+00, 1.02457021e+00, 1.01256111e+00, 1.00452808e+00, 1.00050346e+00, 1.00050346e+00, 1.00452808e+00, 1.01256111e+00, 1.02457021e+00, 1.04050703e+00, 1.06030738e+00, 1.08389154e+00, 1.11116455e+00, 1.14201659e+00, 1.17632342e+00, 1.21394691e+00, 1.25473555e+00, 1.29852511e+00, 1.34513927e+00, 1.39439031e+00, 1.44607994e+00, 1.50000000e+00, 1.55593339e+00, 1.61365487e+00, 1.67293204e+00, 1.73352619e+00, 1.79519333e+00, 1.85768516e+00, 1.92075004e+00, 1.98413404e+00, 2.04758192e+00, 2.11083820e+00, 2.17364818e+00, 2.23575894e+00, 2.29692038e+00, 2.35688622e+00, 2.41541501e+00, 2.47227107e+00, 2.52722547e+00, 2.58005691e+00, 2.63055267e+00, 2.67850941e+00, 2.72373404e+00, 2.76604444e+00, 2.80527026e+00, 2.84125353e+00, 2.87384938e+00, 2.90292654e+00, 2.92836793e+00, 2.95007112e+00, 2.96794870e+00, 2.98192870e+00, 2.99195481e+00, 2.99798668e+00, 3.00000000e+00], [0.00000000e+00, 6.34239197e-02, 1.26592454e-01, 1.89251244e-01, 2.51147987e-01, 3.12033446e-01, 3.71662456e-01, 4.29794912e-01, 4.86196736e-01, 5.40640817e-01, 5.92907929e-01, 6.42787610e-01, 6.90079011e-01, 7.34591709e-01, 7.76146464e-01, 8.14575952e-01, 8.49725430e-01, 8.81453363e-01, 9.09631995e-01, 9.34147860e-01, 9.54902241e-01, 9.71811568e-01, 9.84807753e-01, 9.93838464e-01, 9.98867339e-01, 9.99874128e-01, 9.96854776e-01, 9.89821442e-01, 9.78802446e-01, 9.63842159e-01, 9.45000819e-01, 9.22354294e-01, 8.95993774e-01, 8.66025404e-01, 8.32569855e-01, 7.95761841e-01, 7.55749574e-01, 7.12694171e-01, 6.66769001e-01, 6.18158986e-01, 5.67059864e-01, 5.13677392e-01, 4.58226522e-01, 4.00930535e-01, 3.42020143e-01, 2.81732557e-01, 2.20310533e-01, 1.58001396e-01, 9.50560433e-02, 3.17279335e-02, - 3.17279335e-02, - 9.50560433e-02, - 1.58001396e-01, - 2.20310533e-01, - 2.81732557e-01, - 3.42020143e-01, - 4.00930535e-01, - 4.58226522e-01, - 5.13677392e-01, - 5.67059864e-01, - 6.18158986e-01, - 6.66769001e-01, - 7.12694171e-01, - 7.55749574e-01, - 7.95761841e-01, - 8.32569855e-01, - 8.66025404e-01, - 8.95993774e-01, - 9.22354294e-01, - 9.45000819e-01, - 9.63842159e-01, - 9.78802446e-01, - 9.89821442e-01, - 9.96854776e-01, - 9.99874128e-01, - 9.98867339e-01, - 9.93838464e-01, - 9.84807753e-01, - 9.71811568e-01, - 9.54902241e-01, - 9.34147860e-01, - 9.09631995e-01, - 8.81453363e-01, - 8.49725430e-01, - 8.14575952e-01, - 7.76146464e-01, - 7.34591709e-01, - 6.90079011e-01, - 6.42787610e-01, - 5.92907929e-01, - 5.40640817e-01, - 4.86196736e-01, - 4.29794912e-01, - 3.71662456e-01, - 3.12033446e-01, - 2.51147987e-01, - 1.89251244e-01, - 1.26592454e-01, - 6.34239197e-02, - 2.44929360e-16]]), debug=0)[source]¶
tofu.tests.tests01_geom.testing_tools module¶
Functions that are used in different tests