huachengli / SALEcVtsReader

a tool to read vtm/vts data generated by SALEc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SALEcVtsReader

This is a simple tool to read vtm/vts data generated by SALEc and output a slice plane data. This tool is much faster than pvbatch in ParView. The vtm/vts in SALEc is similar with citcoms and this tool can also applied to citcoms's binary output.

compile
cd SALEcVtsReader-dir
mkdir build 
cd build
cmake .. && make

The default compile flag is -O0 and it can be edited if necessary.

run

SALEcVtsRead need a input file to specify the vts/vtm data dir. The executable file is SALEcVtsReader in build dir after compiled. SALEcVtsReader requires a single argument.

./SALEcVtsReader ./plane.plot

./plane.plot can be replaced by other input file. The following is an example of input.

# example input files for SALEcVtsReader by huachengli
[SALEc]
    input = /home/huacheng/Documents/Github/data/pdata/SALEc_20.inp
    step  = [1,1]

[Plane]
    data = /home/huacheng/Documents/Github/data/pdata/Al1100Test
    step = [range,1,2,1]
    output = Plane
   
    number = 2
    name = [Density,Density]
    nx = [0.0, 0.0]
    ny = [1.0, 0.0]
    nz = [0.0, 1.0]
    d  = [0.0, 0.0]

About

a tool to read vtm/vts data generated by SALEc


Languages

Language:C 94.8%Language:Python 4.4%Language:CMake 0.4%Language:Shell 0.3%