CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] ParaView-3.7.0(cvs) + OpenFOAM Reader issues

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2009, 15:31
Default ParaView-3.7.0(cvs) + OpenFOAM Reader issues
  #1
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello there,

A Good Evening and TGIF :-)!

Couple of days ago I compiled the latest CVS version of Paraview (3.7.0-cvs) on two machines.... one was my laptop at home [Centrino 1.6GHz - 32bit; 512 MB RAM; Fedora 10 (32bit)], and the other... one of the machines at work [Intel Core 2 Duo 2.4GHz - 64bit; 3 GB RAM; Fedora 10 (64bit)].

After compiling and installing ParaView into the "ThirdParty" folder, I recompiled vtkPV3Foam and PV3FoamReader so that they would be compatible with the new version of ParaView.

On the Laptop, the OpenFOAM reader (through paraFoam) is working perfectly fine, but on the machine at work when I run paraFoam, ParaView-3.7.0 starts up, loads the OpenFOAM case, but then, nothing but a very thin line of sparsely located points appear on the screen.

No error windows pop up, neither ParaView nor the OpenFOAM reader complains about anything unusual.... all the patches, fields and time steps are listed in the respective locations, and when I change the time-step, ParaView even shows the progress bar stating that it is updating the changes....

Basically, I am not able to figure out what the reason could be..... the only difference I can see between the two systems, is that one is a 32-bit setup whereas the other is a 64-bit setup.

Additionally, I am able to view for example the "cone" source, and also open the OpenFOAM case once I convert it to the VTK format using foamToVTK (on the same ParaView-3.7.0 setup)..... proving that it is not a generic graphics problem...

Any ideas from any of the bleeding edge ParaView users?? Takuya... any leads??

Have a lovely weekend !!

Philippose
philippose is offline   Reply With Quote

Old   June 5, 2009, 16:42
Default
  #2
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Hi !

I have compiled 3.7.cvs yesterday on Mac and Linux machines with Takuya's reader / no problem here. However, I did not try pvFoam. I can confirm that the reader works perfectly.

Regards,

PO
podallaire is offline   Reply With Quote

Old   June 5, 2009, 18:08
Default
  #3
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello there,

Thanks for that confirmation :-)!

I have not tried Takuya's reader with the latest version of Paraview yet... unfortunately I cannot use the reader for sliding mesh cases (yet).

However, currently this weird problem I am facing is related to the Paraview reader (PV3FoamReader) which is supplied along with OpenFOAM-1.5.

What is bothering me, is that the same code base is running fine on one system (32-bit), while it refuses to run on another (64-bit).... but at the same time, does not throw up any errors or warnings.

Any ideas?

Philippose
philippose is offline   Reply With Quote

Old   June 6, 2009, 08:16
Default Paraview on Mac
  #4
Member
 
sushant's Avatar
 
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17
sushant is on a distinguished road
@podallaire: I was trying to compile Paraview (3.4) on Mac OS 10.5.7 with Qt 4.3.5. Everything compiles well but when I run Paraview it always dies with a segmentation fault. Any ideas?

Thanks,
Sushant
sushant is offline   Reply With Quote

Old   June 6, 2009, 22:00
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by sushant View Post
@podallaire: I was trying to compile Paraview (3.4) on Mac OS 10.5.7 with Qt 4.3.5. Everything compiles well but when I run Paraview it always dies with a segmentation fault. Any ideas?
If you called paraview by itself (no paraFoam) then this is a typical case for the paraview-mailing-list (because it is a "pure" Paraview problem)
gschaider is offline   Reply With Quote

Old   June 7, 2009, 10:55
Default
  #6
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
@Philippose: Sorry, I did not try paraFoam / I did not know that a sliding mesh does not work with the reader, is there a tutorial that I can try for this ? ... The only thing that I can say is that 32 / 64 bit worked for me.

@Sushant: it is difficult to troubleshot without knowning what you tried / did you enable the shared lib flag ?

@ Bernhard: so, did you enjoy Montreal ?
podallaire is offline   Reply With Quote

Old   June 7, 2009, 20:47
Default
  #7
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Philippose,
Do you know or have a reproducing case of the sliding mesh problem that you can share? I tried two or three of sliding mesh cases floating around but have not had a problem so far.

As to the graphics problem, I read somewhere (the paraview or visit-users lists) that if you are using a ATI graphics you may at times have such subtle problems....

Takuya
7islands is offline   Reply With Quote

Old   June 9, 2009, 07:45
Default
  #8
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello Takuya,

Good to hear from you again after a long time :-)! Hope eveything is coming along well !!

Regarding postprocessing of sliding mesh cases with your version of the OpenFOAM reader... It currently does not work, because the sliding interface system (as implemented in OF-1.5-dev) generates stand-alone faces.... faces which do not have corresponding "owners"...

This does not seem to be a situation the reader particularly likes to live with, and it aborts with an error as shown in the attached screen shot.

I also noticed that there have been some changes made to the Paraview-3 reader which comes with OpenFOAM to handle such standalone faces.



And now for the other problem I have been fighting with..... well.... this is with regard to the Paraview reader which comes with OpenFOAM-1.5-dev (PV3FOAMReader)...

After a lot of poking and prodding, it looks like the mesh created in the file "vtkPV3FoamUpdate.C" using the completely standard OpenFOAM formulation:

meshPtr_ = new fvMesh ( IOobject(.......) )

