ism3d.interface.read_inp¶
-
ism3d.interface.
read_inp
(parfile, log=False)[source]¶ - read parameters/setups from a .inp file into a dictionary nest:
inp_dct[id][keywords]=values. inp_dct[‘comments’]=’??’ inp_dct[‘changlog’]=’??’ inp_dct[‘optimize’]=’??’
- keyword value formatting
1.remove trailing/prefix space / comments 2.split my space 3.first element is the key 4.the rest elements will be filled into value
more than one element : list one element: scaler