<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>Hello,<br> <br> I am a PhD student using GMSH to generate crack faces. However, I could not find any example for this kind of post processing.<br> My .geo file is attached below, I put 'plugin crack' command inside but it did not work, I was wondering how to generate a post process file for this command. <br> <br> Thank you for your help.<br> <br> best regards,<br> Xiaoxin<br> //start of the file<br> lc1 = 3;<br> lc2 = 3;<br> <br> // We proceed by defining some elementary entities describing a cube:<br> <br> Point(1) = {0,0,0,lc1};<br> Point(2) = {40,0,0,lc1};<br> Point(3) = {40,40,0,lc1};<br> Point(4) = {0,40,0,lc1};<br> Point(5) = {0,0,40,lc1};<br> Point(6) = {40,0,40,lc1};<br> Point(7) = {40,40,40,lc1};<br> Point(8) = {0,40,40,lc1};<br> <br>   Line(30)={1,2};<br>   Line(31)={2,3};<br>   Line(32)={3,4};<br>   Line(33)={4,1};<br>   Line(34)={5,6};<br>   Line(35)={6,7};<br>   Line(36)={7,8};<br>   Line(37)={8,5};<br>   Line(38)={1,5};<br>   Line(39)={2,6};<br>   Line(40)={3,7};<br>   Line(41)={4,8};<br> Line Loop(42)={30,31,32,33};<br> Plane Surface(14)={42};<br> Line Loop(43)={-37,-36,-35,-34};<br> Plane Surface(16)={43};<br> Line Loop(44)={38,34,-39,-30};<br> Plane Surface(18)={44};<br> Line Loop(45)={-32,40,36,-41};<br> Plane Surface(20)={45};<br> Line Loop(46)={-33,41,37,-38};<br> Plane Surface(22)={46};<br> Line Loop(47)={39,35,-40,-31};<br> Plane Surface(24)={47};<br> vol1[]=Extrude{0,0,40}{Surface{14};};<br> Delete {Volume{vol1[1]};}<br> vol2[]=Extrude{0,40,0}{Surface{18};};<br> Delete {Volume{vol2[1]};}<br> vol3[]=Extrude{40,0,0}{Surface{22};};<br> Delete {Volume{vol3[1]};}<br> Physical Surface(1)={14};<br> Physical Surface(2)={vol1[0]};<br> Physical Surface(3)={18};<br> Physical Surface(4)={vol2[0]};<br> Physical Surface(5)={22};<br> Physical Surface(6)={vol3[0]};<br> Surface Loop(1)={14,vol2[0],vol3[0],18,22,vol1[0]};<br> Volume(1)={1};<br> Physical Volume(1)={1};<br> <br>   //n=1; add a crack surface. <br>  Point(5000)={1.645000e+01,7.466800e+00,5.890600e+00,lc2};<br>  Point(5001)={1.728000e+01,2.112300e+01,1.204100e+01,lc2};<br>  Point(5002)={2.823700e+01,1.636900e+01,2.111600e+01,lc2};<br>  Point(5003)={2.740700e+01,2.713500e+00,1.496600e+01,lc2};<br>   Line(5004)={5000,5001};<br>   Line(5005)={5001,5002};<br>   Line(5006)={5002,5003};<br>   Line(5007)={5003,5000};<br> Line Loop(5008)={5004,5005,5006,5007};<br> Plane Surface(5009)={5008};<br> Physical Surface(11)={5009};<br> Surface{5009}  In Volume{1};<br> <br> Plugin(Crack).Dimension = 2 ;<br> Plugin(Crack).PhysicalGroup = 11 ;<br> Plugin(Crack).OpenBoundaryPhysicalGroup = 0 ;<br> Plugin(Crack).Run ;<br> //end of the file</div></div></body></html>