length of facets

Asked by Zeljka Tutek on 2010-04-13

Hi there!
How can I reach the length of interior facets?
Regards,
Zeljka

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Garth Wells
Solved:
2010-04-13
Last query:
2010-04-13
Last reply:
2010-04-13
Best Garth Wells (garth-wells) said : #1

On 13/04/10 21:20, Zeljka Tutek wrote:
> New question #107269 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/107269
>
> Hi there!
> How can I reach the length of interior facets?

For a given cell c and local facet number i,

   double facet_length = c.facet_area(i);

For use in a form,

   FacetArea facet_area(mesh);

Garth

> Regards,
> Zeljka
>

Zeljka Tutek (zeljkat) said : #2

Thanks Garth Wells, that solved my question.