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

Most efficient language for GUI

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

Like Tree3Likes
  • 1 Post By mkraposhin
  • 1 Post By wyldckat
  • 1 Post By r08n

Reply
 
LinkBack Thread Tools Display Modes
Old   December 27, 2012, 08:18
Default Most efficient language for GUI
  #1
Member
 
Join Date: Mar 2009
Posts: 85
Rep Power: 8
husker is on a distinguished road
Hi,

I would like to build a GUI for OpeFOAM, essentially for my clients.

Here I suppose that there are many experts on this subject, I would like to hear your recommendations about choosing the language.

The only requirement is that the language must operate platform independently.

Regards
husker is offline   Reply With Quote

Old   December 28, 2012, 06:21
Default
  #2
Senior Member
 
mkraposhin's Avatar
 
Matvej Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 172
Rep Power: 8
mkraposhin is on a distinguished road
I am using pyhton + Qt + Xml
mkraposhin is offline   Reply With Quote

Old   December 28, 2012, 07:06
Default
  #3
Member
 
Join Date: Mar 2009
Posts: 85
Rep Power: 8
husker is on a distinguished road
Do you think, what are the advantages and disadvantages of Pyhton?
Why wouldn't you use Java or C?

Regards
husker is offline   Reply With Quote

Old   December 28, 2012, 15:25
Default
  #4
Senior Member
 
mkraposhin's Avatar
 
Matvej Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 172
Rep Power: 8
mkraposhin is on a distinguished road
Answer is easy: Qt+Python can be inserted easily in SALOME. java and C - not
wyldckat likes this.
mkraposhin is offline   Reply With Quote

Old   December 29, 2012, 18:09
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

Indeed, Python+Qt make a tremendous combo! Both are heavily used in Salome and ParaView; although ParaView's own code is in C++.
And Python is pretty much the standard language for "all things science that need scripting" nowadays...

About 2-3 years ago, from best to worst should be something like this (from my personal view):
  1. C++ with Qt.
  2. Python with Qt.
  3. C# via Mono and/or .NET.
  4. Java.
I only have C++ as best, because of my personal grief with Python's strict indentation... I get lost on those crazy indentation cliffs with no end in sight...

Anyway... Nowadays, the perception of "multi-platform" has gained at least two new targets: iOS and Android. Which means that there are couple more potential coding strategies:
  • HTML5 + Javascript interface. Either via Qt or without Qt. The rest would be pretty much be coded in back office, so it will depend on where the back office is installed.
  • Objective C, using one of the still-under-development packages that work on any ... er... tablet/phone/pc...
These coding strategies can lead to a particular case: the clients only get a GUI. Everything else is made in a single platform on your server, or in a turn-key server that you provide them. Therefore, you only have to worry on what your server can run most efficiently and that you can code most efficiently as well.


But keep in mind that any of these will also depend on your clients. If they want to modify the code themselves later on, they might not agree with your preferences.

Best regards,
Bruno
husker likes this.
wyldckat is offline   Reply With Quote

Old   January 7, 2013, 12:07
Default
  #6
Member
 
Robertas N.
Join Date: Mar 2009
Location: Kaunas, Lithuania
Posts: 52
Rep Power: 8
r08n is on a distinguished road
If you want to build a GUI, you should think about the appropriate toolkit, not (so much) about the language, because the program will mostly make the API calls anyway. Qt has
been already mentioned, but maybe other toolkits are usable too (I have very little experience with GUIs to mention any). As for compatibility with Salome, ParaView, etc., it's important whether you are going to include pre- and postprocessing capabilities in the GUI at all.
husker likes this.
r08n 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
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 00:52
CFX basic language ndabir CFX 5 August 17, 2011 18:43
Additional Command Language -in Workbench! Elvira_Coot CFX 11 July 14, 2011 01:32
programming language for CFD, C, C++, FORTRAN,.... hadian Main CFD Forum 15 September 9, 2008 22:19
ALGOR? Its scripting language? Compare to Fluent? Chris Bailey Main CFD Forum 2 November 16, 2005 17:58


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