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

[General] how assign dataset in python calculator?

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

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2013, 17:34
Default how assign dataset in python calculator?
  #1
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 12: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
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
sourav90 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 7, 2013, 12:58
Default
  #3
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 35 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, 13:06
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
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, 25 views)
sourav90 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 7, 2013, 16:30
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 10:51
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
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, 12:08
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 15 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, 16:27
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
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, 19 views)
immortality likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 8, 2013, 18:41
Default
  #9
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 14:58
Default
  #10
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 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, 15:42
Default
  #11
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 15:49
Default
  #12
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
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, 10 views)
__________________
wyldckat is offline   Reply With Quote

Old   September 9, 2013, 16:49
Default
  #13
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 7 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:53
Default
  #14
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
  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, 17:24
Default
  #15
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 17:30
Default
  #16
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
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, 18:13
Default
  #17
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 18:24
Default
  #18
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
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, 18:32
Default
  #19
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26
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, 18:33
Default
  #20
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
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 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
[General] Listing the inputs of a grouped dataset with a programmable python filter in Paraview NadineHS ParaView 3 December 12, 2021 15:54
[General] Include Timevalue in (Python) Calculator Operation weidatm ParaView 0 May 16, 2018 08:56
[General] Get data from Calculator filter in python script taalf ParaView 17 February 15, 2018 05:53
[General] Using variables defined in a Python script on a Paraview/Python Calculator gafxian87 ParaView 0 June 8, 2015 14:18
[OpenFOAM] Access to Python Calculator Tobi ParaView 1 September 9, 2014 07:32


All times are GMT -4. The time now is 02:11.