[Paraview] Non-blocking coprocessing

2016-10-24 Thread Gallagher, Timothy P
Hello again!


I'm looking at using coprocessing for something that may take awhile to 
actually compute, so I would like to do it in a non-blocking fashion. 
Essentially I am going to be extracting data from the simulation into some 
numpy arrays (so once copied, the original data in the pipeline can change) and 
then send it to the root processor to do some global operations.


The global operations may take some time (not minutes, but longer than I want 
my simulation to wait for it to complete). Is there a way to do part of the 
pipeline in a non-blocking fashion, where the script calls a function that will 
write out a data file when processing and then returns control to the 
simulation prior to the function completion? Will I have to do something in 
native-python, like spawn a new thread to do the function call, or is there a 
way to do it with how Paraview operates?


On a related note, I may not want to have the root processor of the 
coprocessing to have any simulation code running on it. If I am running my 
simulation on N cores, is it possible to have N+1 cores running the coprocessor 
pipeline where the extra core receives the global data reduction from the N 
cores and does the crunching? Or am I starting to ask for too much there?


Thanks as always,


Tim
___
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


Re: [Paraview] [EXTERNAL] RE: [EXT] Re: Any way to select nodes that are inside a volume

2016-10-24 Thread Moreland, Kenneth
So the “Extract Block” filter should do the trick. Extract the blocks with the 
truss elements and write that out to a mesh file.

-Ken


From: Dennis Conklin 
Date: Monday, October 24, 2016 at 4:33 PM
To: "Moreland, Kenneth" , "Paraview (paraview@paraview.org)" 

Subject: RE: [EXTERNAL] RE: [EXT] Re: [Paraview] Any way to select nodes that 
are inside a volume

Ken,

Actually, I want to get just the truss elements that are embedded in the hex 
elements and write them out to a mesh file.  I’ve been playing in Patran, but I 
still end up with some trusses sticking out of the solid.

So, not rendering, I want to make a new element block which is clipped by the 
surface of the solid mesh.   So any truss element with a node outside the 
surface should be excluded when I write out the trimmed truss mesh.

I hope this is a little clearer.

Thanks for looking at this
Dennis

From: Moreland, Kenneth [mailto:kmo...@sandia.gov]
Sent: Monday, October 24, 2016 4:28 PM
To: Dennis Conklin ; Paraview 
(paraview@paraview.org) 
Subject: Re: [EXTERNAL] RE: [EXT] Re: [Paraview] Any way to select nodes that 
are inside a volume

Having the data in multiblock format is good. It is pretty easy to turn blocks 
on and off.

The easiest way to turn of the visibility of a block is to right click it in 
the 3D view and selected “Hide Block” from the pop-up menu.

For somewhat more sophisticated controls, use the Multi-block Inspector. From 
the menu bar, select View -> Multi-block Inspector. The Multi-block Inspector 
by default is placed underneath the Properties panel. The Multi-block Inspector 
allows you to quickly select blocks as well as turn their visibility on and 
off. (It’s also the only way to make visible blocks that are hidden with the 
pop-up menu.)

Note that both of these techniques only change what data is being rendered. If 
for some reason you need to extract the rebar blocks so that they can be 
independently proceed by filters, you can use the Extract Block filter.

-Ken


From: Dennis Conklin 
>
Date: Monday, October 24, 2016 at 7:47 AM
To: "Moreland, Kenneth" >, 
"Paraview (paraview@paraview.org)" 
>
Subject: [EXTERNAL] RE: [EXT] Re: [Paraview] Any way to select nodes that are 
inside a volume

Ken,

Yes it is a multiblock dataset and the rebar blocks are different than the hex 
blocks.

Dennis

From: Moreland, Kenneth [mailto:kmo...@sandia.gov]
Sent: Friday, October 21, 2016 10:56 PM
To: Dennis Conklin 
>; Paraview 
(paraview@paraview.org) 
>
Subject: [EXT] Re: [Paraview] Any way to select nodes that are inside a volume

Is there any feature of your data that distinguishes the rebar from the larger 
blob? Do you have a multiblock data with one or more blocks containing only 
rebar? Do you have field data that might be unique to the rebar such as 
material type or density?

-Ken

From: ParaView 
> on behalf 
of Dennis Conklin 
>
Date: Friday, October 21, 2016 at 2:47 PM
To: "Paraview (paraview@paraview.org)" 
>
Subject: [EXTERNAL] [Paraview] Any way to select nodes that are inside a volume

All,

I have a solid blob of elements.   Then I have a large cloud of embedded rebars 
that is much bigger than the solid blob.   I only want rebars that are inside 
the blob.Is there anyway to select only the rebar (truss element) nodes 
that are inside the solid blob.   Like if I extract surfaces from the blob, is 
there any any way to clip the nodes using those surfaces.   I have gotten close 
using clips, but I just can’t get them perfectly arranged to do what I need.

