|
[Sponsors] |
[PyFoam] start Runner from python with machinefile |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 27, 2013, 11:35 |
start Runner from python with machinefile
|
#1 |
New Member
Deutschland
Join Date: Jun 2013
Posts: 2
Rep Power: 0 |
Hello everyone,
I have a small issue with pyFoam: I wrote a script for my local machine and it uses this to call the solver Code:
machine=LAMMachine(nr=no_proc) theRun=AnalyzedRunner(analyzer, argv=[solver,"-case",work.name], silent=False, lam=machine) theRun.start() I tried the following: Code:
machine=LAMMachine(machines=nodefile,nr=no_proc) theRun=AnalyzedRunner(analyzer, argv=["potentialFreeSurfaceAPMFoam","-case",work.name], silent=True, lam=machine) theRun.start() Code:
run_str="mpirun -hostfile "+nodefile+" -np "+str(no_proc)+" "+ solver +" -case "+work.name+ " -parallel &> solver."+outputName_nospc+".log" os.system(run_str) Any suggestions on how to setup the correct call for pyFoamRunner will be appreciated Thanks in advance, Arne |
|
August 28, 2013, 10:28 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Additional questions: Does the parallel script work on the local machine? Is the Distro on the local machine the same as on the cluster? Are you from Ireland (answer only required in case of the Lepreachauns)? See slide 53 and following of http://openfoamwiki.net/images/8/84/...ining_OFW8.pdf and try to set Code:
[Debug] ParallelExecution: True
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
Tags |
pyfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
using chemkin | JMDag2004 | OpenFOAM Pre-Processing | 2 | March 8, 2016 23:38 |
Sample not working correctly | sihaqqi | OpenFOAM Running, Solving & CFD | 1 | July 12, 2014 02:36 |
[OpenFOAM] paraview v4 - building with python - OF2.3.0, PVv4, Python 2.7 | aylalisa | ParaView | 4 | June 13, 2014 09:52 |
Plz Help on how to start coding (Beginner) | Nikhil T | Main CFD Forum | 0 | March 13, 2014 14:09 |
Lets start the public domain CFD-Project! | Heinz Wilkening | Main CFD Forum | 3 | March 11, 1999 23:55 |