2025-07-03 20:11:40 +08:00
|
|
|
#!/bin/sh
|
2025-07-04 22:42:56 +03:30
|
|
|
|
|
|
|
set -e # Exit immediately if a command exits with a non-zero status
|
2025-07-03 20:11:40 +08:00
|
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
2025-07-04 22:42:56 +03:30
|
|
|
|
|
|
|
echo "\n<--------------------------------------------------------------------->"
|
|
|
|
echo "0) Copying stl files"
|
|
|
|
echo "\n<--------------------------------------------------------------------->"
|
|
|
|
mkdir -p stl
|
|
|
|
cp -rfv $pFlow_PROJECT_DIR/resources/stls/helicalMixer/* ./stl/
|
|
|
|
|
2025-07-03 20:11:40 +08:00
|
|
|
echo "\n<--------------------------------------------------------------------->"
|
|
|
|
echo "1) Creating particles"
|
|
|
|
echo "<--------------------------------------------------------------------->\n"
|
|
|
|
particlesPhasicFlow
|
|
|
|
|
|
|
|
echo "\n<--------------------------------------------------------------------->"
|
|
|
|
echo "2) Creating geometry"
|
|
|
|
echo "<--------------------------------------------------------------------->\n"
|
|
|
|
geometryPhasicFlow
|
|
|
|
|
|
|
|
echo "\n<--------------------------------------------------------------------->"
|
|
|
|
echo "3) Running the case"
|
|
|
|
echo "<--------------------------------------------------------------------->\n"
|
|
|
|
sphereGranFlow
|
|
|
|
|
|
|
|
echo "\n<--------------------------------------------------------------------->"
|
|
|
|
echo "4) Converting to VtK"
|
|
|
|
echo "<--------------------------------------------------------------------->\n"
|
|
|
|
pFlowToVTK -f diameter id velocity --binary
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|