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

Creating an OpenFOAM GUI using PyQt

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 28, 2016, 10:40
Smile Creating an OpenFOAM GUI using PyQt
  #1
New Member
 
Mathew
Join Date: Jul 2016
Posts: 2
Rep Power: 0
MattCFD is on a distinguished road
Hi,
I am supposed to create a simple GUI for OpenFoam using python(PyQt) in a little more than 4 months. However, being a student of mechanical engineering, i only have basic-intermediate knowledge of python. How do you suggest i go about it? Any alternate suggestions are also welcome like using PyFoam instead of OpenFoam.


Also how do I use python to call OpenFoam functions and solvers like icoFOAM and snappyHexmesh and so on?


And finally, do you think that its possible to make an extremely basic simple GUI without post processing capabilities in the given time frame and current knowledge?


Thanks in advance.
MattCFD is offline   Reply With Quote

Old   August 2, 2016, 06:55
Default
  #2
New Member
 
danielbanos10's Avatar
 
Join Date: Jun 2016
Location: Malaga, Spain
Posts: 15
Rep Power: 2
danielbanos10 is on a distinguished road
Hello,
I did my own GUI with python, it is very simple gui, and in 4 month you can programm something like it. I used:
-Gtk and Glade for gui building.

- For running solvers you can use the comand "system" for linux. An example:
"system('mpirun -np '+str(nproces)+' simpleFoam -parallel > log.simpleFoam')"

Good luck.
danielbanos10 is offline   Reply With Quote

Old   August 30, 2016, 09:06
Default
  #3
New Member
 
Thien Xuan Dinh
Join Date: Jul 2014
Location: Japan
Posts: 7
Rep Power: 4
dinh is on a distinguished road
Dear danielbanos10

It sounds great.
Could you upload your simple code here?


Quote:
Originally Posted by danielbanos10 View Post
Hello,
I did my own GUI with python, it is very simple gui, and in 4 month you can programm something like it. I used:
-Gtk and Glade for gui building.

- For running solvers you can use the comand "system" for linux. An example:
"system('mpirun -np '+str(nproces)+' simpleFoam -parallel > log.simpleFoam')"

Good luck.
dinh 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
Helyx-OS Open Source GUI for OpenFOAM eugene OpenFOAM Announcements from Other Sources 25 May 11, 2017 13:33
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 16 April 25, 2017 12:31
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 9 March 30, 2017 05:19
Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 22 January 21, 2013 12:51
OpenFOAM GUI Virtual-iCFD OpenFOAM Pre-Processing 4 January 8, 2011 16:56


All times are GMT -4. The time now is 00:39.