[Dune] subentity geometry

Aleksejs Fomins aleksejs.fomins at lspr.ch
Thu Sep 4 09:26:11 CEST 2014


Oh,

Thank you Christian and Jo, this is exactly what I had in mind.

I mean, at the moment my code only deals with simplices, but it would
make sense to keep things as general as possible so that people can
extend it to, say, cubes, if they need to.

Cheers,
Aleksejs

On 09/03/2014 09:30 PM, Christian Engwer wrote:
> 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
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 551 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140904/8df747ac/attachment.sig>


More information about the Dune mailing list