Exemple #1
0
 def test_mass(self):
     nuclides = Nuclides.db()
     n0 = nuclides.get(('208Pb', '0'))
     self.assertEqual(193729.016588, n0.mass.mev)
Exemple #2
0
 def setUpClass(cls):
     cls.nuclides = Nuclides.db()
Exemple #3
0
import unittest
import math

import numpy as np
import pandas as pd
import pandas.util.testing as pdt

from lenrmc.units import Energy, Distance
from lenrmc.nubase import Nuclides
from lenrmc.system import System
from lenrmc.combinations import Reaction
from lenrmc.calculations import CoulombBarrier


nuclides = Nuclides.db()


class CoulombBarrierTest(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.c = CoulombBarrier(
            nuclides.get(('4He', '0')),
            nuclides.get(('208Pb', '0'))
        )

    def test_coulomb_barrier(self):
        radius = Distance(fermis=1)
        np.testing.assert_approx_equal(236156, self.c.height(radius).kev)

    def test_coulomb_barrier_width(self):