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

Multi job OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 13, 2013, 19:34
Default Multi job OpenFoam
  #1
Member
 
Gregoire Junqua
Join Date: Jun 2011
Location: China
Posts: 58
Blog Entries: 1
Rep Power: 6
gregjunqua is on a distinguished road
Hi there,
My problem is simple, I am doing the same experiment with different grid. I wanna know if there is a way to launch the different experiments one after one with one, with a script how will directly start the other job after the end of one simulation.

Thank you for your answers
-----------------------------------------------------------
Sorry i found some leads just after post the message there i will try it
running OF on local machine with batch script / job scheduler
gregjunqua is offline   Reply With Quote

Old   May 14, 2013, 04:49
Default
  #2
Member
 
Join Date: Nov 2012
Posts: 55
Rep Power: 4
Henning86 is on a distinguished road
just put this skript in the folder where all the folders with the simulation are and modify it. Skripting with linux is pretty easy just use the commands you normally type in the console



Code:
#!/bin/bash
 
for file in N400 ; do
    if [ -d "$file" ] ; then
      cd "$file";
 for file2 in TriQuad ; do
   if [ -d "$file2" ] ; then
         cd "$file2";
     echo "Starte Rechnung fuer den Ordner $file $file2"         
       mpirun -np 12 rhoCentralFoam -parallel > ${file2}Calc.log;
       reconstructPar > ${file2}reCon.log;
       Mach > ${file2}Mach.log;
     echo "$file $file2"
     cd ..;
     fi
      done
      cd ..;
    fi
done
Henning86 is offline   Reply With Quote

Old   May 14, 2013, 21:47
Default
  #3
Member
 
Gregoire Junqua
Join Date: Jun 2011
Location: China
Posts: 58
Blog Entries: 1
Rep Power: 6
gregjunqua is on a distinguished road
Hi, Thank you for your contrubution,
I use a simple script for now no time to do further for me

Quote:

blockMesh
decomposePar
mpirun -np 2 simpleFoam -parallel
reconstructPar
rm -r processor*

cd ..
cd job2
gregjunqua is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM Foundation Releases OpenFOAMŪ Version 2.1.1 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 May 31, 2012 09:07
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 11:32
Summer School on Numerical Modelling and OpenFOAM hjasak OpenFOAM 5 October 12, 2008 13:14
OpenFOAM Training and Workshop Hrvoje Jasak Main CFD Forum 0 October 7, 2005 07:14
cfd job Dr. Don I anyanwu Main CFD Forum 20 May 17, 1999 15:13


All times are GMT -4. The time now is 21:45.