[Dune] How can I read a curved surface from gmsh?

Timo Koch timo.koch at iws.uni-stuttgart.de
Thu Mar 15 15:42:35 CET 2018


Dear Dmitry,

You cannot do that with UGGrid. You could use FoamGrid 
(https://gitlab.dune-project.org/extensions/dune-foamgrid) and probably 
AluGrid (https://gitlab.dune-project.org/extensions/dune-alugrid).

FoamGrid has two template parameters, the grid dimension and the 
coordinate/world dimension, you want Dune::FoamGrid<2,3>.

Best wishes

Timo


On 15.03.2018 15:23, Dmitry Mikhailovich Mazilkin wrote:
> Dear colleagues,
>
> I'm reading a grid from a msh file in the same way, how it was in 
> dune-pdelab-tutorials:
>
>     typedef Dune::UGGrid<2> Grid;
>     Dune::GridFactory<Grid> factory;
> Dune::GmshReader<Grid>::read(factory,"2d.msh",true,true);
>     std::shared_ptr<Grid> gridp(factory.createGrid());
>
> The object I want to read is a curved surface.
> Vertices of the grid in msh file have 3 components.
> And Z component is meaningful because the surface is not flat.
> But GmshReader ignores Z coordinates and takes only X and Y.
>
> How can I read 2D unstructured grid of curved surface in 3D space?
>
> Dmitry Mazilkin,
> TU Clausthal.
>
> _______________________________________________
> Dune mailing list
> Dune at lists.dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-- 
_______________________________________________________________

Timo Koch                              phone: +49 711 685 64676
IWS, Universität Stuttgart             fax:   +49 711 685 60430
Pfaffenwaldring 61        email: timo.koch at iws.uni-stuttgart.de
D-70569 Stuttgart            url: www.hydrosys.uni-stuttgart.de
_______________________________________________________________





More information about the Dune mailing list