[Gmsh] generating an SU2 Euler mesh based on STEP input

Christophe Geuzaine cgeuzaine at uliege.be
Wed Mar 27 19:58:48 CET 2019


Hi Johannes,

I can't reproduce the crashes when deleting the curves... Your file also seems very complicated. I would just do:

SetFactory("OpenCASCADE");
Geometry.OCCTargetUnit = "M";
v() = ShapeFromFile("wing_fuselage.step");
Box(3) = {-5, -5, -5, 10, 10, 10};
out() = BooleanDifference{ Volume{3}; Delete; }{ Volume{v()}; Delete; };

out() will contain the volume of interest.

Christophe


> On 27 Mar 2019, at 19:29, Johannes Dillinger <jojodillinger at gmail.com> wrote:
> 
> Dear all,
> 
> I'm looking for a suitable way to "quickly" generate Euler meshes for SU2 CFD analysis.
> So the usual setup is a (hopefully rather simple) STEP model of a wing-fusleage part for example, that I want to mesh in GMSH.
> 
> I attached a sample STEP and the geo-file that I have been working on, but I cant seem to find the errors..
> 	• First I merge the STEP-file and reverse some surfaces (that apparently are oriented in the wrong direction)..
> 	• I generate a surface loop of the outer surfaces for defining outer volume later on. Here the first weird thing happens: the loop command generates surfaces 17, 18, and curves 39-44
> 	• I delete surfaces 17 and 18, since they later on will make problems otherwise
> 	• I also delete the imported volumes
> 
> I then generate a farfield/bounding box, and also here, the loop command generates additional surfaces 1007 to 1010, and I cant figure out why.. Anyway, I again delte those, since they will cause problems otherwise.
> 
> The last problem which really stops me from continuing is the outer volume that I generate with the "Volume" command in line 50. This one again generates a surface 1009, that I cant delete anymore..
> So the surface will be 2D meshed and maybe then leads to the problem that the outer volume cannot be meshed.
> 
> I guess thats enough questions and porblems for now. Once solved, it would be great if you could help me with mesh density and so on (already in the geo though), but thats for later..:-)
> 
> So, to sum up:
> 	• is the general methodology I use ok?
> 	• how can I avoid the additional surfaces and curves to be created?
> 	• which problem still exists that does not allow for the 3D mesh generation?
> Thank you so much in advance!
> Best regards,
> 
> Johannes
> 
> 
> 
> 
> <wing_fuselage.geo><wing_fuselage.step>_______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list