[Paraview] question-filter
Megdich Islem
megdich_islem at yahoo.fr
Tue Mar 8 06:54:57 EST 2016
Here are the pictures.
Le Mardi 8 mars 2016 11h35, Megdich Islem <megdich_islem at yahoo.fr> a écrit :
Hi cory, I was working on the case of water computationin the desired domain taking into account your suggestions. I attached heresome pictures that helps to figure out how I did it. I created the domain inwhich I want to compute the volume of water using the clip filter and then Ithresolded the clipped domain to contain only the cells ranging between0.5 and 1 of alpha water and I ended up with the domain illustrated in picture3, and then I applied the annotation filter setting up the array association toPoint Data and the expression to algs.sum(algs.volume(inputs[0])), but I endedup with an error in the render view and output message stating thatAttributeError:'None Type' object has no attribute 'GetCellData'. I couldn'tunderstand the reason, I tried all the array Association options, I gotthe same error, except for the Row Data, I got this error:AttributeError:'NoneType' object has no attribute 'GetNumberOfArrays'. (picture 4 and 5). I googled that link paraview.simple.PythonAnnotation — ParaView/Python5.0.1-RC1-193-gad11756 documentation
| |
| | | | | | |
| paraview.simple.PythonAnnotation — ParaView/Python 5.0.1-RC1-193-gad11756 documentation Docs » Index paraview.simple.PythonAnnotation paraview.simple.PythonAnnotation paraview.simple.PythonAnnotation(*input, **params) This filter uses Python to calculate an expression. It | |
| | |
| Afficher sur www.paraview.org | Aperçu par Yahoo | |
| | |
| |
| | | | | | | |
It says that I need to set the input whichI didn't know how to do it since it doesn't ask for any input in the PropertiesPanel. Any solutions for this problem ?? In this expression algs.sum(algs.volume(inputs[0])), whatdoes the 0 stands for ? I think if I threshold the domain in which Iwant to calculate the volume of water, let's say between 0.5 and 1, then I willend up by inaccurate water volume because I am including volume of air in thecomputed volume and on the other hand I am ignoring the cells that contain lessthan 0.5 of water. That's why, I am looking for an algorithm that multiplyevery cell containing water by the coefficient alpha water. You find attachedin picture 6, an example of how I want to calculate the water volume. I don'tknow how to program it. Any helps concerning this matter will be verymuch appreciated. Regards, Islem Megdiche PhD student
Le Mardi 23 février 2016 14h21, Cory Quammen <cory.quammen at kitware.com> a écrit :
Hi Islem,
Please reply-all to keep the discussion on the list so that others may
benefit from the discussion.
First, is there a data array that describes whether a volume element
in your mesh contains water or some other element? If so, you can use
the Threshold filter under the Filters -> Alphabetical -> Threshold
menu to select only the elements representing water. You will have to
set the minimum and maximum to the value that represents water, then
click Apply.
HTH,
Cory
On Mon, Feb 22, 2016 at 1:14 PM, Megdich Islem <megdich_islem at yahoo.fr> wrote:
> Hi again,
>
> Thank you for your suggestion, Could you please explain how to do the first
> step because I am not the one who created the picture I sent you before.
>
> Regards,
> Islem
>
>
> Le Lundi 22 février 2016 16h45, Megdich Islem <megdich_islem at yahoo.fr> a
> écrit :
>
>
> Thank you for your reply. I will try your suggestions.
>
> Regards,
> Islem
>
>
> Le Lundi 22 février 2016 14h22, Cory Quammen <cory.quammen at kitware.com> a
> écrit :
>
>
> Islem,
>
> There are likely two steps:
>
> 1). Threshold your volume to identify only the water-containing cells.
> It looks like you have a way to do this already?
>
> 2). Compute the volumes of the water-containing cells and summing them up.
>
> You can use the Threshold filter to do number 1 if you have a material
> code in the cell data. To compute the volume of the cells, add a
> Python Annotation filter to the Threshold filter. Set the Expression
> to
>
> algs.sum(algs.volume(inputs[0]))
>
> This uses the numpy-like interface in the Python layer to compute the
> volumes of the cells and sum them all up. The Python Annotation filter
> should display the volume with a text label in your renderer.
>
> Hope this helps,
> Cory
>
> On Mon, Feb 22, 2016 at 9:09 AM, Megdich Islem <megdich_islem at yahoo.fr>
> wrote:
>> Hi Cory,
>>
>> Thank you very much for your prompt reply. I've attached here a picture
>> that
>> illustrates my problem. I am working on the break of bund walls and I want
>> to compute the volume of water that overtops the bund wall (walls
>> surrounding storage tank), after the solution reaches the steady state.
>>
>> Regards,
>> Islem
>>
>>
>> Le Lundi 22 février 2016 13h53, Cory Quammen <cory.quammen at kitware.com> a
>> écrit :
>>
>>
>> Hi Islem,
>>
>> This is the place to ask ParaView questions! There is some activity on
>> StackOverflow, but most people ask questions on this mailing list.
>>
>> Could you clarify what you want to compute? Do you just want to subset
>> a volume mesh and display the results over time? Do you want to
>> compute one quantity and display it as a graph over time? Do you want
>> to compute a single number from a time series data set?
>>
>> Thanks,
>> Cory
>>
>> On Mon, Feb 22, 2016 at 8:48 AM, Megdich Islem <megdich_islem at yahoo.fr>
>> wrote:
>>> Hello,
>>>
>>> I am new to paraview, and I didn't find a forum under paraview website to
>>> ask my question.
>>> My question is is there any filter in paraview that lets to compute the
>>> evolution of a quantity within a specific volume of the mesh.
>>>
>>> Regards,
>>> Islem
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>>
>>
>>
>>
>> --
>> Cory Quammen
>> R&D Engineer
>> Kitware, Inc.
>
>>
>>
>>
>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>
>
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160308/90d629b6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1-computational-domain-min.jpg
Type: image/jpeg
Size: 89874 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160308/90d629b6/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2-clip-min.jpg
Type: image/jpeg
Size: 90774 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160308/90d629b6/attachment-0007.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3-threshold-min.jpg
Type: image/jpeg
Size: 96421 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160308/90d629b6/attachment-0008.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4-render-view-min.jpg
Type: image/jpeg
Size: 88976 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160308/90d629b6/attachment-0009.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5-output-message-min.jpg
Type: image/jpeg
Size: 86691 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160308/90d629b6/attachment-0010.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6-volume of water-min.jpg
Type: image/jpeg
Size: 69186 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160308/90d629b6/attachment-0011.jpg>
More information about the ParaView
mailing list