[Gmsh] Extruding a 2D Surface Created in FreeCAD

Christophe Geuzaine cgeuzaine at uliege.be
Wed Jan 31 20:34:36 CET 2018



> On 31 Jan 2018, at 19:39, James Gross <jgross0227 at gmail.com> wrote:
> 
> Hi people,
> 
> I am hoping to use Gmsh to create a 2D mesh for OpenFOAM. I've created the original 2D surface in FreeCAD and exported it as a BRep file. 
> 
> When I try to extrude the surface, it doesn't work. There are no error messages, but the surface hasn't been extruded. When I created the geometry in Gmsh, there was no issue with extrusion.
> 
> Here is a shortened version of the script.
> 

Add SetFactory(“OpenCASCADE”) at the beginning of the file.


> Merge "Part.brep";
> 
> Recombine Surface{1};
> 
> out[] = Extrude {0,0,1}
> {
>   Surface {1}; Layers{1}; Recombine;
> };
> 
> Mesh.Smoothing = 100;
> 
> Thanks.
> 
> James 
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20180131/66d2175d/attachment.html>


More information about the gmsh mailing list