tests.bubble.test_thermo
Unit tests for thermodynamic functions
Classes
- class tests.bubble.test_thermo.ThermoTest
Bases:
objectUnit tests for thermodynamic functions
- classmethod setUpClass()
- Return type:
None
- test_bva_ke_frac()
- test_ebar()
- test_kappa()
- test_kappa_omega()
- test_kappa_omega_ref()
Ensure that there are no typos in the reference data
- test_omega()
- test_wbar()
If there is no bubble, then wbar=wn
- class tests.bubble.test_thermo.ThermoTestBag(methodName='runTest')
Bases:
ThermoTest,TestCaseTest that the results have not changed due to code changes
Reference data has been generated with PTtools.
- BVA_KE_FRAC_REF: ndarray = array([0.01120122, 0.04102288, 0.02133517, 0.03584025, 0.09408546, 0.07716743, 0.06676238, 0.14411715, 0.13352655])
- KAPPA_REF: ndarray = array([0.1227, 0.4512, 0.2346, 0.2141, 0.5645, 0.463 , 0.2881, 0.6245, 0.5786])
- class tests.bubble.test_thermo.ThermoTestConstCS(methodName='runTest')
Bases:
ThermoTest,TestCaseTest that the results have not changed due to code changes
Reference data has been generated with PTtools.
- BVA_KE_FRAC_REF: ndarray = array([0.02241072, 0.06855181, 0.04693314, 0.03579221, 0.09491076, 0.07758419, 0.06659433, 0.14493926, 0.13417616])
- KAPPA_REF: ndarray = array([0.17526324, 0.52981172, 0.3600414 , 0.21890328, 0.57413588, 0.46646184, 0.2938114 , 0.63314631, 0.58336228])
- class tests.bubble.test_thermo.ThermoTestHindmarshHijazi(methodName='runTest')
Bases:
ThermoTest,TestCase
- class tests.bubble.test_thermo.ThermoTestLectureNotes(methodName='runTest')
Bases:
ThermoTest,TestCase- UBARFS_REF = array([0.119, 0.184, 0.133])
- test_ubarf()