Logbook  (07-04-2025)
Static problems
square.geo
1 /******************************************************************************
2 * Copyright (C) Siarhei Uzunbajakau, 2023.
3 *
4 * This program is free software. You can use, modify, and redistribute it under
5 * the terms of the GNU Lesser General Public License as published by the Free
6 * Software Foundation, either version 3 or (at your option) any later version.
7 * This program is distributed without any warranty.
8 *
9 * Refer to COPYING.LESSER for more details.
10 ******************************************************************************/
11 
12 r = 7; //@1
13 
14 a = 1.0;
15 
16 Point(1) = {-a,-a, 0};
17 Point(2) = {-a, a, 0};
18 Point(3) = { a, a, 0};
19 Point(4) = { a,-a, 0};
20 
21 Line(1) = {1, 2};
22 Line(2) = {2, 3};
23 Line(3) = {3, 4};
24 Line(4) = {4, 1};
25 
26 Line Loop(1) = {1, 2, 3, 4};
27 Plane Surface(1) = {1};
28 
29 Physical Surface(100) = {1};
30 
31 Physical Line(1) = {2, 3};
32 Physical Line(2) = {1, 4};
33 
34 // Physical Line(1) = {1, 2, 3, 4};
35 
36 Recombine Surface "*";
37 
38 Transfinite Surface "*";
39 Transfinite Line "*" = 2*r - 1;
40