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

Creating an OpenFOAM GUI using PyQt

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2016, 11: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, 07:55
Default
  #2
New Member
 
danielbanos10's Avatar
 
Join Date: Jun 2016
Location: Malaga, Spain
Posts: 15
Rep Power: 10
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, 10:06
Default
  #3
New Member
 
Thien Xuan Dinh
Join Date: Jul 2014
Location: Japan
Posts: 8
Rep Power: 12
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


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
Helyx-OS Open Source GUI for OpenFOAM eugene OpenFOAM Announcements from Other Sources 31 March 9, 2020 17:55
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 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 22:53.