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

Paraview on windows 7, forced scaling of data

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 25, 2011, 08:49
Default Paraview on windows 7, forced scaling of data
  #1
New Member
 
Mike
Join Date: May 2011
Posts: 19
Rep Power: 6
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, 14:47
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 16:30
Default
  #3
New Member
 
Mike
Join Date: May 2011
Posts: 19
Rep Power: 6
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, 17:42
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 17:52
Default
  #5
New Member
 
Mike
Join Date: May 2011
Posts: 19
Rep Power: 6
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, 03:45
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 04:49
Default
  #7
Senior Member
 
stephane sanchi
Join Date: Mar 2009
Posts: 300
Rep Power: 9
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, 05:00
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 13:11
Default
  #9
New Member
 
Mike
Join Date: May 2011
Posts: 19
Rep Power: 6
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
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
paraview 3.10.1 reading decomposed data preibie OpenFOAM Paraview & paraFoam 1 September 13, 2011 08:27
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
Paraview in Prallel (server-client) prapanj OpenFOAM Paraview & paraFoam 11 September 24, 2010 07:12
paraview - plotting difference to reference data joewe ParaView 0 August 30, 2010 18:01
ParaView shows a list of data types and ask for it idrama OpenFOAM 1 August 20, 2010 07:08


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