[Paraview] PV 3.10.1 integration over a surface

2011-06-19 Thread Stephen Wornom
How does one compute the integral of P Normal ds ? 
where Normal is the surface normal vector 

click on integrate variables computes the integral of P ds 
I would like 
Fx = integral of P nx ds 
where nx ds is the surface area normal to the x-direction. 
Hope my question is clear. 
Stephen 
p.s. 
The surface in question is a cylinder 
___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV 3.10.1 integration over a surface

2011-06-19 Thread Andy Bauer
One way is to use the calculator filter to multiply the pressure by the
normal to get force per unit area on the cylinder.  Then you can use the
integrate variables filter to get the total force on it.

If you don't have normals on your cylinder, you can use the generate surface
normals filter but that only works for polydata.  The extract surface should
get you from any other data set to the polydata you want.

Andy

On Sun, Jun 19, 2011 at 4:01 AM, Stephen Wornom stephen.wor...@inria.frwrote:

 How does one compute the integral of P Normal ds ?
 where Normal is the surface normal vector

 click on integrate variables computes the integral of P ds
 I would like
 Fx = integral of P nx ds
 where nx ds is the surface area normal to the x-direction.
 Hope my question is clear.
 Stephen
 p.s.
 The surface in question is a cylinder

 ___
 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

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV 3.10.1 integration over a surface

2011-06-19 Thread Stephen Wornom

Andy Bauer wrote:
One way is to use the calculator filter to multiply the pressure by 
the normal to get force per unit area on the cylinder.  Then you can 
use the integrate variables filter to get the total force on it. 

If you don't have normals on your cylinder, you can use the generate 
surface normals filter but that only works for polydata.  The extract 
surface should get you from any other data set to the polydata you want.

I have cell normals (vector) next I do
cell data to point data
extract surface
when I do calculator, the cell normal vector is not in the list. How do 
I get the cell normal vector in the calculator list?

Thanks for your help,
Stephen


Andy

On Sun, Jun 19, 2011 at 4:01 AM, Stephen Wornom 
stephen.wor...@inria.fr mailto:stephen.wor...@inria.fr wrote:


How does one compute the integral of P Normal ds ?
where Normal is the surface normal vector

click on integrate variables computes the integral of P ds
I would like
Fx = integral of P nx ds
where nx ds is the surface area normal to the x-direction.
Hope my question is clear.
Stephen
p.s.
The surface in question is a cylinder

___
Powered by www.kitware.com http://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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview





--
stephen.wor...@inria.fr
2004 route des lucioles - BP93
Sophia Antipolis
06902 CEDEX

Tel: 04 92 38 50 54
Fax: 04 97 15 53 51

attachment: stephen_wornom.vcf___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV 3.10.1 integration over a surface

2011-06-19 Thread Andy Bauer
I think the cell normals that you have are generated for visualization and
not really part of your data set that's directly outputted from your
filter.  So when you do cell data to point data you still don't have the
normals in there.

Did you try using the extract surface and generate surface normals filters?

On Sun, Jun 19, 2011 at 12:52 PM, Stephen Wornom stephen.wor...@inria.frwrote:

 Andy Bauer wrote:

 One way is to use the calculator filter to multiply the pressure by the
 normal to get force per unit area on the cylinder.  Then you can use the
 integrate variables filter to get the total force on it.
 If you don't have normals on your cylinder, you can use the generate
 surface normals filter but that only works for polydata.  The extract
 surface should get you from any other data set to the polydata you want.

 I have cell normals (vector) next I do
 cell data to point data
 extract surface
 when I do calculator, the cell normal vector is not in the list. How do I
 get the cell normal vector in the calculator list?
 Thanks for your help,
 Stephen


 Andy

 On Sun, Jun 19, 2011 at 4:01 AM, Stephen Wornom 
 stephen.wor...@inria.frmailto:
 stephen.wornom@inria.**fr stephen.wor...@inria.fr wrote:

How does one compute the integral of P Normal ds ?
where Normal is the surface normal vector

click on integrate variables computes the integral of P ds
I would like
Fx = integral of P nx ds
where nx ds is the surface area normal to the x-direction.
Hope my question is clear.
Stephen
p.s.
The surface in question is a cylinder

__**_
Powered by www.kitware.com http://www.kitware.com

Visit other Kitware open-source projects at

 http://www.kitware.com/**opensource/opensource.htmlhttp://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/**ParaViewhttp://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:

 http://www.paraview.org/**mailman/listinfo/paraviewhttp://www.paraview.org/mailman/listinfo/paraview




 --
 stephen.wor...@inria.fr
 2004 route des lucioles - BP93
 Sophia Antipolis
 06902 CEDEX

 Tel: 04 92 38 50 54
 Fax: 04 97 15 53 51


___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] PV 3.10.1 integration over a surface

2011-06-19 Thread Jérôme
Hi,
my understanding is that when you used CellDataToPointData filter, the cell
data are removed and thus they don't appear in the Calculator. The
CellDataToPointData filter has a Pass Cell Data option that will keep the
original data in the pipeline.
However, I didn't understand from where you got your normals: are they
generated from Generate Surface Normals filter or outside ParaView? When
you load your data, do you see the CellData array in the information tab of
your data?

Best regards,
Jerome

2011/6/19 Andy Bauer andy.ba...@kitware.com

 I think the cell normals that you have are generated for visualization and
 not really part of your data set that's directly outputted from your
 filter.  So when you do cell data to point data you still don't have the
 normals in there.

 Did you try using the extract surface and generate surface normals filters?


 On Sun, Jun 19, 2011 at 12:52 PM, Stephen Wornom 
 stephen.wor...@inria.frwrote:

 Andy Bauer wrote:

 One way is to use the calculator filter to multiply the pressure by the
 normal to get force per unit area on the cylinder.  Then you can use the
 integrate variables filter to get the total force on it.
 If you don't have normals on your cylinder, you can use the generate
 surface normals filter but that only works for polydata.  The extract
 surface should get you from any other data set to the polydata you want.

 I have cell normals (vector) next I do
 cell data to point data
 extract surface
 when I do calculator, the cell normal vector is not in the list. How do I
 get the cell normal vector in the calculator list?
 Thanks for your help,
 Stephen


 Andy

 On Sun, Jun 19, 2011 at 4:01 AM, Stephen Wornom 
 stephen.wor...@inria.frmailto:
 stephen.wornom@inria.**fr stephen.wor...@inria.fr wrote:

How does one compute the integral of P Normal ds ?
where Normal is the surface normal vector

click on integrate variables computes the integral of P ds
I would like
Fx = integral of P nx ds
where nx ds is the surface area normal to the x-direction.
Hope my question is clear.
Stephen
p.s.
The surface in question is a cylinder

__**_
Powered by www.kitware.com http://www.kitware.com

Visit other Kitware open-source projects at

 http://www.kitware.com/**opensource/opensource.htmlhttp://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/**ParaViewhttp://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:

 http://www.paraview.org/**mailman/listinfo/paraviewhttp://www.paraview.org/mailman/listinfo/paraview




 --
 stephen.wor...@inria.fr
 2004 route des lucioles - BP93
 Sophia Antipolis
 06902 CEDEX

 Tel: 04 92 38 50 54
 Fax: 04 97 15 53 51



 ___
 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

 Follow this link to subscribe/unsubscribe:
 http://www.paraview.org/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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview