← Back to team overview

dolfin team mailing list archive

Re: [Question #107269]: length of facets

 

Question #107269 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/107269

    Status: Open => Answered

Garth Wells proposed the following answer:

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
>

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.