|
[Sponsors] |
[General] how assign dataset in python calculator? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 6, 2013, 16:34 |
how assign dataset in python calculator?
|
#1 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
September 7, 2013, 11:47 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
September 7, 2013, 11:58 |
|
#3 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
Hi Bruno,
thanks for your consideration, but the image doesn't show aspect ratios or area of cells.
__________________
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. |
|
September 7, 2013, 12:06 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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.
__________________
|
|
September 7, 2013, 15:30 |
|
#5 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
September 8, 2013, 09:51 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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.
__________________
|
|
September 8, 2013, 11:08 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
Hi Bruno,
in the attachment the image is somewhat dark,how to resolve the shading?
__________________
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. |
|
September 8, 2013, 15:27 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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.
__________________
|
|
September 8, 2013, 17:41 |
|
#9 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
September 9, 2013, 13:58 |
|
#10 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Ehsan,
Quote:
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
__________________
|
||
September 9, 2013, 14:42 |
|
#11 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
September 9, 2013, 14:49 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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.
__________________
|
|
September 9, 2013, 15:49 |
|
#13 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
Bruno still its grey
which files I send so that could have a look in paraview?thanks.
__________________
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. |
|
September 9, 2013, 15:53 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
__________________
|
|
September 9, 2013, 16:24 |
|
#15 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
I saved it on x-axis line as vtk.
__________________
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. |
|
September 9, 2013, 17:13 |
|
#17 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
September 9, 2013, 17:24 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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.
__________________
|
|
September 9, 2013, 17:32 |
|
#19 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
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. |
|
September 9, 2013, 17:33 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
I won't be able to look at it today. Send it to me only tomorrow, when you have a better internet connection.
__________________
|
|
|
|
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 14:54 |
[General] Include Timevalue in (Python) Calculator Operation | weidatm | ParaView | 0 | May 16, 2018 07:56 |
[General] Get data from Calculator filter in python script | taalf | ParaView | 17 | February 15, 2018 04:53 |
[General] Using variables defined in a Python script on a Paraview/Python Calculator | gafxian87 | ParaView | 0 | June 8, 2015 13:18 |
[OpenFOAM] Access to Python Calculator | Tobi | ParaView | 1 | September 9, 2014 06:32 |