DAMASK_EICMD/processing/pre/geom_check.sh

26 lines
365 B
Bash
Raw Normal View History

#!/usr/bin/env bash
if [[ "$1" == "-f" || "$1" == "--float" ]]; then
shift
arg='--float'
else
arg=''
fi
for geom in "$@"
do
geom_toTable $arg \
2016-04-25 12:10:36 +05:30
< $geom \
| \
vtk_rectilinearGrid > ${geom%.*}.vtk
geom_toTable $arg \
< $geom \
| \
vtk_addRectilinearGridData \
--vtk ${geom%.*}.vtk \
--data microstructure \
2016-04-25 12:10:36 +05:30
rm ${geom%.*}.vtk
done