Are there any plug-ins out there or something?  Any ideas?

Thanks

Dennis
___
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


Re: [Paraview] [EXTERNAL] RE: [EXT] Re: Any way to select nodes that are inside a volume

2016-10-24 Thread Dennis Conklin
Ken,

Actually, I want to get just the truss elements that are embedded in the hex 
elements and write them out to a mesh file.  I’ve been playing in Patran, but I 
still end up with some trusses sticking out of the solid.

So, not rendering, I want to make a new element block which is clipped by the 
surface of the solid mesh.   So any truss element with a node outside the 
surface should be excluded when I write out the trimmed truss mesh.

I hope this is a little clearer.

Thanks for looking at this
Dennis

From: Moreland, Kenneth [mailto:kmo...@sandia.gov]
Sent: Monday, October 24, 2016 4:28 PM
To: Dennis Conklin ; Paraview 
(paraview@paraview.org) 
Subject: Re: [EXTERNAL] RE: [EXT] Re: [Paraview] Any way to select nodes that 
are inside a volume

Having the data in multiblock format is good. It is pretty easy to turn blocks 
on and off.

The easiest way to turn of the visibility of a block is to right click it in 
the 3D view and selected “Hide Block” from the pop-up menu.

For somewhat more sophisticated controls, use the Multi-block Inspector. From 
the menu bar, select View -> Multi-block Inspector. The Multi-block Inspector 
by default is placed underneath the Properties panel. The Multi-block Inspector 
allows you to quickly select blocks as well as turn their visibility on and 
off. (It’s also the only way to make visible blocks that are hidden with the 
pop-up menu.)

Note that both of these techniques only change what data is being rendered. If 
for some reason you need to extract the rebar blocks so that they can be 
independently proceed by filters, you can use the Extract Block filter.

-Ken


From: Dennis Conklin 
>
Date: Monday, October 24, 2016 at 7:47 AM
To: "Moreland, Kenneth" >, 
"Paraview (paraview@paraview.org)" 
>
Subject: [EXTERNAL] RE: [EXT] Re: [Paraview] Any way to select nodes that are 
inside a volume

Ken,

Yes it is a multiblock dataset and the rebar blocks are different than the hex 
blocks.

Dennis

From: Moreland, Kenneth [mailto:kmo...@sandia.gov]
Sent: Friday, October 21, 2016 10:56 PM
To: Dennis Conklin 
>; Paraview 
(paraview@paraview.org) 
>
Subject: [EXT] Re: [Paraview] Any way to select nodes that are inside a volume

Is there any feature of your data that distinguishes the rebar from the larger 
blob? Do you have a multiblock data with one or more blocks containing only 
rebar? Do you have field data that might be unique to the rebar such as 
material type or density?

-Ken

From: ParaView 
> on behalf 
of Dennis Conklin 
>
Date: Friday, October 21, 2016 at 2:47 PM
To: "Paraview (paraview@paraview.org)" 
>
Subject: [EXTERNAL] [Paraview] Any way to select nodes that are inside a volume

All,

I have a solid blob of elements.   Then I have a large cloud of embedded rebars 
that is much bigger than the solid blob.   I only want rebars that are inside 
the blob.Is there anyway to select only the rebar (truss element) nodes 
that are inside the solid blob.   Like if I extract surfaces from the blob, is 
there any any way to clip the nodes using those surfaces.   I have gotten close 
using clips, but I just can’t get them perfectly arranged to do what I need.

Are there any plug-ins out there or something?  Any ideas?

Thanks

Dennis
___
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


Re: [Paraview] [EXTERNAL] RE: [EXT] Re: Any way to select nodes that are inside a volume

2016-10-24 Thread Moreland, Kenneth
Having the data in multiblock format is good. It is pretty easy to turn blocks 
on and off.

The easiest way to turn of the visibility of a block is to right click it in 
the 3D view and selected “Hide Block” from the pop-up menu.

For somewhat more sophisticated controls, use the Multi-block Inspector. From 
the menu bar, select View -> Multi-block Inspector. The Multi-block Inspector 
by default is placed underneath the Properties panel. The Multi-block Inspector 
allows you to quickly select blocks as well as turn their visibility on and 
off. (It’s also the only way to make visible blocks that are hidden with the 
pop-up menu.)

Note that both of these techniques only change what data is being rendered. If 
for some reason you need to extract the rebar blocks so that they can be 
independently proceed by filters, you can use the Extract Block filter.

-Ken


From: Dennis Conklin 
Date: Monday, October 24, 2016 at 7:47 AM
To: "Moreland, Kenneth" , "Paraview (paraview@paraview.org)" 

Subject: [EXTERNAL] RE: [EXT] Re: [Paraview] Any way to select nodes that are 
inside a volume

Ken,

Yes it is a multiblock dataset and the rebar blocks are different than the hex 
blocks.

Dennis

