This offering is not approved or endorsed by Silicon Graphics International Corp.,
the producer of the OpenFOAM® software and owner of the OpenFOAM® trade mark.
top
logo


Welcome, Guest
Please Login or Register.  Lost Password?
Integrated Development Environment (IDE) for OpenFOAM® development Group Forum: All about using IDEs for OpenFOAM® development and debugging in a faster and more comfortable way
Go to bottomPage: 1
TOPIC: Graphical variable visualisation while debugging
#13
Graphical variable visualisation while debugging 1 Year, 10 Months ago Karma: 0
Using an IDE as eclipse you can follow the values of your variables while debugging.
This works fine for scalars, but not for vector or scalar fields..
Maybe somebody knows a possibility to have some kind of "graphical debugging"? Maybe you can visualize your current fields in paraview while debugging?
Astrid Mahrla
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#17
Re: Graphical variable visualisation while debugging 1 Year, 10 Months ago Karma: 1
The VTK folks are in the process of adding run-time linking to paraview, which would allow the behaviour that you're looking for, though that's still work-in-progress.

I usually write a small code-snippet that outputs VTK files at certain code-locations, and they can be modified to contain vector / tensor data as well. Usually quite useful, because I'd like to look at a certain number of cells, and possibly glyph them for visualisation.
Sandeep Menon
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Sandeep Menon
University of Massachusetts Amherst
The administrator has disabled public write access.
 
#52
Re:Graphical variable visualisation while debugging 1 Year, 7 Months ago Karma: 0
Hi Astrid,

Have you been able to set up debugging with gbd in eclipse for openFoam applications? I've followed the wiki (exactly, I think) and am able to run cases as well as compile new solvers (in Opt and Debug mode) but when it comes to debugging, it doesn't really work. If I select a run case ("cavity" for example) and hit the debug button I go to the debug perspective, some stuff runs and I end up with the attached screenshot, and this in the "terminal" window:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM®®: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5-dev |
| \\ / A nd | Revision: 1821 |
| \\/ M anipulation | Web: www.OpenFOAM®®.org |
\*---------------------------------------------------------------------------*/
Exec : /home/brosemu/OpenFOAM®®/OpenFOAM®®-1.5-dev/applications/bin/linux64GccDPDebug/icoFoam
Date : Sep 27 2010
Time : 13:21:32
Host : name-cassia
PID : 28812
Case : /home/brosemu/OpenFOAM®®/brosemu-1.5-dev/run/icoFoam/cavity
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading transportProperties

Reading field p

Reading field U

Reading/calculating face flux field phi



Does anyone have any suggestions?

Thanks!
Bill Rosemurgy
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Ann Arbor, MI Birthday: 06/06
Last Edit: 2010/09/27 19:26 By brosemu.
The administrator has disabled public write access.
 
#63
Re:Graphical variable visualisation while debugging 1 Year, 7 Months ago Karma: 0
Hi Bill!

Maybe this is a problem with the 7.x version of the GNU Debugger. I faced the same problem with the preinstalled 7.x GNU gdb on kubuntu 10.04 LTS. Compiling and debugging worked, but once I opened the variables' tab gdb crashed. Seems to be a bug in the MI of 7.x gdb?!

So, installing a previous version of gdb, e.g. gdb 6.8, should help..

Hope this helps!

Best,

Astrid
Astrid Mahrla
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#222
Re:Graphical variable visualisation while debugging 10 Months, 1 Week ago Karma: 0
Hi Astrid

Firstly many thanks for your excellent tutorials on the use of eclipse with OpenFOAM®.

I was hoping to work through your latest workshop paper on using eclipse for assessing the performance of bubbleFoam, but first of all decided to re-fresh my memory by going back through the original tutorial on the OpenFOAM® wiki. When I first tried this in July 2010 under Ubuntu 9.10 it worked perfectly, but now I've tried using eclipse with gdb again under Ubuntu 10.04 LTS I seem to get the exactly the same problem as Bill - the code comes up initially, but then terminates before you can begin to inspect it.

You suggest that this maybe a problem with the 7.x version of gdb. I have also run into problems trying to use gdbOF with my current version of gdb 7.1 which does not appear (to me) to correctly support the strcmp function.

You say you can workaround this problem by installing a previous version of gdb e.g. gdb 6.8. Can I ask further details how you went about doing this?

Is this use of a previous gdb version related to the first line you set in your June 2011 Workshop? -

export PATH=/home/ubuntu/gdb4Eclipse/bin:$PATH

Any advice would be gratefully appreciated.

Best regards

Paul.
Paul Holborn
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#223
Re:Graphical variable visualisation while debugging 10 Months, 1 Week ago Karma: 0
Hi Paul!

Thanks for the compliments!

You're totally right. If you use the older version of gdb - in the OpenFOAM® Workshop Tutorial this is done by exporting the right path - debugging will work fine. Unfortunatly the bug is still present in newer 7.x versions of gdb as I tested that before the workshop.

Best regards,

Astrid
Astrid Mahrla
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Joomla SEO powered by JoomSEF


bottom
top

OpenFOAM®-Extend World

You need to upgrade your Flash Player

bottom
Legal | Imprint
©Copyright 2012 The OpenFOAM® Extend Project 

Powered by Joomla! Designed by Joomla Templates, ecommerce web hosting, Thanks to J! Developer Goran Gligorin for support! Joomla SEF URLs by Artio. Powered by Staff Master v0.9.8 Valid: XHTML and CSS

Friends Online