Basics
Documentation
Examples
Basics
Documentation
Examples
This is an old revision of the document!
As mentioned in the computational domain section, everything is computed on rectangular domain consisting of rectangular voxels. Ways of loading medium data from different input file types are described there as well.
Here we describe more in detail how to prepare these input files. If VTK file input is used, the files are typically prepared using some script, directly writing the regular unstructured mesh VTK file (ASCII format). This is the simplest 3D input format possible. Every voxel is addressed by an integer, which should correspond to entries in the materials file. Material with index 0 is always vacuum, the others can be defined freely in the materials file. The total span of integer values in the VTK file should match (or be smaller) than the number material file entries.
In case of vector file input, the information is provided in a form of simple geometric entities (e.g. a sphere) that are placed to the computational domain and interpreted by the software. In general, object entries are composed from the object type (integer), positions and sizes (doubles). The last entry is always the material index, which again should match the materials file.