2016-05-11 14:31:39 +05:30
|
|
|
#!/usr/bin/env bash
|
2016-04-25 00:08:36 +05:30
|
|
|
|
2016-11-30 10:29:13 +05:30
|
|
|
if [[ "$1" == "-f" || "$1" == "--float" ]]; then
|
|
|
|
shift
|
|
|
|
arg='--float'
|
|
|
|
else
|
|
|
|
arg=''
|
|
|
|
fi
|
|
|
|
|
2016-04-25 00:08:36 +05:30
|
|
|
for geom in "$@"
|
|
|
|
do
|
2016-11-30 10:29:13 +05:30
|
|
|
geom_toTable $arg \
|
2016-04-25 12:10:36 +05:30
|
|
|
< $geom \
|
|
|
|
| \
|
|
|
|
vtk_rectilinearGrid > ${geom%.*}.vtk
|
2016-04-25 00:08:36 +05:30
|
|
|
|
2016-11-30 10:29:13 +05:30
|
|
|
geom_toTable $arg \
|
2016-04-25 00:08:36 +05:30
|
|
|
< $geom \
|
|
|
|
| \
|
|
|
|
vtk_addRectilinearGridData \
|
2019-02-26 05:00:45 +05:30
|
|
|
--vtk ${geom%.*}.vtk \
|
2016-09-22 01:31:16 +05:30
|
|
|
--data microstructure \
|
2019-02-26 05:00:45 +05:30
|
|
|
|
2016-04-25 12:10:36 +05:30
|
|
|
rm ${geom%.*}.vtk
|
2016-04-25 00:08:36 +05:30
|
|
|
done
|