CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to run the 3dTube case in parallel (foam-extend 3.1 with FSI from Zagreb)?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 26, 2016, 07:26
Default How to run the 3dTube case in parallel (foam-extend 3.1 with FSI from Zagreb)?
  #1
New Member
 
Lucas Ribeiro
Join Date: Aug 2016
Posts: 23
Rep Power: 10
Warlord is on a distinguished road
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
File: AllrunParallelStep1
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
File: makeLinksProc
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
File: AllrunParallelStep2
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
And after running successfully the case I run:
Code:
$ reconstructParFsi -region solid
$ reconstructParFsi

Last edited by Warlord; September 27, 2016 at 07:30. Reason: Adding the answer
Warlord is offline   Reply With Quote

Old   January 27, 2018, 15:48
Default fsi parallel
  #2
New Member
 
Sam
Join Date: Nov 2017
Posts: 24
Rep Power: 9
anufagbemi is on a distinguished road
Hey men,
were you able to run your fsiFoam case in parallel? If yes, can you share how you did it?

Thanks
Samuel
anufagbemi is offline   Reply With Quote

Reply

Tags
foam-extend 3.1, fsi


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[DesignModeler] DesignModeler Scripting: How to get Full Command Access ANT ANSYS Meshing & Geometry 53 February 16, 2020 16:13
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


All times are GMT -4. The time now is 14:34.