snap.write.head.2: Function to start creating a gadget format 2 snapshot file...

Description Usage Arguments Details Note Author(s) See Also Examples

View source: R/snap.write.head.2.R

Description

Function to start creating a Gadget format 2 snapshot file from a given header. Writes the label block and the header.

Usage

1

Arguments

head

A list containing various header information as list elements. These are:

Npart Vector of length 6 containing the number of particles in this snapshot file, where:
gas [1] / collisionless particles [2:6]
Massarr Vector of length 6 containing the particle masses for the respective particle types
in Npart
Time Time of snapshot in units of km/s and kpc so 1 unit is ~10 Gyrs
z Redshift of snapshot
FlagSfr Star formation turned on/off
Nall Vector of length 6 containing the number of particles in all snapshot files, where:
gas [1] / collisionless particles [2:6]
FlagFeedback Feedback turned on/off
FlagCooling Cooling turned on/off
NumFiles Number of files per snapshot- usually 1
BoxSize Size of simulation box edge length in units of kpc
OmegaM Omega matter of the simulation
OmegaL Omega lambda of the simulation
h Hubble constant divided by 100 used in the simulation
FlagAge Stellar ages on/off
FlagMetals Stellar metallacities on/off
NallHW Tell Gadget to use large integers for the respective particle types in Npart
- not usually necessary
flag_entr_ics Entropy for gas on/off
file

The full path to the Gadget snapshot to be created.

Details

Basically, it opens the file to be written. Writes the label blocks and then the header itself.

Note

With this function one starts the process of writing a snapshot in Gadget format-2.

Author(s)

Federico Stasyszyn

See Also

snap.write.block.2, snap.add.head.1, snap.select.type.2, snap.read.2, snap.gen.param

Examples

1
    #None yet!

asgr/snapshot documentation built on Oct. 8, 2020, 2:52 p.m.