truss2d.geo 551 B

12345678910111213141516171819202122232425262728
  1. // Choose the mesh size:
  2. c = 0.004;
  3. // Truss height, length, thickness:
  4. h = 1; l = 0.5; th = 0.01;
  5. Point(1) = {0, 0, 0, c};
  6. Point(2) = {th, 0, 0, c};
  7. Point(3) = {0, h, 0, c};
  8. Point(4) = {th, h+th, 0, c};
  9. Point(5) = {-l, h, 0, c};
  10. Point(6) = {-l, h+th, 0, c};
  11. Line(1) = {1, 2};
  12. Line(2) = {2, 4};
  13. Line(3) = {4, 6};
  14. Line(4) = {6, 5};
  15. Line(5) = {5, 3};
  16. Line(6) = {3, 1};
  17. Curve Loop(1) = {5, 6, 1, 2, 3, 4};
  18. Plane Surface(1) = {1};
  19. solid = 1; clamp = 2; load = 3;
  20. Physical Surface(solid) = {1};
  21. Physical Line(clamp) = {1};
  22. Physical Line(load) = {4};