Working with cyclicAMI
This commit is contained in:
parent
bfb6acf7ad
commit
bddad0d846
3
TODO.md
3
TODO.md
@ -27,3 +27,6 @@
|
||||
|
||||
## 7.03.21
|
||||
- [x] Split the symetryPlane to 4 faces
|
||||
|
||||
## 11.03.21
|
||||
- [x] Dual test for cyclicAMI
|
||||
|
27
src/simpleCubicFoam/run.sh
Executable file
27
src/simpleCubicFoam/run.sh
Executable file
@ -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
|
@ -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);
|
||||
}
|
||||
|
27
temp/run.sh
Executable file
27
temp/run.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user