You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
404B

  1. // a solid cylinder of radius 0.5 and length (height) 2
  2. // base is in xz, height is in z
  3. SetFactory("OpenCASCADE");
  4. Cylinder(1) = {0, 0, 0, 0, 2, 0, 0.5};
  5. // entities for BCs and volume (surface)
  6. Physical Surface("bottom") = {3};
  7. Physical Surface("top") = {2};
  8. Physical Volume("bulk") = {1};
  9. // unstructured grid
  10. Mesh.CharacteristicLengthMax = 0.05;
  11. Mesh.ElementOrder = 2;
  12. Mesh.HighOrderOptimize = 2;