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

Debug OpenFOAM-1.6 with Netbeans or GDB?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 7, 2010, 01:46
Default Debug OpenFOAM-1.6 with Netbeans or GDB?
  #1
Member
 
yijin Mao
Join Date: May 2010
Location: Columbia, MO
Posts: 45
Rep Power: 7
alundilong is on a distinguished road
I follow the instructions posted on this official website.
http://openfoamwiki.net/index.php/Configure_NetBeans

But it does not do anything but broken my solvers.
In detail, when I build the source program, which is located under $HOME/OpenFOAM/OpenFOAM-1.6/applications/solvers/incompressible/icoFoam,
it posted errors like this,can not find /usr/bin ld. But ld do exist under /usr/bin. Then I try to compile it with wmake command. It also posted error 1.

What's wrong with my debug version of OpenFOAM-1.6?

As Netbeans is quite familar with VC++, I choose to learn OpenFOAM's codes with this compile tool. Although I am working with GDB currently, I still hope to read those codes with Netbeans.
alundilong is offline   Reply With Quote

Old   May 7, 2010, 16:36
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Edward,

Well, that page about Netbeans is quite old now (last change 31 October 2007). Back then the latest OpenFOAM version was 1.4.1.

If you can drop NetBeans in exchange for Eclipse, you've got a very recent tutorial (last change 6 May 2010) for it here: Howto Use OpenFOAM with Eclipse

Additionally, the support thread for it is this one: Eclipse for OpenFOAM

With Eclipse you can also use GDB, so it should work out nicely for what you need

By the way:
Quote:
I follow the instructions posted on this official website.
http://openfoamwiki.net/index.php/Configure_NetBeans
openfoamwiki.net is an unofficial wiki for OpenFOAM! Says so right in the main page. I'm just pointing it out to you, because OpenFOAM is very well protected legally... and all caution is required when stating what's official or not about OpenFOAM!!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 10, 2012, 18:40
Default
  #3
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 213
Rep Power: 10
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
Despite it is unofficial wikki, people behind it are qualified and experienced. And there is too much legal protection issues around OpenFOAM(C)(R) IMHO concerning enthusiast (NONCOMMERCIAL) developers trying to help newbies to get used with OF. It would be much better if Programmers Guide would be finally updated without typo errors and misleading information since 2009.
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Advanced Process Simulation of
Solidification and Melting"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

Franz-Josef-Str. 18
A - 8700 Leoben
Österreich / Austria
Tel.: +43 3842 - 402 - 3125
http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   January 15, 2012, 08:50
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Dr. Alexander,

The programmer's guide seems to be have had (very) small/minor updates for each released version. Nonetheless, there is a bug report that might interest you (and everybody) to give your opinion on it as well: http://www.openfoam.com/mantisbt/view.php?id=275

The other takes on this are:
  • People can always submit bug reports with the lists of flaws, typos and so on about the programmer's guide. Although it doesn't necessarily mean they will be fixed. I think there was such a bug report a few years ago when the bug reporting was still done here on the forum... but I can't remember very well what the outcome/answer was. All I vaguely remember is that it eventually lead to creating the new way of documenting things on the wiki: http://openfoamwiki.net/index.php/Ca...nFOAM_overview
  • The main "guilty party" for the "programmers guide" to not being further improved are the usual suspects: "time" and "money". If there was funding or someone approached OpenCFD/SGI with the sentence "I want to work and improve the Programmers Guide", then perhaps something would go forward.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 15, 2012, 11:41
Default
  #5
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 213
Rep Power: 10
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
Hi Bruno!

Thanx for the link, its is useful for clarifying some of my doubts: "is it possible to "close" documentation for open-source or is it restricted by GPL?". Because I ones asked OpenCFD(R) if it is possible to get Programmer Guide sources and also pointed some mistakes in it. They replied that doc sources are not distributed by them.

I agree, that if OpenCFD/SGI would just simply allow the community to work on the documentation along with them it will be much more up-to-date. But they suppress such an initiative, I cannot understand that.

Regards,

Alexander
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Advanced Process Simulation of
Solidification and Melting"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

