Skip to content

Formats

ASCII

MICRESS writes refined simulation data and logging information to ASCII/UTF-8 files.

In MICRESS Tab{X} files, data is formatted in a tabular form - showing for each simulation time step the corresponding simulation data related to {X}. For instance, the TabC file will contain the minimum, maximum and average concentration for each time step and phase component as well as the temperate during each time step.

Example of a MICRESS TabC tabular file

# Simulation     Temp         Phase 0 component 1 [at%]
# time [s]       [K]          Average      Minimum      Maximum
  0.100000       911.000      3.00474E+00  3.00000E+00  3.93393E+00
  0.200000       910.000      3.01433E+00  3.00000E+00  4.09715E+00 
  0.300000       909.000      3.03208E+00  3.00000E+00  4.25593E+00
  0.400000       908.000      3.06328E+00  3.00000E+00  4.40486E+00
  0.500000       907.000      3.11536E+00  3.00000E+00  4.59538E+00
  0.600000       906.000      3.17357E+00  3.00001E+00  4.68897E+00

You can open ASCII files with every text editor and import tabular data in many tools including Python and Microsoft Excel.

Binary

MICRESS stores raw field data either in a proprietary binary format or in VTK.

You can use DP_MICRESS to post-process MICRESS field data. Alternatively you may use the following specification to directly read the data using your favorite programming language.

Specification

Byte 1 Rest
Header Payload

Payload

Input Parameter Chunk 1 ··· Chunk N
binary_unzip Time step 1 ··· Time step N
binary_zip compress(Time step 1) ··· compress(Time step N)

Time step

Byte 1 Byte 2 Rest
Time step
Float
Grid size X·Y·Z
Integer
Field data

Field data

Byte 1 Byte 2 ··· Byte X·Y·Z
Field value at
x=1, y=1, z=1
Float
Field value at
x=2, y=1, z=1
Float

···
Field value at
x=X, y=Y, z=Z
Float

VTK

The Visualization Toolkit (VTK) library provides a XML based data format offering a consistent data representation scheme for a variety of data types. MICRESS supports VTK data output as an alternative to its native binary format.