Coverage for planit/eos/rhoUtable.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.17.2, created at 2026-11-11 15:42 +0000

1""" 

2 planit rho-U / HM80 table wrapper functions 

3""" 

4 

5from ..main import * 

6#from .eos_table import * 

7from .eostab_extension import * 

8 

9 

10def loadrhoUEOS(eos='HM80-HHe-v2.0', eostype='HM80', debug = False): 

11 """ 

12 READ IN rhoU tabulated EOS and fill the extEOStable class object 

13  

14 Returns: EOStable 

15 """ 

16 

17 NewEOS = EOStable() # make new empty EOS object 

18 

19 if eos == 'HM80-HHe-v2.0': 

20 eosdir = eospath + 'HM80_HHe/' 

21 NewEOS.womaID = 200 

22 NewEOS.VERSION = 2.0 

23 NewEOS.loadrhoUtable(eosdir+'HM80_HHe_extended.txt') 

24 

25 NewEOS.TYPE = eostype 

26 

27 NewEOS.MODELNAME = eos 

28 

29 return NewEOS 

30