MshFileVersion='4.1'; fprintf('--------------- demo25\n') fprintf('3D partitioned mesh from geofile using ''MshFileVersion''=''%s''(default)\n',MshFileVersion) 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.buildpartmesh3d(geofile,np,'verbose',2,'force',true,'MshFileVersion',MshFileVersion); fprintf(' -> partitioned msh file : %s\n',fc_oogmsh.pathrep(pmfile)); fprintf('2. Reading the partitioned mesh file\n') pGh=fc_oogmsh.ooGmsh4(pmfile) if fc_oogmsh.isgraphics() Gh.plotPhysicalElements() Gh.plotElementaryElements() pGh.plotPhysicalElements() pGh.plotElementaryElements() pGh.plotPartitionElements() pGh.plotInterfaceElements() end
--------------- demo25 3D partitioned mesh from geofile using 'MshFileVersion'='4.1'(default) --------------- 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 4.5.1 [fc-oogmsh] Using command : gmsh -3 -part 5 -setnumber N 10 -string "Mesh.MshFileVersion=4.1;" -saveall <fc-oogmsh>/geodir/3d/cylinderkey.geo -o <fc-oogmsh>/meshes/cylinderkey-10-part5.msh Be patient... [fc-oogmsh] Using gmsh 4.5.1 to write MSH file format version 4.1 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.ooGmsh4 with properties: q: (3x5847 double) nq: 5847 double dim: 3 double d: 3 double toGlobal: (1x5847 double) meshfile: (1x80 char) partitionnedfile: 1 logical MeshFormat: (1x1 struct) PhysicalNames: [] Entities: (1x1 struct) PartitionedEntities: (1x1 struct) Nodes: (1x1 struct) Elements: (1x1 struct) PeriodicLinks: [] Info: (1x1 struct) orders: 1 double




















