| Title: | Simple Plain Text Output with IOASCII |
| Author(s): | Thomas Radke |
| Gabrielle Allen |
| Date: | Date |
Thorn IOASCII provides I/O methods for 1D, 2D, and 3D output of grid arrays and grid functions into files in ASCII format. The precise format is designed for visualisation using the clients xgraph [2] or gnuplot [3].
Thorn IOASCII registers three I/O methods named IOASCII_1D, IOASCII_2D, and IOASCII_3D with the I/O interface in the flesh.
<variable_name>_<slice>_[<center_i>][<center_j>].{asc|xg}
and for diagonals:
<variable_name>_3D_diagonal.{asc|xg}
These files can be processed directly by either xgraph or gnuplot (you can select the style of output via parameter settings).
<variable_name>_<plane>_[<center>].{asc|xg}
These files can be visualized by gnuplot using its splot command.
<variable_name>_3D.{asc|xg}
These files can be visualized by gnuplot using its splot command.
General parameters to control all IOASCII’s I/O methods are:
Additional parameters to control the IOASCII_1D I/O method are:
Additional parameters to control the IOASCII_2D I/O method are:
Getting Output from IOBasic’s I/O Mehtods
You obtain output by an I/O method by either
For a description of basic I/O parameters and the I/O function interface to invoke I/O methods by application
thorns please see the documentation of thorn IOUtil and the flesh.
Building Cactus configurations with IOBasic
Since IOASCII uses parameters from IOUtil it also needs this I/O helper thorn be compiled into Cactus and
activated at runtime in the ActiveThorns parameter in your parameter file.
In this section we include example output for different parameter combinations. Note that all these examples were generated for just a couple of timesteps for an extremely small 3D grid.
These options produce data suitable for using with the xgraph visualization client in the format
x f(t=fixed,x,y=fixed,z=fixed):
Output File: phi_x_[1][1].xg
These options produce data suitable for using with the gnuplot visualization client in the format
x f(t,x,y=fixed,z=fixed):
Output File: phi_x_[1][1].asc
These options produce data suitable for using with the gnuplot visualization client in the format
t x f(t,x,y=fixed,z=fixed):
Output file: phi_x_[1][1].asc
These options produce data suitable for using with the gnuplot visualization client in the format
x y f(t,x,y,z=fixed):
Output file: phi_xy_[1].asc
These options produce data suitable for using with the gnuplot visualization client in the format
t x y f(t,x,y,z=fixed):
Output file: phi_xy_[1].asc
out1d_d | Scope: private | BOOLEAN |
Description: Do 1D IOASCII output in the diagonal-direction
| ||
| Default: yes | ||
out1d_dir | Scope: private | STRING |
Description: Output directory for 1D IOASCII files, overrides IO::out_dir
| ||
| Range | Default: (none) | |
.+ | A valid directory name
| |
![]() | An empty string to choose the default from IO::out_dir
| |
out1d_every | Scope: private | INT |
Description: How often to do 1D IOASCII output, overrides IO::out_every
| ||
| Range | Default: -1 | |
1:* | Every so many iterations
| |
0: | Disable 1D IOASCII output
| |
-1: | Default to IO::out_every
| |
out1d_style | Scope: private | KEYWORD |
Description: Which style for 1D lines IOASCII output
| ||
| Range | Default: xgraph | |
xgraph | f over x plots suitable for xgraph
| |
gnuplot f(x) | f over x plots suitable for gnuplot
| |
gnuplot f(t,x) | f over t,x plots suitable for gnuplot
| |
out1d_vars | Scope: private | STRING |
Description: Variables to output in 1D IOASCII file format
| ||
| Range | Default: (none) | |
.+ | Space-separated list of fully qualified variable/group names
| |
![]() | An empty string to output nothing
| |
out1d_x | Scope: private | BOOLEAN |
Description: Do 1D IOASCII output in the x-direction
| ||
| Default: yes | ||
out1d_xline_y | Scope: private | REAL |
Description: y-coord for 1D lines in x-direction
| ||
| Range | Default: -424242 | |
*:* | A value between [ymin, ymax]
| |
-424242: | Default to IO::out_xline_y
| |
out1d_xline_yi | Scope: private | INT |
Description: y-index (from 0) for 1D lines in x-direction
| ||
| Range | Default: -1 | |
0:* | An index between [0, ny)
| |
-1: | Choose the default from IO::out_xline_yi
| |
out1d_xline_z | Scope: private | REAL |
Description: z-coord for 1D lines in x-direction
| ||
| Range | Default: -424242 | |
*:* | A value between [zmin, zmax]
| |
-424242: | Default to IO::out_xline_z
| |
out1d_xline_zi | Scope: private | INT |
Description: z-index (from 0) for 1D lines in x-direction
| ||
| Range | Default: -1 | |
0:* | An index between [0, nz)
| |
-1: | Choose the default from IO::out_xline_zi
| |
out1d_y | Scope: private | BOOLEAN |
Description: Do 1D IOASCII output in the y-direction
| ||
| Default: yes | ||
out1d_yline_x | Scope: private | REAL |
Description: x-coord for 1D lines in y-direction
| ||
| Range | Default: -424242 | |
*:* | A value between [xmin, xmax]
| |
-424242: | Default to IO::out_yline_x
| |
out1d_yline_xi | Scope: private | INT |
Description: x-index (from 0) for 1D lines in y-direction
| ||
| Range | Default: -1 | |
0:* | An index between [0, nx)
| |
-1: | Choose the default from IO::out_yline_xi
| |
out1d_yline_z | Scope: private | REAL |
Description: z-coord for 1D lines in y-direction
| ||
| Range | Default: -424242 | |
*:* | A value between [zmin, zmax]
| |
-424242: | Default to IO::out_yline_z
| |
out1d_yline_zi | Scope: private | INT |
Description: z-index (from 0) for 1D lines in y-direction
| ||
| Range | Default: -1 | |
0:* | An index between [0, nz)
| |
-1: | Choose the default from IO::out_yline_zi
| |
out1d_z | Scope: private | BOOLEAN |
Description: Do 1D IOASCII output in the z-direction
| ||
| Default: yes | ||
out1d_zline_x | Scope: private | REAL |
Description: x-coord for 1D lines in z-direction
| ||
| Range | Default: -424242 | |
*:* | A value between [xmin, xmax]
| |
-424242: | Default to IO::out_zline_x
| |
out1d_zline_xi | Scope: private | INT |
Description: x-index (from 0) for 1D lines in z-direction
| ||
| Range | Default: -1 | |
0:* | An index between [0, nx)
| |
-1: | Choose the default from IO::out_zline_xi
| |
out1d_zline_y | Scope: private | REAL |
Description: y-coord for 1D lines in z-direction
| ||
| Range | Default: -424242 | |
*:* | A value between [ymin, ymax]
| |
-424242: | Default to IO::out_zline_y
| |
out1d_zline_yi | Scope: private | INT |
Description: y-index (from 0) for 1D lines in z-direction
| ||
| Range | Default: -1 | |
0:* | An index between [0, ny)
| |
-1: | Choose the default from IO::out_zline_yi
| |
out2d_dir | Scope: private | STRING |
Description: Output directory for 2D IOASCII files, overrides out_dir
| ||
| Range | Default: (none) | |
.+ | A valid directory name
| |
![]() | An empty string to choose the default from IO::out_dir
| |
out2d_every | Scope: private | INT |
Description: How often to do 2D IOASCII output, overrides IO::out_every
| ||
| Range | Default: -1 | |
1:* | Every so many iterations
| |
0: | Disable 2D IOASCII output
| |
-1: | Default to IO::out_every
| |
out2d_style | Scope: private | KEYWORD |
Description: Which style for 2D slices IOASCII output
| ||
| Range | Default: gnuplot f(x,y) | |
gnuplot f(x,y) | f over x,y plots suitable for gnuplot
| |
gnuplot f(t,x,y) | f over t,x,y plots suitable for gnuplot
| |
out2d_vars | Scope: private | STRING |
Description: Variables to output in 2D IOASCII file format
| ||
| Range | Default: (none) | |
.+ | Space-separated list of fully qualified variable/group names
| |
![]() | An empty string to output nothing
| |
out2d_xyplane_z | Scope: private | REAL |
Description: z-coord for 2D planes in xy
| ||
| Range | Default: -424242 | |
*:* | A value between [zmin, zmax]
| |
-424242: | Default to IO::out_xyplane_z
| |
out2d_xyplane_zi | Scope: private | INT |
Description: z-index (from 0) for 2D planes in xy
| ||
| Range | Default: -1 | |
0:* | An index between [0, nz)
| |
-1: | Choose the default from IO::out_xyplane_zi
| |
out2d_xzplane_y | Scope: private | REAL |
Description: y-coord for 2D planes in xz
| ||
| Range | Default: -424242 | |
*:* | A value between [ymin, ymax]
| |
-424242: | Default to IO::out_xzplane_y
| |
out2d_xzplane_yi | Scope: private | INT |
Description: y-index (from 0) for 2D planes in xz
| ||
| Range | Default: -1 | |
0:* | An index between [0, ny)
| |
-1: | Choose the default from IO::out_xzplane_yi
| |
out2d_yzplane_x | Scope: private | REAL |
Description: x-coord for 2D planes in yz
| ||
| Range | Default: -424242 | |
*:* | A value between [xmin, xmax]
| |
-424242: | Default to IO::out_yzplane_x
| |
out2d_yzplane_xi | Scope: private | INT |
Description: x-index (from 0) for 2D planes in yz
| ||
| Range | Default: -1 | |
0:* | An index between [0, nx)
| |
-1: | Choose the default from IO::out_yzplane_xi
| |
out3d_dir | Scope: private | STRING |
Description: Output directory for 3D IOASCII files, overrides IO::out_dir
| ||
| Range | Default: (none) | |
.+ | A valid directory name
| |
![]() | An empty string to choose the default from IO::out_dir
| |
out3d_every | Scope: private | INT |
Description: How often to do 3D IOASCII output, overrides IO::out_every
| ||
| Range | Default: -1 | |
1:* | Every so many iterations
| |
0: | Disable 3D IOASCII output
| |
-1: | Default to IO::out_every
| |
out3d_style | Scope: private | KEYWORD |
Description: Which style for 3D volume IOASCII output
| ||
| Range | Default: gnuplot f(x,y,z) | |
gnuplot f(x,y,z) | f over x,y,z plots suitable for gnuplot
| |
gnuplot f(t,x,y,z) | f over t,x,y,z plots suitable for gnuplot
| |
out3d_vars | Scope: private | STRING |
Description: Variables to output in 3D IOASCII file format
| ||
| Range | Default: (none) | |
.+ | Space-separated list of fully qualified variable/group names
| |
![]() | An empty string to output nothing
| |
out_format | Scope: private | STRING |
Description: Which format for IOASCII floating-point number output
| ||
| Range | Default: .13f | |
see [1] below | output with given precision in exponential / floating point notation
| |
[1]
new_filename_scheme | Scope: shared from IO | BOOLEAN |
out_dir | Scope: shared from IO | STRING |
out_downsample_x | Scope: shared from IO | INT |
out_downsample_y | Scope: shared from IO | INT |
out_downsample_z | Scope: shared from IO | INT |
out_every | Scope: shared from IO | INT |
out_fileinfo | Scope: shared from IO | KEYWORD |
out_xline_y | Scope: shared from IO | REAL |
out_xline_yi | Scope: shared from IO | INT |
out_xline_z | Scope: shared from IO | REAL |
out_xline_zi | Scope: shared from IO | INT |
out_xyplane_z | Scope: shared from IO | REAL |
out_xyplane_zi | Scope: shared from IO | INT |
out_xzplane_y | Scope: shared from IO | REAL |
out_xzplane_yi | Scope: shared from IO | INT |
out_yline_x | Scope: shared from IO | REAL |
out_yline_xi | Scope: shared from IO | INT |
out_yline_z | Scope: shared from IO | REAL |
out_yline_zi | Scope: shared from IO | INT |
out_yzplane_x | Scope: shared from IO | REAL |
out_yzplane_xi | Scope: shared from IO | INT |
out_zline_x | Scope: shared from IO | REAL |
out_zline_xi | Scope: shared from IO | INT |
out_zline_y | Scope: shared from IO | REAL |
out_zline_yi | Scope: shared from IO | INT |
strict_io_parameter_check | Scope: shared from IO | BOOLEAN |
verbose | Scope: shared from IO | KEYWORD |
Implements:
ioascii
This section lists all the variables which are assigned storage by thorn CactusBase/IOASCII. Storage can either last for the duration of the run (Always means that if this thorn is activated storage will be assigned, Conditional means that if this thorn is activated storage will be assigned for the duration of the run if some condition is met), or can be turned on for the duration of a schedule function.
NONE
CCTK_STARTUP
ioascii_startup
startup routine
| After: | ioutil_startup | |
| Language: | c | |
| Type: | function | |
CCTK_BASEGRID
ioascii_choose1d
choose 1d output lines
| After: | spatialcoordinates | |
| Language: | c | |
| Type: | function | |
CCTK_BASEGRID
ioascii_choose2d
choose 2d output planes
| After: | spatialcoordinates | |
| Language: | c | |
| Type: | function | |