Moved code. Reorganized more OO like
This commit is contained in:
parent
8258bd0fe9
commit
688e4e20de
6 changed files with 192 additions and 140 deletions
11
python_sample/icgen/gen_ic_from_borg.py
Normal file
11
python_sample/icgen/gen_ic_from_borg.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
import borgicgen as bic
|
||||
|
||||
cosmo={'omega_M_0':0.3175, 'h':0.6711}
|
||||
cosmo['omega_lambda_0']=1-cosmo['omega_M_0']
|
||||
cosmo['omega_k_0'] = 0
|
||||
|
||||
zstart=50
|
||||
astart=1/(1.+zstart)
|
||||
|
||||
if __name__=="__main__":
|
||||
bic.write_icfiles(*bic.run_generation("initial_condition_borg.dat", 0.001, astart, **cosmo), **cosmo)
|
Loading…
Add table
Add a link
Reference in a new issue