[Paraview] Calculating Surface area

Adriano Gagliardi agagliardi at ara.co.uk
Thu Apr 14 10:37:42 EDT 2011


Forwarding this to the mailing list...
 

===================================

Adriano Gagliardi MEng PhD
Business Sector Leader
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agagliardi at ara.co.uk
Url: www.ara.co.uk 

 

  _____  

From: Anowarul Islam [mailto:anwar0165 at gmail.com] 
Sent: 14 April 2011 15:32
To: agagliardi at ara.co.uk
Subject: Re: [Paraview] Calculating Surface area


Hello,

Thanks for your reply.Actually paraview crashes when I do integrate
variables.And I don't know how to use python scripting in paraview.So if you
give me the script and tell me how to run it, that would be great.I found
area of the triangles by using python calculator.I wrote in the expression
box : area(input[0]) and select cell type data.After that it gives me some
number beside every cell.As I sum all the results (which i beleive the area
of my triangles) I got the result which is very close to my expectation.Is
area(input[0]) expression giving me the area of all the triangles? or what?I
found this expression in wikipedia I guess.Thank you a lot.I think  for
people like you paraview is getting popular day by day.


On Thu, Apr 14, 2011 at 3:35 AM, Adriano Gagliardi <agagliardi at ara.co.uk>
wrote:



I'm pretty sure you can use a Python programmable filter to do this. If you
check the doxygen for vtkTriangle, there should be a member function that
returns the area of a specific triangle. Otherwise, the area of a triangle
is calculated as follows:

//     2
//    / \    v1 = (pt1-pt0)
//   /   \   v2 = (pt2-pt0)
//  0-----1  area = 0.5*mag( v1 x v2 )

You can write a quick script that does this for each face.

If I get time later today, I can supply a script as well.

Cheers,

Adriano

===================================

Adriano Gagliardi MEng PhD
Business Sector Leader
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agagliardi at ara.co.uk
Url: www.ara.co.uk

-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
On Behalf Of Ivo Roghair
Sent: 14 April 2011 08:29
To: Anowarul Islam
Cc: paraview at paraview.org
Subject: Re: [Paraview] Calculating Surface area

Perhaps you could try the Mesh Quality filter on the Delauny2D you created,
then the Cell Data To Point Data, finally the Integrate Variables (look for
the 'Quality' as the result of this function).

2011/4/12 Anowarul Islam <anwar0165 at gmail.com>:
> Hello,
>
> I have created a surface using the delaunay2d filters.After creating
> the surface I use smooth filter for surface smoothing.Now I want to
> find the surface area created by paraview.How can it be possible?I am
> trying to use the integrate variables but I am not sure about this
> filter because when I select this filter paraview crashes.Or is there
> any way I can get the area of the triangles of my delauny
> filters?Cause if I go to the delaunay filter and change table
> attribute to cell it shows the cell ID and highlights only that
> triangle in the model but it doesn't show the area of the triangle.I am
pretty new in paraview.Could you please help?
>
> Anwar
>
>
> _______________________________________________
> 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



**********************************************************************
This email contains information that is private and confidential and is
intended only for the addressee.
If you are not the intended recipient please delete it and notify us
immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone
other than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No
503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245

**********************************************************************





-- 
Anwar





**********************************************************************
This email contains information that is private and confidential and is intended only for the addressee.
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245

**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110414/cea760e7/attachment-0001.htm>


More information about the ParaView mailing list