User Tools

Site Tools


howto:gadget-2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:gadget-2 [2016/04/07 11:13]
sfebruary [Running Gadget2]
howto:gadget-2 [2016/05/16 08:48] (current)
sfebruary [Gadget2 at CHPC]
Line 1: Line 1:
 ====== Gadget2 at CHPC ====== ====== Gadget2 at CHPC ======
 +
 +From its [[http://​wwwmpa.mpa-garching.mpg.de/​~volker/​gadget/​|website]]:​ "​GADGET computes gravitational forces with a hierarchical tree algorithm (optionally in combination with a particle-mesh scheme for long-range gravitational forces) and represents fluids by means of smoothed particle hydrodynamics (SPH)... GADGET can therefore be used to address a wide array of astrophysically interesting problems, ranging from colliding and merging galaxies, to the formation of large-scale structure in the Universe. With the inclusion of additional physical processes such as radiative cooling and heating, GADGET can also be used to study the dynamics of the gaseous intergalactic medium, or to address star formation and its regulation by feedback processes."​
  
 Contents: Contents:
   - [[gadget-2#​compiling_your_own_gadget2_code|Compiling your own Gadget2 code]]   - [[gadget-2#​compiling_your_own_gadget2_code|Compiling your own Gadget2 code]]
   - [[gadget-2#​running_gadget2|Running Gadget2]]   - [[gadget-2#​running_gadget2|Running Gadget2]]
 +  - [[gadget-2#​generating_initial_conditions|Generating Initial Conditions]]
 ===== Compiling your own Gadget2 code ===== ===== Compiling your own Gadget2 code =====
  
Line 56: Line 58:
 ===== Running Gadget2 ===== ===== Running Gadget2 =====
  
-This assumes you have successfully compiled Gadget ​and have put together ​an appropriate ​parameter file. For now, let's consider one of the examples provided in ''​Gadget-2.0.7/​Gadget2/​parameterfiles/'',​ say "LCDM gas".+This assumes you have successfully compiled Gadgethave put together ​parameter file for your particular simulation as well as generated the corresponding initial conditions. For now, let's consider one of the examples provided in ''​Gadget-2.0.7/​Gadget2/​parameterfiles/'',​ say "LCDM gas".
  
 === Step 1 === === Step 1 ===
-Make sure that you create the necessary paths (and directories) for the saving of Gadget2 snapshots (and other information) somewhere on the Lustre (scratch) filesystem i.e. ''/​mnt/​lustre/​users/​username/''​.+Make sure that you create the necessary paths (and directories) ​for the storing of your input data (e.g. initial conditions) as well as for the saving of Gadget2 snapshots (and other information) somewhere ​**on the Lustre (scratch) filesystem** i.e. ''/​mnt/​lustre/​users/​username/''​. ​Then, in ''​Gadget-2.0.7/​Gadget2/​parameterfiles/​lcdm_gas.param''​ adjust the ''​InitCondFile''​ and ''​OutputDir''​ variables accordingly. If you intend to use a predetermined set of redshifts at which to write snapshots, also adjust ''​OutputListFilename''​ as required (usually a small file, but is regarded as input data).  
 + 
 +=== Step 2 === 
 +Create a PBS script for the job and then submit the job to the cluster queue (see [[quick:​start?#​example_job_scripts|our quick start guide]] for such information) as follows: 
 +<code bash> 
 +[username@login1 ~]$ qsub mypbsjobscript.sh 
 +</​code>​ 
 + 
 + 
 +===== Generating Initial Conditions ===== 
 +If you require any help with generating your own initial conditions, please contact [[mailto:​sfebruary@csir.co.za|Sean February]] or [[mailto:​ccress@csir.co.za|Catherine Cress]]. 
/var/www/wiki/data/attic/howto/gadget-2.1460020419.txt.gz · Last modified: 2016/04/07 11:13 by sfebruary