demo22
MshFileVersion='4.1';
fprintf('--------------- demo22\n')
fprintf('2D meshing: mesh and partitioned mesh using ''MshFileVersion''=''%s''(default)\n',MshFileVersion)
fprintf('---------------\n')
geofile='condenser';
np=5;
fprintf('1. Building a mesh file by using :\n')
fprintf(' -> gmsh version %s\n',fc_oogmsh.gmsh.version())
fprintf(' -> geo file : %s\n',geofile);
meshfile=fc_oogmsh.gmsh.buildmesh(geofile,20,'verbose',2,'force',true,'MshFileVersion',MshFileVersion);
fprintf(' -> msh file : %s\n',fc_oogmsh.pathrep(meshfile));
fprintf('2. Reading the mesh file\n')
Gh=fc_oogmsh.ooGmsh4(meshfile)
fprintf('3. Building partitioned mesh file\n')
fprintf(' -> number of partitions : %d\n',np);
pmfile=fc_oogmsh.gmsh.buildpartmesh(meshfile,np,'verbose',2,'force',true,'MshFileVersion',MshFileVersion);
fprintf(' -> partitioned msh file : %s\n',fc_oogmsh.pathrep(pmfile));
fprintf('4. Reading the partitioned mesh file\n')
pGh=fc_oogmsh.ooGmsh4(pmfile)
--------------- demo22
2D meshing: mesh and partitioned mesh using 'MshFileVersion'='4.1'(default)
---------------
1. Building a mesh file by using :
-> gmsh version 4.2.2
-> geo file : condenser
[fc-oogmsh] Input file : <fc-oogmsh>/geodir/2d/condenser.geo
[fc-oogmsh] Overwritting mesh file <fc-oogmsh>/meshes/condenser-20.msh
[fc-oogmsh] Starting building mesh <fc-oogmsh>/meshes/condenser-20.msh with gmsh 4.2.2
[fc-oogmsh] Using command : gmsh -2 -setnumber N 20 -string "Mesh.MshFileVersion=4.1;" <fc-oogmsh>/geodir/2d/condenser.geo -o <fc-oogmsh>/meshes/condenser-20.msh
Be patient...
[fc-oogmsh] Using gmsh 4.2.2 to write MSH file format version 4.1 in <fc-oogmsh>/meshes/condenser-20.msh
-> msh file : <fc-oogmsh>/meshes/condenser-20.msh
2. Reading the mesh file
Gh =
fc_oogmsh.ooGmsh4 with properties:
Elements: (1x1 struct)
Entities: (1x1 struct)
MeshFormat: (1x1 struct)
Nodes: (1x1 struct)
PartitionedEntities: []
PeriodicLinks: []
PhysicalNames: []
dim: 2 double
meshfile: (1x72 char)
nq: 35884 double
partitionnedfile: 0 logical
q: (2x35884 double)
toGlobal: (1x35884 double)
3. Building partitioned mesh file
-> number of partitions : 5
[fc-oogmsh] Input file : <fc-oogmsh>/meshes/condenser-20.msh
[fc-oogmsh] Overwritting mesh file <fc-oogmsh>/meshes/condenser-20-part5.msh
[fc-oogmsh] Starting building mesh <fc-oogmsh>/meshes/condenser-20-part5.msh with gmsh 4.2.2
[fc-oogmsh] Using command : gmsh -2 -saveall -part 5 -string "Mesh.MshFileVersion=4.1;" <fc-oogmsh>/meshes/condenser-20.msh -o <fc-oogmsh>/meshes/condenser-20-part5.msh
Be patient...
[fc-oogmsh] Using gmsh 4.2.2 to write MSH file format version 4.1 in <fc-oogmsh>/meshes/condenser-20-part5.msh
-> partitioned msh file : <fc-oogmsh>/meshes/condenser-20-part5.msh
4. Reading the partitioned mesh file
pGh =
fc_oogmsh.ooGmsh4 with properties:
Elements: (1x1 struct)
Entities: (1x1 struct)
MeshFormat: (1x1 struct)
Nodes: (1x1 struct)
PartitionedEntities: (1x1 struct)
PeriodicLinks: []
PhysicalNames: []
dim: 2 double
meshfile: (1x78 char)
nq: 35885 double
partitionnedfile: 1 logical
q: (2x35885 double)
toGlobal: (1x35885 double)