This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
nu_rnet [2014/06/05 13:54] schutrumpg |
nu_rnet [2014/06/05 14:50] schutrumpg |
||
---|---|---|---|
Line 31: | Line 31: | ||
At first we had to set a reasonable temperature and density trajectory for a neutrino driven wind in which the r-process takes place. We take a realistic trajectory from Raphael Hix the temperature and density profile looks like this: | At first we had to set a reasonable temperature and density trajectory for a neutrino driven wind in which the r-process takes place. We take a realistic trajectory from Raphael Hix the temperature and density profile looks like this: | ||
- | {{ :out.jpg?200 |}} | + | {{ :out.jpg?500 |}} |
+ | To set the initial electron fraction $Y_e$ which is equivalent to the proto fraction due to charge neutrality, we ran the nse version of the xnet code. Therefore the lines in the code tagged by !NSE have to be uncommented and the lines tagged by !NOTNSE have to be commented. This can be done quickly with the following commands in Unix: | ||
+ | <code> | ||
+ | sed -e 's/^\!\(.*\!NSE\)/ \1/' conditions.f90 >conditions.f90- | ||
+ | sed -e 's/^\!\(.*\!NSE\)/ \1/' net_mpi.f90 >net_mpi.f90- | ||
+ | sed -e 's/^\!\(.*\!NSE\)/ \1/' net.f90 >net.f90- | ||
+ | sed -e 's/^\!\(.*\!NSE\)/ \1/' data_distribute_mpi.f90 >data_distribute_mpi.f90- | ||
+ | mv conditions.f90- conditions.f90 | ||
+ | mv net_mpi.f90- net_mpi.f90 | ||
+ | mv net.f90- net.f90 | ||
+ | mv data_distribute_mpi.f90- data_distribute_mpi.f90 | ||
+ | sed -e 's/^\!\(.*\!NOTNSE\)/!\1/' net.f90 >net.f90- | ||
+ | mv net.f90- net.f90 | ||
+ | </code> | ||
+ | Additionally the line | ||
+ | <code>NSE_OBJ = nse.o </code> | ||
+ | has to be uncommented. |