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

how assign dataset in python calculator?

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

Like Tree4Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   September 10, 2013, 15:38
Default
  #21
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
Hi Bruno
it didn't attached is there another way?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 10, 2013, 17:45
Default
  #22
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 36
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,
Quote:
Originally Posted by immortality View Post
it didn't attached is there another way?
If:
  1. You save to VTK only the slice.
  2. Then close ParaView.
  3. Then open ParaView again.
  4. Then load only the saved VTK of the slice.
Does it still have the same problem?


And if it does have the same problem, then compress this VTK file and see if it's small enough to email it to me.

Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   September 11, 2013, 04:56
Default
  #23
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
Quote:
Then load only the saved VTK of the slice
after loading what should I do to see the fields?
when the "eye" icon for WR_inviscid.foam is on,the fields aren't shown and the shape of case is grey,when its on the fields can be seen but hardly(its not bright)
and althogh the file is 8(previous was 17)its bz2 compress is 4.3(complete case was 3.9!)

--------------

its the image of when WR_inviscid.foam is off and mergeSliceVTK.VTK is on
Attached Images
File Type: jpg grey.jpg (11.9 KB, 2 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.

Last edited by wyldckat; September 11, 2013 at 17:12.
immortality is offline   Reply With Quote

Old   September 11, 2013, 17:16
Default
  #24
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 36
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

This is very strange indeed. Have you tried resetting the lighting options?
Resetting the lighting is to click on the "Reset Lights" button, then on the "Apply" button, as shown in the attached image at post #8.

Another question is: if you rotate the 3D geometry, is there any point of view that gives better visibility to any surface of the geometry?

Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   September 12, 2013, 05:49
Default
  #25
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
Code:
This is very strange indeed. Have you tried resetting the lighting options?
Resetting the lighting is to click on the "Reset Lights" button, then on the "Apply" button, as shown in the attached image at post #8.
I did it.
Quote:
Another question is: if you rotate the 3D geometry, is there any point of view that gives better visibility to any surface of the geometry?
thaaanks Bruno a lot!
I thought I had tested it before.I rotated it and back was bright! then I changed the direction of normal arrow to (0,0,-1) and it became bright!
then this problem is resolved also!
maybe the issue of dash in plot over lines could be solved easily too!
Attached Images
File Type: jpg aspect.jpg (15.9 KB, 3 views)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 12, 2013, 06:34
Default
  #26
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
Hi Bruno
which way to select a plane is there instead of slice so that not to make triangles?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   September 12, 2013, 16:40
Default
  #27
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 36
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answer: Visualization problem on ParaFoam post #6
immortality likes this.
wyldckat is offline   Reply With Quote

Old   September 27, 2013, 20:44
Default
  #28
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,531
Blog Entries: 36
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

To complement the issue on having more light on the side of a dark geometry in ParaView...
Quote:
Originally Posted by wyldckat View Post
Another question is: if you rotate the 3D geometry, is there any point of view that gives better visibility to any surface of the geometry?
There are a couple more tricks, both explained here: Dark areas in paraview post #6
In essence:
  • One is to apply the filter "Generate Surface Normals" and turn on the option "Flip", which will make the light shine on the opposite side.
  • The other is to use Python turn off "Diffuse" lighting and to turn on "Ambient" lighting. Although it might get a bit too bright...
Best regards,
Bruno
immortality likes this.
__________________
___
I'll be at OFW11 in Portugal
wyldckat 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
using the python shell in paraFoam colinB OpenFOAM Paraview & paraFoam 14 September 14, 2015 09:04
Question regarding Python Calculator Nigirim ParaView 2 January 11, 2013 09:57
Using Python in Openfoam in-built paraFoam (paraView 3.8.0) Man Yue ParaView 6 November 30, 2012 07:57
Python calculator for divergence ali jafari ParaView 2 October 31, 2012 02:46
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36


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