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

[OpenFOAM] Paraview on windows 7, forced scaling of data

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2011, 09:49
Default Paraview on windows 7, forced scaling of data
  #1
New Member
 
Mike
Join Date: May 2011
Posts: 19
Rep Power: 14
mikemech is on a distinguished road
Hello,
I 'm in serious trouble with Paraview.
Everything was fine but suddenly when I tryied to load a cfd simulation, in vtk format, it displayed all the fields (except for the velocity field) in a [0,1] scale. This happened once, and everytime I try to load other vtk's with the same fields, it does the same thing.

I cheked the "information" tab in the object inspector, where it shows that all fields have been loaded successfully, each of them in the correct corresponding data range.

But when I visualise the fields in the display tab, then it doesn't show them in this data range.

My system is Windows 7 64 bit so the only way to import the simulations is .vtk files.

Does anybody have a remark??
mikemech is offline   Reply With Quote

Old   September 25, 2011, 15:47
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Mike,

Which version of ParaView are you using? If it's 3.8.0 or 3.8.1, this might be due to a certain bug. To get past this, read this post (and its thread): paraview 3.8 auto rescale doesn't work #6 - in a nutshell, try running paraview with the argument "-dr":
Code:
paraview -dr
If you are using 3.10.1, start reading here: 6.1.3 The Display panel
I want you to focus on this paragraph:
Quote:
the data range may not be automatically updated to the max/min limits of a field, so the user should take care to select Rescale to Data Range at appropriate intervals, in particular after loading the initial case module;
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 25, 2011, 17:30
Default
  #3
New Member
 
Mike
Join Date: May 2011
Posts: 19
Rep Power: 14
mikemech is on a distinguished road
Hi Bruno,
I'm using the version 3.10.1 (64-bit) and I always select "Rescale to data range", after I choose a field, and nothing happens. It is strange beacause Paraview opens the vtk file and sets the correct data ranges for each field but is unable to display the correct values. It only sets for every cell the same value so my whole field is shown red, with red corresponding in value=1.

I have no explanation of why this is happening and it's getting frustrating in the end

I have also tried to uninstall Paraview and reinstall it, but nothing changed
mikemech is offline   Reply With Quote

Old   September 25, 2011, 18:42
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Mike,

Mmm... OK, two additional solutions that might work:
  • If you can export the case once again to VTK, then run foamToVTK with the option "-ascii":
    Code:
    foamToVTK -ascii
  • Since you are using ParaView 3.10.1, then you can use the internal reader for OpenFOAM cases. Simply create an empty file with the extension ".foam" in the base folder of the case and open that file in ParaView.
    To create said empty file, you can run in the Windows Command Line window the following command:
    Code:
    echo. > case.foam
Good luck!
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 25, 2011, 18:52
Default
  #5
New Member
 
Mike
Join Date: May 2011
Posts: 19
Rep Power: 14
mikemech is on a distinguished road
Thanks for the remark Bruno!

Well, I created the empty file and I opened it in Paraview but it is empty, it doesn't load any fields nor the mesh! How can I put the data into this empty file?

Thank you!
mikemech is offline   Reply With Quote

Old   September 26, 2011, 04:45
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Mike,

The "case.foam" file should remain empty and should be placed in the same folder where you have the case; it should look something like this:
Code:
0
1
2
3
4
(...)
constant
system
VTK
case.foam
If the case folder is all there with the time/iteration instances, then it should work as intended.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 26, 2011, 05:49
Default
  #7
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 314
Rep Power: 18
openfoam_user is on a distinguished road
Hi Mike,

I had problems (scale blocked between 0 and 1 - rescale do not work) with ParaView 3.6.

I solved my problem by removing the directory
~/.config/ParaView

Hope it could help.

Stephane.
openfoam_user is offline   Reply With Quote

Old   September 26, 2011, 06:00
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Stephane!

@Mike: the respective path in Windows 7 for the folder that Stephane mentioned is this:
Code:
C:\Users\your user name\AppData\Roaming\ParaView
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 26, 2011, 14:11
Default
  #9
New Member
 
Mike
Join Date: May 2011
Posts: 19
Rep Power: 14
mikemech is on a distinguished road
Hi Stephane and Bruno!

Thank you so much for your help, both!!
I removed the folder C:\Users\your user name\AppData\Roaming\ParaView
and now it works perfectly again!

Maybe there was some kind of conflict in the file inside that folder, so removing it made Paraview to build it again, but correct this time!

Again, thank you very much for your help!

Best regards,
Mike
mikemech is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Installation of ParaView on Ubuntu that exists in (Windows Subsystem Linux) k.farnagh ParaView 8 November 20, 2023 10:40
[Other] Openfoam for windows 16.02 [CFD support] -problem with paraview ditmeyer OpenFOAM Installation 3 May 15, 2017 13:04
[OpenFOAM] saving data in paraview aylalisa ParaView 3 May 31, 2014 12:38
studying a valve case mina.basta OpenFOAM 33 August 30, 2013 05:46
[General] paraview - plotting difference to reference data joewe ParaView 0 August 30, 2010 19:01


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