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

OpenFOAM and KDevelop

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By majkl
  • 2 Post By t.oliveira
  • 1 Post By Lisandro Maders
  • 1 Post By t.oliveira

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2012, 07:23
Default OpenFOAM and KDevelop
  #1
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 14
majkl is on a distinguished road
Hello,

I'm new user of OpenFOAM. I've installed KDevelop (4.3.5) and I will use it for making changes, running and screening, .. in the OF. The problem is with the compiler.. I can't say the KDevelop to use wmake instead of make. I've tried this one

http://www.cfd-online.com/Forums/ope...m-project.html

but without succes. (There is no Build options). Can anyone help me? Thanks.

Majkl
majkl is offline   Reply With Quote

Old   May 31, 2012, 15:38
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Majkl,

I've never used KDevelop (as far as I can remember), so the closest I can suggest is this: Howto Use OpenFOAM with Eclipse

edit: wait, here's another one that should be better:Howto Use OpenFOAM with Kdevelop4

Good luck!
Bruno
__________________

Last edited by wyldckat; May 31, 2012 at 15:40. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   June 1, 2012, 06:53
Default
  #3
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 14
majkl is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
edit: wait, here's another one that should be better:Howto Use OpenFOAM with Kdevelop4

Good luck!
Bruno
Well, I tried the link above feew weeks ago but I couldn't find the possibility to change the compiler from make to wmake.

Now, I'm using eclipse. Thanks for advice.

Michal
majkl is offline   Reply With Quote

Old   June 18, 2012, 07:40
Default
  #4
New Member
 
Michal
Join Date: Apr 2012
Location: Czech Republic
Posts: 27
Rep Power: 14
majkl is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Majkl,

I've never used KDevelop (as far as I can remember), so the closest I can suggest is this: Howto Use OpenFOAM with Eclipse

edit: wait, here's another one that should be better:Howto Use OpenFOAM with Kdevelop4

Good luck!
Bruno
Hello Bruno,

I've returned to the KDevelop (ver. 4.2.3) because of some constrain in Eclipse.


I've found very good description of usage KDevelop with OpenFOAM:
http://dealii.sourceforge.net/index.php/Kdevelop


My problem with the compiler solved:
Menu -> Project -> Open Configuration -> Item Make executable - I put "wmake".


Best regards,
Michal
wyldckat likes this.
majkl is offline   Reply With Quote

Old   June 18, 2012, 16:01
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Michal,

Nice! And feel free to update the wiki page at openfoamwiki.net: http://openfoamwiki.net/index.php/Ho...with_Kdevelop4 !

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 21, 2014, 15:17
Default KDevelop4 and OpenFOAM
  #6
Senior Member
 
Join Date: Jan 2012
Posts: 166
Rep Power: 14
maybee is on a distinguished road
hi,

I installed and configured KDevelop as described here

http://openfoamwiki.net/index.php/Ho...with_Kdevelop4

Unfortunately when building the main of the multiphaseEulerFoam solver I only get the error

Quote:
wmake error: environment variable $WM_OPTIONS not set
Does someone know how to fix this problem?

greetings
maybee
maybee is offline   Reply With Quote

Old   February 21, 2014, 16:59
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings maybee,

I've moved your post to this thread, since it's the exact same topic
In addition, have a look into post #4: http://www.cfd-online.com/Forums/ope...tml#post366990

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 28, 2015, 15:44
Default
  #8
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Hi,

I have followed the tutorials mentioned on this thread but I can't yet get KDevelop to build the project using wmake.

Aparently, majkl suggestion:
Quote:
Originally Posted by majkl
My problem with the compiler solved:
Menu -> Project -> Open Configuration -> Item Make executable - I put "wmake".
doesn't work anymore on KDevelop 4.6.0. The only itens I see are "Project Filter" and "Custom BuildSystem".

The project can be built successfully by running "wmake".

I loaded it on KDevelop, went to Project > Open Configuration, item Custom BuildSystem and fill in the fields:

Build Configuration: wmake
Build Directory: <base_dir>
Action: Build
Enable: Yes
Executable: /home/thomas/OpenFOAM/OpenFOAM-2.3.1/wmake/wmake
Arguments: [blank]
Environment: default

However, when I press the button "Build", nothing happens: no compilation, no warnings, no errors, nothing at all.

Am I missing something? Is KDevelop working for you?

Best regards,

Oliveira
t.oliveira is offline   Reply With Quote

Old   April 30, 2015, 12:30
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Try launching KDevelop from the command line, namely one where OpenFOAM is working.
wyldckat is offline   Reply With Quote

Old   May 21, 2015, 16:11
Default
  #10
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Thank you. If I remember correctly, your suggestion worked. However, I faced other problems and limitations. Finally, I turned to Qt Creator: https://openfoamwiki.net/index.php/H...with_QtCreator
wyldckat and lourencosm like this.

Last edited by t.oliveira; May 21, 2015 at 20:43.
t.oliveira is offline   Reply With Quote

Old   May 25, 2015, 06:39
Default
  #11
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 848
Rep Power: 18
sharonyue is on a distinguished road
Whats the merits of using KDevelop or eclipse for OpenFOAM?
sharonyue is offline   Reply With Quote

Old   May 29, 2015, 11:06
Default
  #12
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Quote:
Originally Posted by sharonyue View Post
Whats the merits of using KDevelop or eclipse for OpenFOAM?
Sorry for the late reply. I didn't get if you ask for a comparison about
- (using KDevelop for OpenFOAM) vs (using eclipse for OpenFOAM)
or
- (using KDevelop or eclipse OpenFOAM) vs (not using an IDE for OpenFOAM).
t.oliveira is offline   Reply With Quote

Old   June 3, 2015, 14:12
Default General doubt
  #13
Member
 
Lisandro Maders
Join Date: Feb 2013
Posts: 98
Rep Power: 13
Lisandro Maders is on a distinguished road
Hi, I will start developing and programming in OpenFOAM. Do the experienced guys recommend or not to use some IDE like Eclipse to do it? What do you recommend me to use as development tool to make life easier?

Thanks,

Lisandro
lourencosm likes this.
Lisandro Maders is offline   Reply With Quote

Old   June 3, 2015, 20:02
Default
  #14
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
I always recommend using an IDE for programming, but I am not sufficiently experienced in OpenFOAM to know if it would be an exception to this general recommendation. Since my first contact with it, I opted to use an IDE.
lourencosm likes this.
t.oliveira 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
Wmake C and KDevelop for a Foam project roncresswell OpenFOAM Installation 21 January 27, 2010 13:00
How should one debug a solver using KDevelop kar OpenFOAM Installation 5 July 28, 2008 17:36
Manage openfoam solver project in KDevelop probably the last linker error any suggestion is welcome lakeat OpenFOAM Installation 0 July 7, 2007 11:01


All times are GMT -4. The time now is 03:59.