In and Out can be in a different type (ex conversion from Nemo to Gadget OR Gadget to Nemo).
In and Out can also be in the same format and the user can select a subset of the components and/or a subset of physical quantities to save.
There are two kinds of nbody file structure:
There are a special syntax when in=RFS and out=CFS (ex Nemo to Gadget conversion), which is : select=comp1@range+comp2@range (ex: select=gas@0:1000+disk@300:400). For more details, see EXAMPLES below.
ex: bits=xRH will save positions, densities and hsml
(see also :
https://projets.lam.fr/projects/unsio/wiki/UnsioVariablesUtilisation#How-to-select-data-at-loading)
Convert a gadget file to nemo file, by selecting the mass and the positions of disk and stars components.
2) uns2uns in=filelist out=filenemo select=disk,stars
type=nemo bits=mx first=t
Do exactly the same conversion as 1) but from a list of file. Each output files will have a trailing number.
type=gadget2
Convert a Nemo file to Gadget2 by setting nemo particles from range [0:100] to gadget2 gas component, and nemo particles from range [200:300] to gadget2 halo component.
uns2uns in=fileg2 out=fileg22 select=gas type=gadget2 bits=xRH
Create a gadget2 file from another gadget2 file, by keeping only positions, densities and hsml of gas component.
2) uns2uns in=simname out=fileg22 select=gas
type=gadget2 bits=xRH first=t
Do exactly the same thing as 1) but on all files stored in the uns sqlite3 database which match to entry ’simname’. Each output files will have a trailing number.
05-Jul-11 V1.0 created JCL 17-Mar-20 V2.0 bugs fixed JCL