From: Moreland, Kenneth [mailto:kmo...@sandia.gov]
Sent: Friday, October 21, 2016 10:56 PM
To: Dennis Conklin ; Paraview 
(paraview@paraview.org) 
Subject: [EXT] Re: [Paraview] Any way to select nodes that are inside a volume

Is there any feature of your data that distinguishes the rebar from the larger 
blob? Do you have a multiblock data with one or more blocks containing only 
rebar? Do you have field data that might be unique to the rebar such as 
material type or density?

-Ken

From: ParaView 
> on behalf 
of Dennis Conklin 
>
Date: Friday, October 21, 2016 at 2:47 PM
To: "Paraview (paraview@paraview.org)" 
>
Subject: [EXTERNAL] [Paraview] Any way to select nodes that are inside a volume

All,

I have a solid blob of elements.   Then I have a large cloud of embedded rebars 
that is much bigger than the solid blob.   I only want rebars that are inside 
the blob.Is there anyway to select only the rebar (truss element) nodes 
that are inside the solid blob.   Like if I extract surfaces from the blob, is 
there any any way to clip the nodes using those surfaces.   I have gotten close 
using clips, but I just can’t get them perfectly arranged to do what I need.

Are there any plug-ins out there or something?  Any ideas?

Thanks

Dennis
___
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


Re: [Paraview] wall shear stress

2016-10-24 Thread Andy Bauer
The following should work:

   - Gradient of Unstructured Data Set
   - Extract Surface
   - Generate Surface Normals
   - Calculator filter to compute the wall shear stress from the gradient
   and the surface normals.


On Fri, Oct 21, 2016 at 11:55 PM, Fande Kong  wrote:

> Still have hard time on this. If anyone in this mail list knows how to do
> this, I will appreciate for any suggestions. It would be great, if these is
> a step-by-step example.
>
> Regards,
>
> Fande,
>
> On Sun, Sep 18, 2016 at 6:54 PM, Fande Kong  wrote:
>
>> Hi David,
>>
>> Thanks very much for your reply. I am a new paraview user. Could you
>> possibly show me more details? Some documentations on each of these steps?
>>
>> On Sun, Sep 18, 2016 at 5:39 PM, David Thompson <
>> david.thomp...@kitware.com> wrote:
>>
>>> Hi Fande,
>>>
>>> You should be able to use the gradient filter to compute the velocity
>>> gradient and examine the component of the gradient normal to the wall. That
>>> will be proportional to the shear stress at the wall. Is the wall aligned
>>> with a coordinate axis?
>>>
>>
>> No, the wall is not aligned with a coordinate axis.  In fact, the
>> geometry is very complex. It is a pulmonary artery tree with several
>> generations.
>>
>> Thanks,
>>
>> Fande,
>>
>>
>>> If not, you will need to extract the wall surface and generate normal
>>> vectors, then dot the gradient with the normal vectors.
>>>
>>> David
>>>
>>> On Sep 18, 2016, at 16:01, Fande Kong  wrote:
>>>
>>> Hi Developers,
>>>
>>> I am solving an incompressible Navier-Stokes equations, and I have
>>> solutions for the velocity (u)  and the pressure (p). Is it possible to
>>> show the wall shear stress in paraview using the velocity?
>>>
>>>
>>> Fande Kong,
>>>
>>> ___
>>> 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
>>>
>>>
>>
>
> ___
> 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
>
>
___
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


Re: [Paraview] [EXT] Re: Any way to select nodes that are inside a volume

2016-10-24 Thread Dennis Conklin
Ken,

Yes it is a multiblock dataset and the rebar blocks are different than the hex 
blocks.

Dennis

From: Moreland, Kenneth [mailto:kmo...@sandia.gov]
Sent: Friday, October 21, 2016 10:56 PM
To: Dennis Conklin ; Paraview 
(paraview@paraview.org) 
Subject: [EXT] Re: [Paraview] Any way to select nodes that are inside a volume

Is there any feature of your data that distinguishes the rebar from the larger 
blob? Do you have a multiblock data with one or more blocks containing only 
rebar? Do you have field data that might be unique to the rebar such as 
material type or density?

-Ken

From: ParaView 
> on behalf 
of Dennis Conklin 
>
Date: Friday, October 21, 2016 at 2:47 PM
To: "Paraview (paraview@paraview.org)" 
>
Subject: [EXTERNAL] [Paraview] Any way to select nodes that are inside a volume

All,

I have a solid blob of elements.   Then I have a large cloud of embedded rebars 
that is much bigger than the solid blob.   I only want rebars that are inside 
the blob.Is there anyway to select only the rebar (truss element) nodes 
that are inside the solid blob.   Like if I extract surfaces from the blob, is 
there any any way to clip the nodes using those surfaces.   I have gotten close 
using clips, but I just can’t get them perfectly arranged to do what I need.

Are there any plug-ins out there or something?  Any ideas?

Thanks

Dennis
___
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