demo13
fprintf('--------------- %s\n',mfilename())
fprintf('2D meshing with gmsh.buildpartrectangle function using ''MshFileVersion''=''4.1''\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','4.1');
fprintf(' -> msh file : %s\n',fc_oogmsh.pathrep(meshfile));
fprintf('2. Reading mesh file\n')
Gh=fc_oogmsh.ooGmsh4(meshfile)
if fc_oogmsh.isgraphics()
Gh.plotPhysicalElements()
Gh.plotElementaryElements()
end
--------------- publish
2D meshing with gmsh.buildpartrectangle function using 'MshFileVersion'='4.1'
---------------
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 4.11.0
[fc-oogmsh] Using command : '/fcopt/GMSH/64bit/4.11.0/bin/gmsh' -2 -string "Mesh.MshFileVersion=4.1;" -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 4.11.0
[fc-oogmsh] Using command : gmsh -2 -string "Mesh.MshFileVersion=4.1;" -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/4.11.0/bin/gmsh -2 -string Mesh.MshFileVersion=4.1; -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 4.11.0, 1 node, max. 1 thread]
Info : Started on Wed Dec 21 08:10:57 2022
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 : Meshing 1D...
Info : [ 0%] Meshing curve 1 (Line)
Info : [ 10%] Meshing curve 2 (Line)
Info : [ 20%] Meshing curve 3 (Line)
Info : [ 20%] Meshing curve 4 (Line)
Info : [ 30%] Meshing curve 5 (Line)
Info : [ 30%] Meshing curve 6 (Line)
Info : [ 40%] Meshing curve 7 (Line)
Info : [ 50%] Meshing curve 8 (Line)
Info : [ 50%] Meshing curve 9 (Line)
Info : [ 60%] Meshing curve 10 (Line)
Info : [ 60%] Meshing curve 11 (Line)
Info : [ 70%] Meshing curve 12 (Line)
Info : [ 80%] Meshing curve 13 (Line)
Info : [ 80%] Meshing curve 14 (Line)
Info : [ 90%] Meshing curve 15 (Line)
Info : [ 90%] Meshing curve 16 (Line)
Info : [100%] Meshing curve 17 (Line)
Info : Done meshing 1D (Wall 0.00249298s, CPU 0.006923s)
Info : Meshing 2D...
Info : [ 0%] Meshing surface 19 (Plane, Frontal-Delaunay)
Info : [ 20%] Meshing surface 21 (Plane, Frontal-Delaunay)
Info : [ 40%] Meshing surface 23 (Plane, Frontal-Delaunay)
Info : [ 50%] Meshing surface 25 (Plane, Frontal-Delaunay)
Info : [ 70%] Meshing surface 27 (Plane, Frontal-Delaunay)
Info : [ 90%] Meshing surface 29 (Plane, Frontal-Delaunay)
Info : Done meshing 2D (Wall 0.0151041s, CPU 0.025861s)
Info : 308 nodes 667 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 Wed Dec 21 08:10:57 2022 (From start: Wall 0.0276099s, CPU 0.067509s)
[fc-oogmsh] Using gmsh 4.11.0 to write MSH file format version 4.1 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.ooGmsh4 with properties:
Elements: (1x1 struct)
Entities: (1x1 struct)
Info: (1x1 struct)
MeshFormat: (1x1 struct)
Nodes: (1x1 struct)
PartitionedEntities: []
PeriodicLinks: []
PhysicalNames: []
d: 2 double
dim: 2 double
meshfile: (1x101 char)
nq: 308 double
orders: 1 double
partitionnedfile: 0 logical
q: (2x308 double)
toGlobal: (1x308 double)



