Test+Problem+Utilities

=Test Problem Utilities= Pages: Workshop, Overview, CADAC, Data Access, Work Area Setup, Path Setup, **Utilities**, Grid Data, SPH Data, Running, Reporting, LOG

There are data conversion utilities for
 * 1) interpolating grid data to specific resolutions and centering, with div(B) cleaning: **g2g.x**
 * 2) converting grid data to SPH data: **g2s.x**
 * 3) converting, for testing or analysis purposes, SPH data to grid data: **s2g.x**


 * //Please check the LOG file for changes of the source code and binaries -- consider re-executing binaries or/and taking a new copy of the source code if relevant for your experiment.//**

Input files that correspond to the pre-computed initial data files are available in the ICS directory. Comments on the main input parameters are given on the grid data and SPH data wiki pages. Some statistics intended for "sanity checks" are available here.

Output analysis utilities
To speed-up and simplify the comparison of results, a number of IDL and Fortran analysis utilities are available.

Executing the Utility Binaries
Provided your UNIX path is set up correctly you can use the precompiled binaries to produce grid and SPH initial data files, or else just copy and read the data files that already exist in the ICS/data directory.

Modifying and Compiling the Utilities
The source code of these utilities is available, for browsing or for modification. A typical use is to replace the I/O procedures (which are in the files **io_grid.f90** and **io_sph.f90**, respectively) with your own I/O routines. Alternative, you can write a small conversion program, by combining the read routines from these files with your own write routines.

//**You also need to modify and recompile the utilities to produce MHD initial data files that satisfy div(B)=0 with your codes specific definition of the div operator.**//

For improving/relaxing SPH initial conditions, there is also a code (in subdirectory **Inutsuka/** of the utility source code) to iterate SPH particle distributions towards a state where SPH gas pressure gradients are maximally consistent with the grid-based gas pressure gradients (courtesy Shu-Ishiro Inutsuka).