Compare commits
No commits in common. "46d6eaf17164c17be2e52ad1db5b7d81ee5be3a5" and "f1d61d0a4caafb43729ab6d39928665fdf28e3c2" have entirely different histories.
46d6eaf171
...
f1d61d0a4c
6 changed files with 83 additions and 0 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
translate([150, 0, 0])
|
||||||
|
mirror([1, 0, 0])
|
||||||
|
rotate([90, 0, 0])
|
||||||
|
translate([0, 0, -10])
|
||||||
|
linear_extrude(20)
|
||||||
|
polygon({});
|
|
@ -59,6 +59,8 @@ boundaryField
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type waveAbsorption2DVelocity;
|
type waveAbsorption2DVelocity;
|
||||||
|
absorptionDir 666.0;
|
||||||
|
value uniform (0 0 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
0
openfoam/artha/artha.OpenFOAM
Normal file
0
openfoam/artha/artha.OpenFOAM
Normal file
21
openfoam/artha/cleanCase
Normal file
21
openfoam/artha/cleanCase
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
shopt -s extglob
|
||||||
|
|
||||||
|
directory=`pwd`
|
||||||
|
|
||||||
|
read -p "Clearing case. Are you sure? (y/N) " -n 1 -r
|
||||||
|
echo ' '
|
||||||
|
if ! [[ $REPLY =~ ^[Yy]$ ]]
|
||||||
|
then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d "./constant/polyMesh" ]; then
|
||||||
|
cd ./constant/polyMesh
|
||||||
|
rm -fr !(blockMeshDict)
|
||||||
|
cd $directory
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fr *[0-9].[0-9]* [0-9] [1-9]* gaugesVOF gaugesP postProcessing processor*
|
||||||
|
rm -f *.log
|
||||||
|
#rm -f constant/turbulenceProperties
|
28
openfoam/artha/runCaseKEpsilon
Normal file
28
openfoam/artha/runCaseKEpsilon
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cp constant/turbulenceProperties_keps constant/turbulenceProperties
|
||||||
|
|
||||||
|
echo blockMesh meshing...
|
||||||
|
blockMesh #> blockMesh.log
|
||||||
|
|
||||||
|
echo snappyHexMesh meshing...
|
||||||
|
snappyHexMesh -overwrite #> snappyHexMesh.log
|
||||||
|
|
||||||
|
echo Preparing 0 folder...
|
||||||
|
cp -r 0.org/ 0
|
||||||
|
|
||||||
|
echo Setting the fields...
|
||||||
|
setFields #> setFields.log
|
||||||
|
|
||||||
|
#olaFlow
|
||||||
|
echo Decomposing domain...
|
||||||
|
decomposePar #> decomposePar.log
|
||||||
|
|
||||||
|
echo Running...
|
||||||
|
mpirun -np 4 olaFlow -parallel #> olaFlow.log
|
||||||
|
|
||||||
|
echo Reconstructing domain...
|
||||||
|
reconstructPar
|
||||||
|
echo Simulation complete
|
26
openfoam/artha/runCaseSST
Normal file
26
openfoam/artha/runCaseSST
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p 0
|
||||||
|
|
||||||
|
cp constant/turbulenceProperties_sst constant/turbulenceProperties
|
||||||
|
|
||||||
|
echo blockMesh meshing...
|
||||||
|
blockMesh #> blockMesh.log
|
||||||
|
|
||||||
|
echo snappyHexMesh meshing...
|
||||||
|
snappyHexMesh -overwrite #> snappyHexMesh.log
|
||||||
|
|
||||||
|
echo Preparing 0 folder...
|
||||||
|
rm -fr 0
|
||||||
|
cp -r 0.org 0
|
||||||
|
|
||||||
|
echo Setting the fields...
|
||||||
|
setFields #> setFields.log
|
||||||
|
|
||||||
|
echo Decomposing domain...
|
||||||
|
decomposePar #> decomposePar.log
|
||||||
|
|
||||||
|
echo Running...
|
||||||
|
mpirun -np 4 olaFlow -parallel #> olaFlow.log
|
||||||
|
|
||||||
|
echo Simulation complete
|
Reference in a new issue