next up previous contents
Next: Scene description file Up: Navsetup Previous: Navsetup   Contents


Command line arguments

The following is a list of command-line arguments for navsetup:

-h Prints the list of parameters and a short description and prints the version number of NaSt3DGP.
-s $ \langle$SceneFile$ \rangle$ Reads the scene description file $ \langle$SceneFile$ \rangle$ and generates a data-file
-b $ \langle$DataFile$ \rangle$ The name of the data-file, the default name is default.bin
-l $ \langle$DataFile$ \rangle$ load field variables(velocity, pressure etc.) from an existing datafile. This is useful if you want to run a calculation with previsously computed values $ p,~{\bf u}~\{,~T,~c,~..\}$ but want to change some simulation parameters. You can create a binary file for the new calculation with the following command:
navsetup -s $ \langle$SceneFileNew$ \rangle$ -b $ \langle$DataFileNew$ \rangle$ -l $ \langle$DataFile$ \rangle$
The data will be interpolated if the number of grid points changes.
-L $ \langle$DataFiles$ \rangle$ Same as -l, but reads several data files $ \langle$DataFiles$ \rangle$.*.
-A $ \langle$TextFiles$ \rangle$ Same as -L, but reads several text files (written by $ {\tt -a}$) $ \langle$TextFiles$ \rangle$.txt.*.
-o $ \langle$OutFile$ \rangle$ This option sets the base of the filename to $ \langle$OutFile$ \rangle$ for the options which write files. If this option is not used, $ \langle$OutFile$ \rangle$ is set to 'default'.
-TC $ \langle$DataFile$ \rangle$ Reads the data $ p,~{\bf u}~\{,~T,~c,~..\}$ from the data-file and writes to $ \langle$Outfile$ \rangle$.dat. The file format is ASCII Tecplot. The data written is located at the cell centers.
-T $ \langle$DataFile$ \rangle$ same as $ -TC$ but writes each field to a separate file named $ \langle$Outfile$ \rangle$.$ \langle$field$ \rangle$.dat, e.g. $ \langle$Outfile$ \rangle$.u.dat .
-g $ \langle$DataFile$ \rangle$ Reads the data $ p,~{\bf u}~\{,~T,~c,~..\}$ from the data-file and writes each of it in $ \langle$Outfile$ \rangle$.u$ \langle$Outfile$ \rangle$.v etc. These files can be read in Matlab with the script tools/matlab/ReadNast.m.
-a $ \langle$DataFile$ \rangle$ Same as $ -g$, but use ASCII-format(text files) which are named $ \langle$OutFile$ \rangle$.txt.*.
-G $ \langle$DataFile$ \rangle$ Reads the data $ p,~{\bf u}~\{,~T,~c,~..\}$ from the data-file and writes each of it in $ \langle$Outfile$ \rangle$.vtk.u$ \langle$Outfile$ \rangle$.vtk.v etc. The files are written in the VTK5.1 rectilinear grid format.
-GS$ \langle$DataFile$ \rangle$ same as $ -G$ but uses the VTK Structured Points format and the files are named $ \langle$Outfile$ \rangle$.vtksp.* .
-f $ uvwptcV$ create a VTK file including the velocity-field $ V$ or multiple scalars $ u, v, w, p ,t, c0\dots cN~.$ This option has to be used together with $ -G$, e.g. use the command
navsetup -f $ Vp$ -G $ \langle$DataFile$ \rangle$ -o $ \langle$Outfile$ \rangle$
to write the the velocity as a vectorfield and the pressure $ p$ to a file named $ \langle$Outfile$ \rangle$.vtk.mix or use
navsetup -f $ puv$ -G $ \langle$DataFile$ \rangle$ -o $ \langle$Outfile$ \rangle$
to write the pressure $ p$ and the first two velocity components $ u$ and $ v$.


next up previous contents
Next: Scene description file Up: Navsetup Previous: Navsetup   Contents
Martin Engel 2004-03-15