|
[Sponsors] | |||||
How to run the 3dTube case in parallel (foam-extend 3.1 with FSI from Zagreb)? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Lucas Ribeiro
Join Date: Aug 2016
Posts: 23
Rep Power: 11 ![]() |
Hello guys!!
Does anybody know how to run the 3dTube case in parallel (foam-extend 3.1 with FSI from Zagreb)? Thanks Edit 1 (27-Set-2016): I managed to run and the bash script(it's my first draft) that I used is the following: File: AllcleanPar Code:
#!/bin/sh # Source tutorial clean functions . $WM_PROJECT_DIR/bin/tools/CleanFunctions cleanCase \rm -f constant/polyMesh/boundary \rm -rf history \rm -f constant/solid/polyMesh/boundary \rm -rf constant/solid/polyMesh/[c-z]* \rm -rf ../solid/VTK cd ../solid cleanCase # ----------------------------------------------------------------- end-of-file Code:
#!/bin/sh
rmLinks ()
{
rm 0/solid
rm constant/solid
rm system/solid
}
makeLinks ()
{
cd system
ln -s ../../solid/system solid
cd ../constant
ln -s ../../solid/constant solid
cd ../0
ln -s ../../solid/0 solid
cd ..
}
rmLinks
makeLinks
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get application name
application=`getApplication`
runApplication -l log.blockMesh.solid blockMesh -region solid
runApplication -l log.setSet.solid setSet -case ../solid -batch ../solid/setBatch
runApplication -l log.setToZones.solid setsToZones -case ../solid -noFlipMap
runApplication blockMesh
runApplication setSet -batch setBatch
runApplication setsToZones -noFlipMap
runApplication decomposeParFsi
cd ../solid
runApplication decomposeParFsi -case ../solid
# ----------------------------------------------------------------- end-of-file
Code:
#!/bin/bash for proc in processor* do cd $proc cd 0 ln -s ../../../solid/$proc/0 solid cd ../constant ln -s ../../../solid/$proc/constant solid cd ../.. done # ----------------------------------------------------------------- end-of-file Code:
#!/bin/sh # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions # Get application name application=`getApplication` #mpirun -np 8 $application -parallel > log.parallel & runParallel $application 8 #runApplication $application # ----------------------------------------------------------------- end-of-file Code:
$ reconstructParFsi -region solid $ reconstructParFsi Last edited by Warlord; September 27, 2016 at 07:30. Reason: Adding the answer |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Sam
Join Date: Nov 2017
Posts: 24
Rep Power: 10 ![]() |
Hey men,
were you able to run your fsiFoam case in parallel? If yes, can you share how you did it? Thanks Samuel |
|
|
|
|
|
![]() |
| Tags |
| foam-extend 3.1, fsi |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [DesignModeler] DesignModeler Scripting: How to get Full Command Access | ANT | ANSYS Meshing & Geometry | 54 | August 20, 2025 00:15 |
| InterDyMFoam+simpleFunctionObject | Elham | OpenFOAM Running, Solving & CFD | 5 | July 10, 2017 12:59 |
| damBreak case parallel run problem | behzad-cfd | OpenFOAM Running, Solving & CFD | 5 | August 2, 2015 18:18 |
| [blockMesh] error message with modeling a cube with a hold at the center | hsingtzu | OpenFOAM Meshing & Mesh Conversion | 2 | March 14, 2012 10:56 |
| Run in parallel a 2mesh case | cosimobianchini | OpenFOAM Running, Solving & CFD | 2 | January 11, 2007 07:33 |