[Gmsh] Define 3d element layers

Mikhail Artemyev artemiev.mikhail at gmail.com
Tue Nov 18 15:21:46 CET 2014


Hi,

Is that what you want?

// --- ex.geo ---

cl = 0.1;
k = 10; // the number of layers

Point(1) = {0, 0, 0, cl};
Point(2) = {1, 0, 0, cl};
Point(3) = {1, 1, 0, cl};
Point(4) = {0, 1, 0, cl};

Line(1) = {1, 2};
Line(2) = {2, 3};
Line(3) = {1, 4};
Line(4) = {4, 3};

Line Loop(21) = {1, 2, -4, -3};
Plane Surface(1) = {21};

vol[] = Extrude {0, 0, 1} { Surface{1}; Layers{k}; };


Best,
Mikhail


On 11/18/2014 07:56 AM, Markus Fornoff wrote:
>
> Hi,
> I Would  like  to have  a defined  number  of Element layers (3d 
> Elements) through  in z Direction. :)
>
> Thanks
>
> Am 18.11.2014 14:54 schrieb "Mikhail Artemyev" 
> <artemiev.mikhail at gmail.com <mailto:artemiev.mikhail at gmail.com>>:
>
>     Hi Markus,
>
>     What is the tetra-layers?
>
>     Best,
>     Mikhail
>
>         Hello,
>
>         I'm using your nice gmsh-tool, its very good to handle. But
>         I've would like
>         to know if there is a way to define a minimum number of
>         tetra-layers?
>
>
>         Thanks.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20141118/70440d2a/attachment.html>