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 6, 2013, 16:34
Default how assign dataset in python calculator?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
for making a field for cells like aspect(dataset) in python calculator, whats dataset and how to set it?
__________________
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 7, 2013, 11:47
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Ehsan,

It took me a while to figure this one out. I ended up figuring it out after I followed this tutorial: http://www.paraview.org/Wiki/ParaVie...tiple_Datasets

In conclusion, the "dataset" is "inputs[0]".

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 7, 2013, 11:58
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
Hi Bruno,
thanks for your consideration,
but the image doesn't show aspect ratios or area of cells.
Attached Images
File Type: jpg Screenshot at 2013-09-07 20:23:55.jpg (41.2 KB, 11 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 7, 2013, 12:06
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
It only works on surfaces, as shown in the attached picture.

And it barely works on tetrahedral cells, because it can calculate on some cells, but not on others.
Attached Images
File Type: jpg Screenshot from 2013-09-07 17:04:37.jpg (39.5 KB, 9 views)
wyldckat is offline   Reply With Quote

Old   September 7, 2013, 15:30
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
thanks,then at first a plane have to be be separated by slice Filter? the cells are hexahedral.
__________________
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 8, 2013, 09:51
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quick answer: Try the filters that extract faces and surfaces. I can't remember right now which ones they are.

All I know is that the slice filter will likely create triangles that don't exist in the original mesh.
wyldckat is offline   Reply With Quote

Old   September 8, 2013, 11:08
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
Hi Bruno,
in the attachment the image is somewhat dark,how to resolve the shading?
Attached Images
File Type: jpg Screenshot at 2013-09-08 19:19:34.jpg (43.4 KB, 5 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 8, 2013, 15:27
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
You have to play with the light controls, which are accessible from the menu: Edit -> View Settings. The controls are shown in the attached image.

Try changing the values and hit the "Apply" button to see the result, without closing the dialogue box.
Attached Images
File Type: png Screenshot from 2013-09-08 20:25:11.png (39.8 KB, 6 views)
immortality likes this.
wyldckat is offline   Reply With Quote

Old   September 8, 2013, 17:41
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
dear Bruno it seems its related to Slice selection that is dark still,I changed light parameters but it didn't become brighter.how can exit it from selection mode?
__________________
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 9, 2013, 13:58
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat 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
dear Bruno it seems its related to Slice selection that is dark still,I changed light parameters but it didn't become brighter.
Without an example case and step-by-step instructions, I'm unable to reproduce the same problem.

Quote:
Originally Posted by immortality View Post
how can exit it from selection mode?
Do you mean that it's the selection plane that the Slice widget provides, that is making it darker? There's an option on the "Display" tab on the lower left widget, that allows to not show the slice selection place.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 14:42
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
yes,
do you mention "selectable"? I unchecked it without any effect.
__________________
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 9, 2013, 14:49
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
From your description, only the "Show Plane" option seems to fit the description, as shown in attachment. Look for the mouse pointer in the "Properties" tab.
Attached Images
File Type: jpg Screenshot from 2013-09-09 19:47:48.jpg (46.8 KB, 7 views)
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 15:49
Default
  #13
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
Bruno still its grey
which files I send so that could have a look in paraview?thanks.
Attached Images
File Type: jpg Screenshot at 2013-09-10 00:07:56.jpg (48.1 KB, 4 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 9, 2013, 15:53
Default
  #14
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
  1. Select the entry "WR_inviscid.foam".
  2. On the menu, choose: File -> Save Data
  3. Save as VTK file and only the current iteration.
  4. Compress the VTK file with bz2 or gzip.
  5. Then email me the compressed VTK file.
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 16:24
Default
  #15
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
I saved it on x-axis line as vtk.
Attached Files
File Type: gz vtkfile.vtk.tar.gz (7.5 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.
immortality is offline   Reply With Quote

Old   September 9, 2013, 16:30
Default
  #16
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
I think you're confusing the threads... this thread is about the problem with seeing the aspect or area in 2D or 3D.
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 17:13
Default
  #17
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
Bruno you said me to save a VTK file,but its not possible without "plot over line",there isn't any VTK format if I want to use only "save data"
__________________
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 9, 2013, 17:24
Default
  #18
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
I forgot about the detail that the internal reader uses multi-block structures...
Apply the filter "Merge Blocks" to the "WR_inviscid.foam"; then with "MergeBlocks1" selected, save data to VTK.
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 17:32
Default
  #19
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,186
Rep Power: 16
immortality is on a distinguished road
I did it.bz2 has 3MB volume and I'll mail it(maybe takes long)
__________________
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 9, 2013, 17:33
Default
  #20
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by immortality View Post
I did it.bz2 has 3MB volume and I'll mail it(maybe takes long)
I won't be able to look at it today. Send it to me only tomorrow, when you have a better internet connection.
immortality likes this.
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 13 October 5, 2013 01:40
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 21:21.