W-SLDA Toolkit provides various tools that may support the computation and data analysis process. In order to create them enter tools folder and edit (if necessary) header of Makefile. Next execute
make
Executables will be written to wslda/tools/bin
folder.
W-DATA format related tools
wdata-cut
Purpose: extracts subset from existing wdata set.
In many cases, for testing purposes, it is sufficient to have only a sample of data (for example to download it locally and test a code). You can use wdata-cut
tool to extract a data sample. The syntax is following:
WDATA SUBSET EXTRACTOR
Usage: ./wdata-cut file.wtxt outprefix start stop
or
Usage: ./wdata-cut file.wtxt outprefix start stop stride
file.wtxt - metadata file
outprefix - for new files, metadata file will be written to outprefix.wtxt
[start,stop) - range for subtructing cycles
stride - every `stride` frame will be taken only from given range, default stride=1
For example to extract the first cycle only:
[wtools@dell tools]$ ./wdata-cut ../lib-wdata/test.wtxt ./sample 0 1
WDATA SUBSET EXTRACTOR
WORKING DIR: `../lib-wdata` --> `.`
SUBTRUCTION RANGE: [0,1)
READING FILE: `../lib-wdata/test.wtxt`
WRITING NEW METADAFILE: `./sample.wtxt`
DONE.
wdata-sample
Purpose: creates new data set, where only every stride
measurement is present.
This tool is very similar to wdata-cut
tool with change that it strides the data set. The syntax is following:
Usage: wdata-sample file.wtxt outprefix stride
file.wtxt - metadata file
outprefix - for new files, metadata file will be written to outprefix.wtxt
stride - take only every stride measurment
dpca2wdata
Purpose: creates wtxt metadata file for existing dpca files.
Syntax:
[wtools@dell tools]$ ./dpca2wdata
Usage: ./dpca2wdata prefix
prefix - prefix of dpca files
Example of usage:
[wtools@node2066 CALC-UFG]$ ls ufg1V0.6*.dpca
ufg1V0.6_current_a.dpca ufg1V0.6_current_b.dpca ufg1V0.6_delta.dpca ufg1V0.6_density_a.dpca ufg1V0.6_density_b.dpca
[wtools@node2066 CALC-UFG]$ dpca2wdata ufg1V0.6
DPCA -> WDATA CONVERTER
WORKING DIR: `.`
READING HEADER OF `ufg1V0.6_density_a.dpca`
--------------------------------
NX 768 # lattice
NY 96 # lattice
NZ 1 # lattice
DX 1 # spacing
DY 1 # spacing
DZ 1 # spacing
datadim 3 # dimension of block size: 1=NX, 2=NX*NY, 3=NX*NY*NZ
prefix ufg1V0.6 # prefix for files belonging to this data set, binary files have names prefix_variable.format
cycles 1001 # number of cycles (measurements)
t0 0 # time value for the first cycle
dt 1.3881 # time interval between cycles
# variables
# tag name type unit format
var density_a real none dpca
var density_b real none dpca
var delta complex none dpca
var current_a vector none dpca
var current_b vector none dpca
# links
# tag name link-to
# consts
# tag name value
const eF 0.72
--------------------------------
GENERATED `ufg1V0.6.wtxt`
dpca2wdata-hard
Purpose: converts dpca file into wdata set.
DPCA -> WDATA HARD CONVERTER
Usage: ./dpca2wdata-hard prefix
prefix - prefix of dpca files
st-wslda related tools
wdata2checkpoint
Purpose: Converts W-DATA results into a checkpoint file that can be used as starting point for the self-consistent process.
Usage: ./wdata2checkpoint file.wtxt outprefix
or
Usage: ./wdata2checkpoint file.wtxt outprefix cycleid
or
Usage: ./wdata2checkpoint file.wtxt outprefix cycleid ec
or
Usage: ./wdata2checkpoint file.wtxt outprefix cycleid ec temperature
file.wtxt - metadata file
outprefix - checkpoint will be written to outprefix
cycleid - use given cycleid to create checkpoint file, default: cycleid=last cycle
ec - absolute value, default: ec=pi^2/(2*dx^2)
temperature - in eF units, default: temperature=0