mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
added RAMSES testing namelist and conf file
This commit is contained in:
parent
d7063e824f
commit
a9b1fba907
3 changed files with 91 additions and 1 deletions
|
@ -278,7 +278,7 @@ int Run( ConfigFile& the_config )
|
||||||
real_t std_phi1 = phi.std();
|
real_t std_phi1 = phi.std();
|
||||||
|
|
||||||
const real_t hbar = 2.0 * M_PI/ngrid * (3*std_phi1/Dplus0); //3sigma, but this might rather depend on gradients of phi...
|
const real_t hbar = 2.0 * M_PI/ngrid * (3*std_phi1/Dplus0); //3sigma, but this might rather depend on gradients of phi...
|
||||||
csoca::ilog << "SCPT : hbar = " << hbar << " from sigma(phi1) = " << std_phi1 << std::endl;
|
csoca::ilog << "Semiclassical PT : hbar = " << hbar << " from sigma(phi1) = " << std_phi1 << std::endl;
|
||||||
|
|
||||||
if( LPTorder == 1 ){
|
if( LPTorder == 1 ){
|
||||||
psi.assign_function_of_grids_r([hbar,Dplus0]( real_t pphi ){
|
psi.assign_function_of_grids_r([hbar,Dplus0]( real_t pphi ){
|
||||||
|
|
30
testing/RAMSES/ics_ramses.conf
Normal file
30
testing/RAMSES/ics_ramses.conf
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
[setup]
|
||||||
|
GridRes = 64
|
||||||
|
BoxLength = 100
|
||||||
|
zstart = 49.0
|
||||||
|
LPTorder = 1
|
||||||
|
SymplecticPT = no
|
||||||
|
DoFixing = no
|
||||||
|
BCClattice = no
|
||||||
|
|
||||||
|
[execution]
|
||||||
|
NumThreads = 4
|
||||||
|
|
||||||
|
[output]
|
||||||
|
format = grafic2
|
||||||
|
filename = ics_ramses
|
||||||
|
grafic_use_SPT = yes # set to no and LPTorder to 1 or 2 for semiclassical ICs
|
||||||
|
|
||||||
|
[random]
|
||||||
|
generator = NGENIC
|
||||||
|
seed = 9001
|
||||||
|
|
||||||
|
[cosmology]
|
||||||
|
transfer = eisenstein
|
||||||
|
Omega_m = 0.302
|
||||||
|
Omega_b = 0.045
|
||||||
|
Omega_L = 0.698
|
||||||
|
H0 = 70.3
|
||||||
|
sigma_8 = 0.811
|
||||||
|
nspec = 0.961
|
||||||
|
|
60
testing/RAMSES/ramses.nml
Normal file
60
testing/RAMSES/ramses.nml
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
&RUN_PARAMS
|
||||||
|
cosmo=.true.
|
||||||
|
pic=.true.
|
||||||
|
poisson=.true.
|
||||||
|
hydro=.true.
|
||||||
|
nrestart=0
|
||||||
|
nremap=1
|
||||||
|
nsubcycle=1,2
|
||||||
|
ncontrol=1
|
||||||
|
verbose=.false.
|
||||||
|
/
|
||||||
|
|
||||||
|
&OUTPUT_PARAMS
|
||||||
|
noutput=10
|
||||||
|
aout=0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0
|
||||||
|
/
|
||||||
|
|
||||||
|
&INIT_PARAMS
|
||||||
|
filetype='grafic'
|
||||||
|
initfile(1)='ics_ramses'
|
||||||
|
/
|
||||||
|
|
||||||
|
&AMR_PARAMS
|
||||||
|
levelmin=6
|
||||||
|
levelmax=11
|
||||||
|
nexpand=1
|
||||||
|
ngridmax=2000000
|
||||||
|
npartmax=3000000
|
||||||
|
/
|
||||||
|
|
||||||
|
&HYDRO_PARAMS
|
||||||
|
gamma=1.6666667
|
||||||
|
courant_factor=0.8
|
||||||
|
slope_type=1
|
||||||
|
pressure_fix=.true.
|
||||||
|
scheme='muscl'
|
||||||
|
/
|
||||||
|
|
||||||
|
&COOLING_PARAMS
|
||||||
|
cooling=.false.
|
||||||
|
metal=.false.
|
||||||
|
/
|
||||||
|
|
||||||
|
&SF_PARAMS
|
||||||
|
t_star=8.0
|
||||||
|
n_star=0.1
|
||||||
|
T2_star=1d4
|
||||||
|
/
|
||||||
|
|
||||||
|
&FEEDBACK_PARAMS
|
||||||
|
eta_sn=0.1
|
||||||
|
yield=0.1
|
||||||
|
/
|
||||||
|
|
||||||
|
&REFINE_PARAMS
|
||||||
|
m_refine=7*8.
|
||||||
|
interpol_var=1
|
||||||
|
interpol_type=0
|
||||||
|
/
|
||||||
|
|
Loading…
Reference in a new issue