# [Gmsh] Physical surface

Alexis Blasselle alexis.blasselle at gmail.com
Tue Mar 2 16:13:47 CET 2010

```thank you very much, and scuse me for this simple question ! (I'm new at
gmsh)

Best regards,

alexis

2010/3/2 Ruth V. Sabariego <r.sabariego at ulg.ac.be>

>  22 is a Physical surface, not a geometrical entity.
> You cannot apply functions (Translate) that act on the geometry on physical
> entities.
>
> The end of your file should be something like this:
>
>
>
> Line Loop (1) = {23, 34, 45, 52 };
> Plane Surface(1) = {1};
>
>
> out23[] = Extrude {0,0,-H} { Line{23}; };
> out34[] = Extrude {0,0,-H} { Line{34}; };
> out45[] = Extrude {0,0,-H} { Line{45}; };
> out52[] = Extrude {0,0,-H} { Line{52}; };
>
> surfTot[] = {out23[1], out34[1], out45[1], out52[1], 1};
>
> //Line Loop (2) = {out23[0], out34[0], out45[0], out52[0] };
> //Plane Surface(1) = {2};
>
> Physical Surface(22) = {surfTot[]};
>
> Translate {4., 0, 0} { Duplicata{ Surface{surfTot[]}; } }
>
>
> Hope this helps,
> Ruth
>
>
>
>
>
> On 02/03/10 15:35, Alexis Blasselle wrote:
>
> I can't understand why my physical surface 22 is "unknown":
>
> // exemple
>
> lc1 = 0.05 ;
> R = 0.5;
> H = 3 ;
>
> Point(100) = {0., 0., 0., lc1};
> // premier cercle
> Point(1) = {  0. ,  0. , -H/2 , lc1  } ;
> Point(2) = {  R  ,  0. , -H/2 , lc1  } ;
> Point(3) = {  0. ,  R  , -H/2. , lc1  } ;
> Point(4) = { -R  ,  0. , -H/2 , lc1  } ;
> Point(5) = {  0. , -R  , -H/2 , lc1  } ;
>
> Circle(23) = { 2 , 1 , 3 } ;
> Circle(34) = { 3 , 1 , 4 } ;
> Circle(45) = { 4 , 1 , 5 } ;
> Circle(52) = { 5 , 1 , 2 } ;
>
> Line Loop (1) = {23, 34, 45, 52 };
>
>
> out23[] = Extrude {0,0,-H} { Line{23}; };
> out34[] = Extrude {0,0,-H} { Line{34}; };
> out45[] = Extrude {0,0,-H} { Line{45}; };
> out52[] = Extrude {0,0,-H} { Line{52}; };
>
> Line Loop (2) = {out23[0], out34[0], out45[0], out52[0] };
> Plane Surface(1) = {2};
>
> Physical Surface(22) = {out23[1], out34[1], out45[1], out52[1], -1 };
>
> Translate {4., 0, 0} { Duplicata{ Surface{22}; } }
>
>
>
> Best regards,
>
> Miss Blasselle
> --
> http://www.ann.jussieu.fr/~blasselle/<http://www.ann.jussieu.fr/%7Eblasselle/>
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.orghttp://www.geuz.org/mailman/listinfo/gmsh
>
>
> --
> Dr. Ir. Ruth V. Sabariego
> University of Liege, Dept. of Electrical Engineering & Computer Science,
> Applied & Computational Electromagnetics (ACE),
> phone: +32-4-3663737 - fax: +32-4-3662910 - http://ace.montefiore.ulg.ac.be/
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>
>

--
http://www.ann.jussieu.fr/~blasselle/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100302/b26728b4/attachment.html>
```