Franz-Josef-Str. 18
A - 8700 Leoben
Österreich / Austria
Tel.: +43 3842 - 402 - 3125
http://smmp.unileoben.ac.at
makaveli_lcf is offline   Reply With Quote

Old   January 15, 2012, 13:29
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Disclaimer: I don't have specific legal experience about this nor have I confirmed any of this with any lawyers, so my word is only barely as solid as anything that is written on wikipedia

The second page of the programmers guide says this:
Quote:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
The GFDL is similar to GPL, but not identical. While the GPL indicates that one can both sell the binaries and source code (or modifications of said code), for the same amount for each (e.g.: 50$ for the binaries and another 50$ for the source code... but resulting in 100$ even if you only want the source code), the GDFL doesn't specify the same thing, since source code and documentation are completely separate things. For example, the GFDL specifically says that one may sell copies of the document and also says that one must provide a free and machine-readable format if more than 100 copies are distributed in opaque form (at least by what I understood from reading the license).

Although the "source code" (it's in LaTeX, so it's pretty much all in code ) isn't provided, it's still possible to literally copy-paste the whole thing from the PDF file and paste it on the wiki in an editable format. Nonetheless, there are a few details to take into account:
  • Trademark issues, which probably would be averted if the document is fully copied, since the original document already disclaims said trademarks.
  • Take into account and respect all of the specifications made in the GFDL. I didn't read in full detail, but it seemed to me that only translations of invariant sections need copyright holder's permissions before translating... although if the original text is preserved, a translation can be provided as well.
  • Copy-paste and re-format can be a pain to do. I've done this before for another document and it's not a very pleasant experience. The PDF file is provided in a pretty decent format that isn't restricting copying the text. Image extraction can also be easily achieved. So, even without the source code, it's easy to replicate the document.

Other than this, once the content is on the wiki, it's all under the GFDL. Additionally, it sort-of falls under the same criteria as journals and papers: mentioning a trademarked name doesn't imply that one should legally pay anything to the trademark holder. Nonetheless, one has to make it perfectly clear that one does not have any rights over the trademark.

Anyway, the bottom line might be summed up like this: if the OpenFOAM(R) trademark is mentioned in any other book that details how to use OpenFOAM and if the sole intent of the book is to explain on how to use it, then a percentage of the earnings or a previously agreed contract must be defined and met before and after the book is published and sold.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 22, 2012, 13:15
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi,

Just a minor update: I've browsed a bit more the Programmers Guide and it looks like work has continued to be done on it. At least I've seen tutorials on the second half of the guide that have been updated to OpenFOAM's "#codeStream" way of doing business
So I think that reports on the bug tracker about the typos found will not be in vain!

Let me see if I can find the old thread that listed several typos that were found several months ago...

edit: I found it: In Programmer's Guide p. 40 - it was you Dr. Alexander who posted that report! I won't post the report on the mantis bug tracker simply because I'm not familiar with these details of OpenFOAM, so I don't know exactly what is wrong and why

edit 2: Other threads that might of interest:
- Error in documentation
- Programmers Guide Bugs


Best regards,
Bruno

Last edited by wyldckat; January 22, 2012 at 13:33. Reason: see "edit:" and "edit 2:"
wyldckat is offline   Reply With Quote

Old   January 22, 2012, 18:15
Default
  #8
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 213
Rep Power: 10
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
Hey, Bruno! it was your reply for my post))))
__________________
Best regards,

Dr. Alexander VAKHRUSHEV

Christian Doppler Laboratory for "Advanced Process Simulation of
Solidification and Melting"

Simulation and Modelling of Metallurgical Processes
Department of Metallurgy
University of Leoben

Franz-Josef-Str. 18
A - 8700 Leoben
Österreich / Austria
Tel.: +43 3842 - 402 - 3125
http://smmp.unileoben.ac.at
makaveli_lcf 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
kOmegaSST in openfoam 1.6 Gearb0x OpenFOAM 2 March 3, 2010 07:02
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 16:39
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 00:48
OpenFOAM 1.6 package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 36 September 2, 2009 12:46
OpenFOAM Version 1.6 Released opencfd OpenFOAM Announcements from ESI-OpenCFD 0 July 27, 2009 17:55


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