[Gmsh] Embedded Mesh
Jensen, Aaron J.
Aaron.J.Jensen at leidos.com
Wed Oct 10 21:12:10 CEST 2018
Hello,
I would like to merge an existing mesh into a geometry and then mesh the unmeshed region using gmsh (something like a boundary mesh around a pre-existing mesh generated externally by another program). Ideally, this would result in a mesh that was partially created in gmsh and partially created externally to gmsh. Ultimately, I would like to do this in both 2D and 3D but am starting with the following in 2D:
Merge "square";
SetFactory("OpenCASCADE");
Surface Loop(1) = {1};
//sExternal = news;
//Rectangle(sExternal) = {0, 0, 0.0, 0.5, 0.5};
s1 = news;
Rectangle(s1) = {-0.25, -0.25, 0.0, 1.0, 1.0};
//BooleanDifference (2000) = { Surface{s1}; Delete; }{ Surface{sExternal}; };
BooleanDifference (2000) = { Surface{s1}; Delete; }{ Surface{1}; };
OpenCascade doesn't recognize surface 1 and BooleanDifference causes gmsh to crash. I assume I am doing something wrong? Can gmsh embed an existing mesh into a gmsh geometry or CAD model?
Thanks,
Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20181010/41027368/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: square
Type: application/octet-stream
Size: 7827 bytes
Desc: square
URL: <http://onelab.info/pipermail/gmsh/attachments/20181010/41027368/attachment.obj>
More information about the gmsh
mailing list