[Dune] subentity geometry

Christian Engwer christian.engwer at uni-muenster.de
Wed Sep 3 21:30:45 CEST 2014


On Wed, Sep 03, 2014 at 06:47:00PM +0200, Jorrit Fahlke wrote:
> Am Wed,  3. Sep 2014, 15:32:42 +0200 schrieb Aleksejs Fomins:
> > Dear Dune,
> > 
> > I would really appreciate if you could help me with this question
> > 
> > I have a geometry type of a simplex, and I would like to use it to
> > produce a geometry type of a simplex of dimension smaller by 1.
> > 
> > What is the best way to do this
> 
> GeometryType reduceDimension(GeometryType gt)
> {
>   GeometryType new_gt;
>   new_gt.makeSimplex(gt.dim()-1)
>   return new_gt;
> }

If you are not sure which element type you are working with you can
also ask the referenceelement:

Dune::ReferenceElements<coordtype, dim>::general(gtype).type(i,c)
obtain the type of the i-th subentity of codimension c.

Christian

> 
> 
> ???
> 
> Regards,
> Jö.
> 
> -- 
> Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
> University of Münster, Orleans-Ring 10, D-48149 Münster
> Tel: +49 251 83 35146 Fax: +49 251 83 32729
> 
> featured product: Debian GNU/Linux - http://www.debian.org



> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune


-- 
Prof. Dr. Christian Engwer 
Institut für Numerische und Angewandte Mathematik
Fachbereich Mathematik und Informatik der Universität Münster
Einsteinstrasse 62
48149 Münster

E-Mail	christian.engwer at uni-muenster.de
Telefon	+49 251 83-35067
FAX		+49 251 83-32729




More information about the Dune mailing list