forked from syguan96/NeuroFluid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
23 lines (20 loc) · 663 Bytes
/
run.sh
File metadata and controls
23 lines (20 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
OUTPUT_SCENES_DIR=$1
mkdir $OUTPUT_SCENES_DIR
for seed in `seq 1 1`; do
python create_physics_scenes.py \
--output $OUTPUT_SCENES_DIR \
--seed $seed \
--default-fluid \
--default-box \
--default-viscosity \
--default-density \
--default-vel \
--obj2volume_scale 1.0
done
dirs=`ls $OUTPUT_SCENES_DIR`
for dir in $dirs; do
mkdir $OUTPUT_SCENES_DIR/$dir/mesh
python create_surface_meshes.py \
--input_glob "$OUTPUT_SCENES_DIR/$dir/output/fluid*.npz" \
--outdir $OUTPUT_SCENES_DIR/$dir/mesh/
done