|
[Sponsors] |
trying to run OpenFOAM using python sending commmand lines |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 23, 2021, 16:02 |
trying to run OpenFOAM using python sending commmand lines
|
#1 |
Member
|
Hello Foamers,
how to run follwing command: Code:
mpirun -np 4 interFoam -parallel > log & tail -f log My perpose is to run the command, simlutaniouly show the running log in terminal, as well as read the 'log' file using the python script and once it read the message ''Finalising Parallel run" in that log file then run follwing command: Code:
pkill interFoam |
|
February 25, 2021, 20:30 |
|
#3 |
Member
|
Hello,
Anyone know how to use PyFoam and convrt above mentioned command and make OpenFOAM simulation run through PyFoam? Essntially, I'm trying to run PyFoam code which will equivalantly execute the below given code: Code:
mpirun -np 4 interFoam -parallel > log & tail -f log |
|
Tags |
automation, openfoam 7, python script |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
big difference between clockTime and executionTime | LM4112 | OpenFOAM Running, Solving & CFD | 21 | February 15, 2019 04:05 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 12:50 |
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 14, 2016 04:19 |
[OpenFOAM.org] A Mac OS X of23x Development Environment Using Docker | rt08 | OpenFOAM Installation | 1 | February 28, 2016 20:00 |
Python for openfoam | Divyaprakash | OpenFOAM Programming & Development | 1 | August 22, 2014 10:05 |