Solution converged
This commit is contained in:
parent
a9959b1f68
commit
e0a63c1c9b
24
run.sh
24
run.sh
@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
path=.
|
|
||||||
#build/simple-cubic/0.1
|
|
||||||
|
|
||||||
# python src/genmesh.py
|
|
||||||
# python src/prefoam.py
|
|
||||||
|
|
||||||
rm -r postProcessing processor* *.log logs constant/polymesh
|
|
||||||
|
|
||||||
ideasUnvFoam -case $path mesh.unv
|
|
||||||
polyDualMesh 70 -overwrite
|
|
||||||
checkMesh -case $path -allGeometry -allTopology
|
|
||||||
foamDictionary -case $path constant/polyMesh/boundary -entry entry0.wall.type -set wall
|
|
||||||
|
|
||||||
|
|
||||||
potentialFoam -case $path
|
|
||||||
|
|
||||||
decomposePar -case $path
|
|
||||||
|
|
||||||
foamDictionary -case $path 0/U -entry boundary.inlet.type -set pressureInletVelocity
|
|
||||||
foamDictionary -case $path 0/U -entry boundary.inlet.value -set 'uniform (0 0 0)'
|
|
||||||
mpirun -np 4 --oversubscribe simpleFoam -parallel -case $path > $path/simpleFoam.log
|
|
||||||
|
|
110785
src/simple-cubic/0/U
110785
src/simple-cubic/0/U
File diff suppressed because it is too large
Load Diff
@ -57,7 +57,7 @@ solvers
|
|||||||
|
|
||||||
potentialFlow
|
potentialFlow
|
||||||
{
|
{
|
||||||
nNonOrthogonalCorrectors 10;
|
nNonOrthogonalCorrectors 20;
|
||||||
PhiRefCell 0;
|
PhiRefCell 0;
|
||||||
PhiRefPoint 0;
|
PhiRefPoint 0;
|
||||||
PhiRefValue 0;
|
PhiRefValue 0;
|
||||||
|
7
src/tools/changeInitial.sh
Executable file
7
src/tools/changeInitial.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
for n in {0..3}; do
|
||||||
|
|
||||||
|
foamDictionary "processor${n}/0/U" -entry boundaryField.inlet.type -set pressureInletVelocity
|
||||||
|
foamDictionary "processor${n}/0/U" -entry boundaryField.inlet.value -set 'uniform (0 0 0)'
|
||||||
|
done
|
36
src/tools/run.sh
Executable file
36
src/tools/run.sh
Executable file
@ -0,0 +1,36 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
path=.
|
||||||
|
#build/simple-cubic/0.1
|
||||||
|
|
||||||
|
# python src/genmesh.py
|
||||||
|
# python src/prefoam.py
|
||||||
|
|
||||||
|
# Clean case directory
|
||||||
|
rm -rf postProcessing processor* *.log logs *.obj constant/polyMesh
|
||||||
|
|
||||||
|
# Export and transform mesh
|
||||||
|
ideasUnvFoam -case $path mesh.unv
|
||||||
|
transformPoints -scale '(0.001 0.001 0.001)'
|
||||||
|
#polyDualMesh 70 -overwrite
|
||||||
|
checkMesh -case $path -allGeometry -allTopology > checkMesh.log
|
||||||
|
|
||||||
|
# Change boundary type for mesh
|
||||||
|
foamDictionary -case $path constant/polyMesh/boundary -entry entry0.wall.type -set wall
|
||||||
|
|
||||||
|
# Case decomposition
|
||||||
|
decomposePar -case $path
|
||||||
|
|
||||||
|
# Initial approximation
|
||||||
|
potentialFoam -case $path -parallel
|
||||||
|
|
||||||
|
# Change boundary type for simpleFoam
|
||||||
|
for n in {0..3}; do
|
||||||
|
|
||||||
|
foamDictionary "processor${n}/0/U" -entry boundaryField.inlet.type -set pressureInletVelocity
|
||||||
|
foamDictionary "processor${n}/0/U" -entry boundaryField.inlet.value -set 'uniform (0 0 0)'
|
||||||
|
done
|
||||||
|
|
||||||
|
# Main calculation
|
||||||
|
mpirun -np 4 --oversubscribe simpleFoam -parallel -case $path > $path/simpleFoam.log
|
||||||
|
|
BIN
worksheet/cube_260221.hdf
Normal file
BIN
worksheet/cube_260221.hdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user