diff --git a/TODO.md b/TODO.md index fc8a365..fbd7b7d 100644 --- a/TODO.md +++ b/TODO.md @@ -27,3 +27,6 @@ ## 7.03.21 - [x] Split the symetryPlane to 4 faces + +## 11.03.21 +- [x] Dual test for cyclicAMI diff --git a/src/simpleCubicFoam/run.sh b/src/simpleCubicFoam/run.sh new file mode 100755 index 0000000..f4a365a --- /dev/null +++ b/src/simpleCubicFoam/run.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +ideasUnvToFoam mesh.unv +createPatch -overwrite +#patchSummary +transformPoints -scale '1e-5' + +foamDictionary constant/polyMesh/boundary -entry entry0.cyclicPlaneL.separationVector -set '(0 1e-5 0)' +foamDictionary constant/polyMesh/boundary -entry entry0.cyclicPlaneR.separationVector -set '(0 -1e-5 0)' + +checkMesh -allGeometry -allTopology | tee -a checkMesh.log + +# +decomposePar + +mpirun -np 4 --oversubscribe potentialFoam -parallel | tee -a potentialFoam.log + +foamDictionary processor0/0/U -entry boundaryField.inlet.type -set pressureInletVelocity +foamDictionary processor1/0/U -entry boundaryField.inlet.type -set pressureInletVelocity +foamDictionary processor2/0/U -entry boundaryField.inlet.type -set pressureInletVelocity +foamDictionary processor3/0/U -entry boundaryField.inlet.type -set pressureInletVelocity +foamDictionary processor0/0/U -entry boundaryField.inlet.value -set 'uniform (0 0 0)' +foamDictionary processor1/0/U -entry boundaryField.inlet.value -set 'uniform (0 0 0)' +foamDictionary processor2/0/U -entry boundaryField.inlet.value -set 'uniform (0 0 0)' +foamDictionary processor3/0/U -entry boundaryField.inlet.value -set 'uniform (0 0 0)' + +mpirun -np 4 --oversubscribe simpleFoam -parallel | tee -a simpleFoam.log diff --git a/src/simpleCubicFoam/system/createPatchDict b/src/simpleCubicFoam/system/createPatchDict index 0b5e22d..e2efc6b 100644 --- a/src/simpleCubicFoam/system/createPatchDict +++ b/src/simpleCubicFoam/system/createPatchDict @@ -54,7 +54,7 @@ patches type cyclicAMI; neighbourPatch cyclicPlaneBW; transform translational; - separationVector (2 -2 0); + separationVector (-2 2 0); matchTolerance 1e-4; inGroups (cyclic); } @@ -71,7 +71,7 @@ patches type cyclicAMI; neighbourPatch cyclicPlaneFW; transform translational; - separationVector (-2 2 0); + separationVector (2 -2 0); matchTolerance 1e-4; inGroups (cyclic); } @@ -88,7 +88,7 @@ patches type cyclicAMI; neighbourPatch cyclicPlaneR; transform translational; - separationVector (-2 -2 0); + separationVector (2 2 0); matchTolerance 1e-4; inGroups (cyclic); } @@ -105,7 +105,7 @@ patches type cyclicAMI; neighbourPatch cyclicPlaneL; transform translational; - separationVector (2 2 0); + separationVector (-2 -2 0); matchTolerance 1e-4; inGroups (cyclic); } diff --git a/temp/run.sh b/temp/run.sh new file mode 100755 index 0000000..f4a365a --- /dev/null +++ b/temp/run.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +ideasUnvToFoam mesh.unv +createPatch -overwrite +#patchSummary +transformPoints -scale '1e-5' + +foamDictionary constant/polyMesh/boundary -entry entry0.cyclicPlaneL.separationVector -set '(0 1e-5 0)' +foamDictionary constant/polyMesh/boundary -entry entry0.cyclicPlaneR.separationVector -set '(0 -1e-5 0)' + +checkMesh -allGeometry -allTopology | tee -a checkMesh.log + +# +decomposePar + +mpirun -np 4 --oversubscribe potentialFoam -parallel | tee -a potentialFoam.log + +foamDictionary processor0/0/U -entry boundaryField.inlet.type -set pressureInletVelocity +foamDictionary processor1/0/U -entry boundaryField.inlet.type -set pressureInletVelocity +foamDictionary processor2/0/U -entry boundaryField.inlet.type -set pressureInletVelocity +foamDictionary processor3/0/U -entry boundaryField.inlet.type -set pressureInletVelocity +foamDictionary processor0/0/U -entry boundaryField.inlet.value -set 'uniform (0 0 0)' +foamDictionary processor1/0/U -entry boundaryField.inlet.value -set 'uniform (0 0 0)' +foamDictionary processor2/0/U -entry boundaryField.inlet.value -set 'uniform (0 0 0)' +foamDictionary processor3/0/U -entry boundaryField.inlet.value -set 'uniform (0 0 0)' + +mpirun -np 4 --oversubscribe simpleFoam -parallel | tee -a simpleFoam.log