Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

18 lines
626B

  1. // an structured rectangle which creates an axi-symmetric
  2. // solid cylinder of radius 0.5 and length (height) 2
  3. SetFactory("OpenCASCADE");
  4. Rectangle(1) = {0, 0, 0, 0.5, 2};
  5. // entities for BCs and volume
  6. Physical Curve("bottom", 1) = {1};
  7. Physical Curve("top", 2) = {3};
  8. Physical Surface("bulk", 3) = {1};
  9. // structured grid
  10. Transfinite Line {1,3} = 1+0.5/0.01;
  11. Transfinite Line {2,4} = 1+2/0.01;
  12. Transfinite Surface "*";
  13. Recombine Surface {1}; // quads instead of triangs
  14. Mesh.ElementOrder = 2; // second-order quads
  15. Mesh.SecondOrderIncomplete = 0; // force quads9 (if set to true, quad8 are created)