demo25
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,'N',8,'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
error: 'Gh' undefined near line 2 column 3
in:
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,'N',8,'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