# !/bin/bash
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl/system
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox/system
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox/system
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl/system

 # cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl

 # cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox
 # cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl

# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl

 # cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshEmptyDir/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshEmptyDir/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshEmptySprying/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox/constant
 # cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshEmptySprying/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl/constant

 # cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneCompleta/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneX/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneX/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox/constant
 # cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneCompleta/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl/constant


# #SENSIBILITY

# cd ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case1
# setFields
# interFoam > log.case1
# cd ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case1/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case1/postProcessing/forces/0/outforces_dat.txt
# cat outforces_dat.txt >> ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/outGlobal.txt

# cd ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case2
# setFields
# interFoam > log.case2
# cd ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case2/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case2/postProcessing/forces/0/outforces_dat.txt
# cat outforces_dat.txt >> ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/outGlobal.txt

# cd ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case3
# setFields
# interFoam > log.case3
# cd ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case3/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case3/postProcessing/forces/0/outforces_dat.txt
# cp outforces.xls ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case3/postProcessing/forces/0/outforces.xls
# cat outforces_dat.txt >> ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/outGlobal.txt

# cd ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case4
# setFields
# interFoam > log.case4
# cd ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case4/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/case4/postProcessing/forces/0/outforces_dat.txt
# cat outforces_dat.txt >> ~/OpenFOAM/volpatto-11/run/sensibility/infittimentoMesh/outGlobal.txt

# #EMPTY

# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl
# setFields
# interFoam 
# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl/postProcessing/forces/0/outforces_dat.txt
# cp outforces.xls ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_acccompl/postProcessing/forces/0/outforces.xls
# cat outforces_dat.txt >> ~/OpenFOAM/volpatto-11/run/50%Riempimento/outGlobal.txt

# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox
# setFields
# interFoam 
# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox/postProcessing/forces/0/outforces_dat.txt
# cp outforces.xls ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneVolo_accsolox/postProcessing/forces/0/outforces.xls

# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox
# setFields
# interFoam 
# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox/postProcessing/forces/0/outforces_dat.txt
# cp outforces.xls ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_accsolox/postProcessing/forces/0/outforces.xls

# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl
# setFields
# interFoam 
# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl/postProcessing/forces/0/outforces_dat.txt
# cp outforces.xls ~/OpenFOAM/volpatto-11/run/50%Riempimento/Empty2/direzioneSprying_acccompl/postProcessing/forces/0/outforces.xls

## BUFFLES

# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox/system

# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox/system


# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox

# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox

# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox

# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshBufflesDir/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshBufflesSprying/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox/constant

# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneX/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneX/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox/constant


cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox
# setFields
interFoam 
cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox/postProcessing/forces/0
touch outforces_dat.txt
cp forces.dat /mnt/c/acc2/forces.dat
cd /mnt/c/acc2
gcc -o logRead2 logRead2.c
./logRead2
cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneSprying_accsolox/postProcessing/forces/0/outforces_dat.txt

# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox
# setFields
# interFoam 
# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/direzioneVolo_accsolox/postProcessing/forces/0/outforces_dat.txt

## NUOVA CONFIGURAZIONE BAFFLES
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2/system



# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshBuffles2Conf/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneX/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2/constant


cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2
# setFields
interFoam 
cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2/postProcessing/forces/0
touch outforces_dat.txt
cp forces.dat /mnt/c/acc2/forces.dat
cd /mnt/c/acc2
gcc -o logRead2 logRead2.c
./logRead2
cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Buffles/Conf2/postProcessing/forces/0/outforces_dat.txt

## STEP RESPONSE

# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff/system



# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshBuffles2Conf/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneStep/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff/constant


# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff
# setFields
# interFoam 
# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/buff/postProcessing/forces/0/outforces_dat.txt

# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty/0
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty/constant
# mkdir ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty/system



# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/0 ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/system ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/constant ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/MeshEmptyDir/polyMesh ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty/constant
# cp -r ~/OpenFOAM/volpatto-11/run/50%Riempimento/backup/accelerazioneStep/accel.dat ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty/constant


# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty
# setFields
# interFoam 
# cd ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty/postProcessing/forces/0
# touch outforces_dat.txt
# cp forces.dat /mnt/c/acc2/forces.dat
# cd /mnt/c/acc2
# gcc -o logRead2 logRead2.c
# ./logRead2
# cp outforces_dat.txt ~/OpenFOAM/volpatto-11/run/50%Riempimento/Step/empty/postProcessing/forces/0/outforces_dat.txt