for some reason (and again... only within this reader utility), treats the mesh point co-ordinates as text elements, and truncates everything past the decimal point (for example, if a co-ordinate is listed as 5.2e-5 when I use a simple program to list all the mesh co-ordinates again using OpenFOAM functions... it lists it as "5" when printed from within the above file !!!)..

I basically have no idea (yet) why this is happening.... and its really getting on my nerves :-)!

The worst part is, that the exact same code when compiled on my laptop (using 32-bit) gives me a co-ordinate listing as normally expected!

Further... if I scale the mesh using "transformPoints" so that the significant digits of the co-ordinates are to the left of the decimal point, then things start looking better (because even if it truncates past the decimal point, most of the location data is still retained....!)

Could someone please tell me how something like this might happen in C++ !?!?

Have a nice day!

Philippose
Attached Images
File Type: jpg paraview_sliding_01.jpg (40.2 KB, 36 views)
philippose is offline   Reply With Quote

Old   June 9, 2009, 10:27
Default
  #9
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Hi Philippose,
Thanks a lot for the report. I found one of such cases and made a modification to the reader. Can you downlowd the reader from
Code:
svn co https://of-interfaces.svn.sourceforge.net/svnroot/of-interfaces/branches/vtkPOpenFOAMReader-r23-VTKcontrib
, replace vtkOpenFOAMReader.cxx with yours in your ParaView sources, recompile ParaView and see if this works?

@Decimal point problem: I read somewhere (again, perhaps on the paraview-list) that your locale setting may affect how decimal points are interpreted by the system routines (strtod() for instance). So setting for example LANG=C may (or may not) change the behavior?

Takuya
7islands is offline   Reply With Quote

Old   June 9, 2009, 11:49
Default
  #10
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hi Takuya,

What can I say :-)! As in.... now thats called hitting the nail on the head :-O !! All I can muster up is..... "respect" :-)!

I can finally sleep in peace tonight, and I can finally get down to my normal day to day work....!!

Changing the LANG environment variable from "de_DE.UTF8" to "C" solved the decimal point issue without any complaints....

The only thought I have now is.... why does the creation of an "fvMesh" in one utility depend on the Locale... whereas the rest of OpenFOAM works without any issues and has always worked without any problems even though the locale was set to German?

As I said... I had quickly put together a small utility similar to "writeCellCentres", which printed out all the co-ordinates without any problems under the same locale conditions....

Hmmm.... one learns something new everyday :-)!!

As for your modified OpenFOAM reader.... shall compile that once I get back home, and shall give you feedback in about 3 to 4 hours....

Once again.... thank you very much Takuya !!

Have a great evening ahead!!

Philippose
philippose is offline   Reply With Quote

Old   June 11, 2009, 06:32
Default
  #11
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello again Takuya,

Sorry for the delay in replying regarding the change in the reader that you made...

I had not recompiled Paraview on my system since version 3.5.0, and compiling 3.7.0 took a long time....

Anyway.... just wanted to confirm that the changes you made work perfectly fine, and I am able to post-process sliding mesh cases using your reader in both Windows and Linux now :-)!

Thanks a lot!

Have a great day ahead !!

Philippose
philippose is offline   Reply With Quote

Old   June 11, 2009, 09:44
Default
  #12
Super Moderator
 
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20
7islands is on a distinguished road
Thanks for the report again, and have a nice day!

Takuya
7islands is offline   Reply With Quote

Old   June 11, 2009, 18:49
Default
  #13
New Member
 
tino boelke
Join Date: Mar 2009
Location: Berlin
Posts: 10
Rep Power: 17
tino_boelke is on a distinguished road
Yes, it works! ... had the same problems with ParaFoam since i installed Ubuntu 9.04. After clicking apply the model was loaded in but nothing appears on the screen.
Changing the LANG enviroment variable from LANG=de_DE.UTF-8 to LANG=C fixed this problem... really curios .

But so far, im able to work now, thanks alot for your hint!

Tino
tino_boelke is offline   Reply With Quote

Old   June 15, 2009, 12:31
Default
  #14
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Does this version of Paraview have animation export options to AVI/MPEG? I recall 3.4.0 having licensing issues. I really don't want to use ImageMagick/MPlayer, etc.. They're just a huge memory hog.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   February 10, 2010, 07:37
Default
  #15
New Member
 
Gonzalo Tampier
Join Date: Apr 2009
Location: Berlin, Germany
Posts: 9
Rep Power: 17
gtampier is on a distinguished road
Amazing... I'm struggling since many days with paraview & paraFoam problems (same problem as philippoise: 32bit OK, 64 not. Additionally I had a rendering problem when selecting point fields). I was supposing all the time was about m ATI card in the 64 machine. Now I changed the LANG variable to C and ALL problems are gone. Thank you guys!
gtampier is offline   Reply With Quote

Old   February 15, 2010, 05:49
Default
  #16
egp
Senior Member
 
egp's Avatar
 
Eric Paterson
Join Date: Mar 2009
Location: Blacksburg, VA
Posts: 197
Blog Entries: 1
Rep Power: 18
egp is on a distinguished road
Pulled the latest snapshot of ParaView 3.7.0. Compiled 3.7.0 and Qt 4.6.1 on my Macbook Pro (arch=x86_64). Was nice to see that Takuya's plugin is now included in the ParaView distribution during the build process,

egp 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
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
[OpenFOAM] Cavity Tutorial: ParaView starts, cannot find reader mfrain ParaView 7 June 18, 2012 23:14
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55
OpenFOAM and Paraview install issues spridal86 OpenFOAM Installation 7 February 13, 2008 14:15


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