Demo entry 3550650

Gmsh circle in C highlighting

   

Submitted by Christian on Jan 22, 2016 at 17:23
Language: C. Code size: 413 Bytes.

coarse = 0.001;
fine   = 0.005;
r      = 7.62e-3/2;

Point(1) = { 0,  0, 0, coarse};
Point(2) = {-r, -r, 0, coarse};
Point(3) = {-r,  r, 0, coarse};
Point(4) = { r,  r, 0, coarse};
Point(5) = { r, -r, 0, coarse};

Circle(1) = {2,1,3};
Circle(2) = {3,1,4};
Circle(3) = {4,1,5};
Circle(4) = {5,1,2};

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

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

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).