demo06
fprintf('--------------- %s\n',mfilename())
fprintf('3D surface meshing: mesh and partitioned mesh using ''MshFileVersion''=''2.2''\n')
fprintf('---------------\n')
geofile='sphere8surf.geo';
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.buildmesh3ds(geofile,10,'verbose',2,'force',true,'MshFileVersion','2.2');
fprintf(' -> msh file : %s\n',fc_oogmsh.pathrep(meshfile));
fprintf('2. Reading the mesh file\n')
Gh=fc_oogmsh.ooGmsh2(meshfile)
fprintf('3. Building partitioned mesh file\n')
fprintf(' -> number of partitions : %d\n',np);
pmfile=fc_oogmsh.gmsh.buildpartmesh3ds(meshfile,np,'verbose',2,'force',true,'MshFileVersion','2.2');
fprintf(' -> partitioned msh file : %s\n',fc_oogmsh.pathrep(pmfile));
fprintf('4. Reading the partitioned mesh file\n')
pGh=fc_oogmsh.ooGmsh2(pmfile)
if fc_oogmsh.isgraphics()
Gh.plotPhysicalElements()
Gh.plotElementaryElements()
pGh.plotPhysicalElements()
pGh.plotElementaryElements()
pGh.plotPartitionElements()
pGh.plotInterfaceElements()
end
--------------- publish
3D surface meshing: mesh and partitioned mesh using 'MshFileVersion'='2.2'
---------------
1. Building a mesh file by using :
-> gmsh version 2.16.0
-> geo file : sphere8surf.geo
[fc-oogmsh] Input file : <fc-oogmsh>/geodir/3ds/sphere8surf.geo
[fc-oogmsh] Overwritting mesh file <fc-oogmsh>/meshes/sphere8surf-10.msh
[fc-oogmsh] Starting building mesh <fc-oogmsh>/meshes/sphere8surf-10.msh with gmsh 2.16.0
[fc-oogmsh] Using command : gmsh -2 -setnumber N 10 -string "Mesh.MshFileVersion=2.2;" <fc-oogmsh>/geodir/3ds/sphere8surf.geo -o <fc-oogmsh>/meshes/sphere8surf-10.msh
Be patient...
[fc-oogmsh] Using gmsh 2.16.0 to write MSH file format version 2.2 in <fc-oogmsh>/meshes/sphere8surf-10.msh
-> msh file : <fc-oogmsh>/meshes/sphere8surf-10.msh
2. Reading the mesh file
Gh =
fc_oogmsh.ooGmsh2 with properties:
Info: (1x1 struct)
MeshFormat: (1x1 struct)
d: 2 double
debug: (1x1 struct)
dim: 3 double
meshfile: (1x74 char)
nq: 1514 double
orders: 1 double
partitionnedfile: 0 logical
q: (3x1514 double)
sElts: (3x1 struct)
toGlobal: (1x1514 double)
types: [ 1 2 15 ] (1x3 double)
3. Building partitioned mesh file
-> number of partitions : 5
[fc-oogmsh] Input file : <fc-oogmsh>/meshes/sphere8surf-10.msh
[fc-oogmsh] Overwritting mesh file <fc-oogmsh>/meshes/sphere8surf-10-part5.msh
[fc-oogmsh] Starting building mesh <fc-oogmsh>/meshes/sphere8surf-10-part5.msh with gmsh 2.16.0
[fc-oogmsh] Using command : gmsh -2 -part 5 -string "Mesh.MshFileVersion=2.2;" -saveall <fc-oogmsh>/meshes/sphere8surf-10.msh -o <fc-oogmsh>/meshes/sphere8surf-10-part5.msh
Be patient...
[fc-oogmsh] Using gmsh 2.16.0 to write MSH file format version 2.2 in <fc-oogmsh>/meshes/sphere8surf-10-part5.msh
-> partitioned msh file : <fc-oogmsh>/meshes/sphere8surf-10-part5.msh
4. 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: 1514 double
orders: 1 double
partitionnedfile: 1 logical
q: (3x1514 double)
sElts: (3x1 struct)
toGlobal: (1x1514 double)
types: [ 1 2 15 ] (1x3 double)










