fprintf('--------------- %s\n',mfilename()) fprintf('2D meshing with gmsh.buildpartrectangle function using ''MshFileVersion''=''2.2''\n') fprintf('---------------\n') fprintf('1. Using gmsh.buildpartrectangle function :\n') meshfile=fc_oogmsh.gmsh.buildpartrectangle(2,1,3,2,10,'verbose',4,'force',true,'MshFileVersion','2.2'); fprintf(' -> msh file : %s\n',fc_oogmsh.pathrep(meshfile)); fprintf('2. Reading mesh file\n') Gh=fc_oogmsh.ooGmsh2(meshfile) if fc_oogmsh.isgraphics() Gh.plotPhysicalElements() Gh.plotElementaryElements() end
--------------- demo03 2D meshing with gmsh.buildpartrectangle function using 'MshFileVersion'='2.2' --------------- 1. Using gmsh.buildpartrectangle function : [fc-oogmsh] Input file : <fc-oogmsh>/geodir/2d/rectanglepart.geo [fc-oogmsh] Overwritting mesh file <fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh [fc-oogmsh] Starting building mesh <fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh with gmsh 2.16.0 [fc-oogmsh] Using command : '/fcopt/GMSH/64bit/2.16.0/bin/gmsh' -2 -string "Mesh.MshFileVersion=2.2;" -setnumber N 10 -setnumber NX 3 -setnumber NY 2 -setnumber LX 2 -setnumber LY 1 '/home/cuvelier/Travail/Recherch/Matlab/fc-oogmsh/geodir/2d/rectanglepart.geo' -o '/home/cuvelier/Travail/Recherch/Matlab/fc-oogmsh/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh' Be patient... [fc-oogmsh] Starting building mesh <fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh with gmsh 2.16.0 [fc-oogmsh] Using command : gmsh -2 -string "Mesh.MshFileVersion=2.2;" -setnumber N 10 -setnumber NX 3 -setnumber NY 2 -setnumber LX 2 -setnumber LY 1 <fc-oogmsh>/geodir/2d/rectanglepart.geo -o <fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh Be patient... [fc-oogmsh] gmsh output : Info : Running '/fcopt/GMSH/64bit/2.16.0/bin/gmsh -2 -string Mesh.MshFileVersion=2.2; -setnumber N 10 -setnumber NX 3 -setnumber NY 2 -setnumber LX 2 -setnumber LY 1 <fc-oogmsh>/geodir/2d/rectanglepart.geo -o <fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh' [Gmsh 2.16.0, 1 node, max. 1 thread] Info : Started on Fri Mar 20 15:07:34 2020 Info : Reading '<fc-oogmsh>/geodir/2d/rectanglepart.geo'... Info : Reading '<fc-oogmsh>/geodir/2d/partitions01_data.geo'... Info : Done reading '<fc-oogmsh>/geodir/2d/partitions01_data.geo' Info : Reading '<fc-oogmsh>/geodir/2d/partitions_shape.geo'... Info : Done reading '<fc-oogmsh>/geodir/2d/partitions_shape.geo' Info : Done reading '<fc-oogmsh>/geodir/2d/rectanglepart.geo' Info : Finalized high order topology of periodic connections Info : Meshing 1D... Info : Meshing curve 1 (Line) Info : Meshing curve 2 (Line) Info : Meshing curve 3 (Line) Info : Meshing curve 4 (Line) Info : Meshing curve 5 (Line) Info : Meshing curve 6 (Line) Info : Meshing curve 7 (Line) Info : Meshing curve 8 (Line) Info : Meshing curve 9 (Line) Info : Meshing curve 10 (Line) Info : Meshing curve 11 (Line) Info : Meshing curve 12 (Line) Info : Meshing curve 13 (Line) Info : Meshing curve 14 (Line) Info : Meshing curve 15 (Line) Info : Meshing curve 16 (Line) Info : Meshing curve 17 (Line) Info : Done meshing 1D (0.005867 s) Info : Meshing 2D... Info : Meshing surface 19 (Plane, Delaunay) Info : Meshing surface 21 (Plane, Delaunay) Info : Meshing surface 23 (Plane, Delaunay) Info : Meshing surface 25 (Plane, Delaunay) Info : Meshing surface 27 (Plane, Delaunay) Info : Meshing surface 29 (Plane, Delaunay) Info : Done meshing 2D (0.0185061 s) Info : 320 vertices 691 elements Info : Writing '<fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh'... Info : Done writing '<fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh' Info : Stopped on Fri Mar 20 15:07:34 2020 [fc-oogmsh] Using gmsh 2.16.0 to write MSH file format version 2.2 in <fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh -> msh file : <fc-oogmsh>/meshes/rectanglepart-Lx2.000-Ly1.000-Nx3-Ny2-N10.msh 2. Reading mesh file Gh = fc_oogmsh.ooGmsh2 with properties: q: (2x320 double) dim: 2 double nq: 320 double d: 2 double sElts: (2x1 struct) toGlobal: (1x320 double) partitionnedfile: 0 logical orders: 1 double types: [ 1 2 ] (1x2 int32) MeshFormat: (1x1 struct) meshfile: (1x101 char) Info: (1x1 struct) debug: (1x1 struct)