2014-09-23 11:54:44 +02:00
|
|
|
import pyfftw
|
2014-06-03 12:35:58 +02:00
|
|
|
import numpy as np
|
2014-06-03 09:51:26 +02:00
|
|
|
import cosmotool as ct
|
2014-06-01 18:07:44 +02:00
|
|
|
import borgicgen as bic
|
2014-09-23 11:54:44 +02:00
|
|
|
import pickle
|
|
|
|
|
|
|
|
with file("wisdom") as f:
|
|
|
|
pyfftw.import_wisdom(pickle.load(f))
|
2014-06-01 18:07:44 +02:00
|
|
|
|
|
|
|
cosmo={'omega_M_0':0.3175, 'h':0.6711}
|
|
|
|
cosmo['omega_lambda_0']=1-cosmo['omega_M_0']
|
|
|
|
cosmo['omega_k_0'] = 0
|
2014-06-03 09:51:26 +02:00
|
|
|
cosmo['omega_B_0']=0.049
|
|
|
|
cosmo['SIGMA8']=0.8344
|
2014-06-04 13:57:17 +02:00
|
|
|
cosmo['ns']=0.9624
|
2014-06-01 18:07:44 +02:00
|
|
|
|
2014-11-07 15:33:26 +01:00
|
|
|
supergen=4
|
|
|
|
zstart=99
|
2014-09-23 11:54:44 +02:00
|
|
|
astart=1/(1.+zstart)
|
2014-06-12 09:51:54 +02:00
|
|
|
halfPixelShift=False
|
2014-09-23 11:54:44 +02:00
|
|
|
zero_fill=False
|
2014-06-03 12:35:58 +02:00
|
|
|
|
|
|
|
if __name__=="__main__":
|
2014-11-07 15:33:26 +01:00
|
|
|
bic.write_icfiles(*bic.run_generation("initial_density_1872.dat", 0.001, astart, cosmo, supersample=1, shiftPixel=halfPixelShift, do_lpt2=False, supergenerate=supergen), supergenerate=1, zero_fill=zero_fill)
|