demo05

fprintf('--------------- %s\n',mfilename())
fprintf('3D partitioned mesh from geofile using ''MshFileVersion''=''2.2''\n')
fprintf('---------------\n')
geofile='cylinderkey';np=5;
fprintf('1. Building partitioned mesh file\n')
fprintf('   -> geofile : %s\n',geofile)
fprintf('   -> number of partitions : %d\n',np);
pmfile=fc_oogmsh.gmsh.buildpartmesh(geofile,np,'verbose',2,'force',true,'MshFileVersion','2.2');
fprintf('   -> partitioned msh file : %s\n',fc_oogmsh.pathrep(pmfile));
fprintf('2. Reading the partitioned mesh file\n')
pGh=fc_oogmsh.ooGmsh2(pmfile)

if fc_oogmsh.isgraphics()
  pGh.plotPhysicalElements()
  pGh.plotElementaryElements()
  pGh.plotPartitionElements()
  pGh.plotInterfaceElements()
end
--------------- publish
3D partitioned mesh from geofile using 'MshFileVersion'='2.2'
---------------
1. Building partitioned mesh file
   -> geofile : cylinderkey
   -> number of partitions : 5
[fc-oogmsh] Input file : <fc-oogmsh>/geodir/3d/cylinderkey.geo
[fc-oogmsh] Overwritting mesh file <fc-oogmsh>/meshes/cylinderkey-10-part5.msh
[fc-oogmsh] Starting building mesh <fc-oogmsh>/meshes/cylinderkey-10-part5.msh with gmsh 2.16.0
[fc-oogmsh]  Using command : gmsh -2 -part 5 -setnumber N 10  -string "Mesh.MshFileVersion=2.2;"   -saveall  <fc-oogmsh>/geodir/3d/cylinderkey.geo -o <fc-oogmsh>/meshes/cylinderkey-10-part5.msh
 Be patient...
[fc-oogmsh] Using gmsh 2.16.0 to write MSH file format version 2.2 in <fc-oogmsh>/meshes/cylinderkey-10-part5.msh
   -> partitioned msh file : <fc-oogmsh>/meshes/cylinderkey-10-part5.msh
2. Reading the partitioned mesh file
pGh =
 
  fc_oogmsh.ooGmsh2 with properties:
                Info: (1x1 struct)
          MeshFormat: (1x1 struct)
                   d: 2 double
               debug: (1x1 struct)
                 dim: 3 double
            meshfile: (1x80 char)
                  nq: 3269 double
              orders: 1 double
    partitionnedfile: 1 logical
                   q: (3x3269 double)
               sElts: (3x1 struct)
            toGlobal: (1x3269 double)
               types: [ 1 2 15 ] (1x3 double)
 
demo05-1.pngdemo05-2.pngdemo05-3.pngdemo05-4.pngdemo05-5.pngdemo05-6.png