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

15 statements  

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

1""" 

2 planit SCVH table wrapper functions 

3""" 

4 

5from ..main import * 

6from .eostab_extension import * 

7from .get_eos_data import get_eosdata_path 

8 

9 

10def loadSCVHEOS(eos='SCVH_H_He_extended', eostype='SCVH', debug = False): 

11 """ 

12 READ IN SCVH EOS and fill the extEOStable class object 

13  

14 Returns: EOStable 

15 """ 

16 

17 if eos == 'SCVH_H_He_extended': 

18 eosdir = get_eosdata_path("SCVH") 

19 file = 'scvh_extended_dt_hydrogen_722_helium_278.data' 

20 womaID = None 

21 #elif eos == '???': 

22 # eosdir = get_eosdata_path("???") 

23 # file = '' 

24 # womaID = None 

25 

26 NewEOS = EOStable() # FIRST make new empty EOS object 

27 NewEOS.TYPE = eostype 

28 NewEOS.womaID = womaID 

29 NewEOS.VERSION = 1.0 

30 

31 NewEOS.loadSCVHtable(eosdir+file) 

32 

33 NewEOS.MODELNAME = eos 

34 

35 return NewEOS 

36