Imported step file -- meshing fails with Netgen (default) but OK with Netgen 6

When I try to mesh the attached model (step + liml), Netgen (default) fails with the errors below. However, Netgen 6 succeeds. (The step file was generated with Rhino. Rhino's check for naked edges didn't show any problems. Also, I tried making a surface mesh (per Mecway's diagnostics) but the same error occurred.)

The Netgen (default) mesher says that there is an error (singularity matrix) on surface 19. Gmsh shows that surface 19 is the small quarter circle at the bottom of the center hole. Any ideas?

When Mecway indicates a problem with meshing a particular surface, is there a way to identify that surface within Mecway?

What is the advantage of the default Netgen versus Netgen 6?

What is the Topology Explorer (bottom of first image)?

Thanks,
Don C.



Comments

  • Don't know what can be wrong on the model, have tested with similar results, anyway the part can be meshed directly in Salome using Netgen algorithm.
  • What Netgen algorithm does Salome use -- is it Mecway's default (don't know what it's algorithm is)?

    The step file also meshes in gmsh.

    Thoughts about my other questions?
  • edited May 2021
    hi dculp,

    The messages are meant for the Netgen program. The topology explorer is in Netgen. So the messages don't really apply to Mecway. The base Netgen option is a modified version of an older Netgen program. The Netgen 6 option was something Victor added in later on. I'm not sure of the reasons. They are both Netgen, just different versions. I don't know if the Netgen 6 option has the modifications made to the base Netgen option. You can download the current version of the Netgen program and try it out if you want. I'm going to try out your files and see what's going on. When I have problems in the Netgen program I can't tell where it is failing either. There may be a way but there is not good documentation for the program.
  • edited May 2021
    Ok, so I tried meshing it in the Netgen program. It acts like it works. But when I import the mesh into Mecway, red xs show up where there are problems. This looks like an assembly, because there are breaks in the surfaces that wouldn't be there if it was one part. Below is a pic of the extra lines that probably shouldn't be there. So perhaps it would help to mesh one part at a time. In Mecway, I couldn't get either Netgen option to work. If it's not an assembly, then something is wrong with the file.


  • here is the model rebuilt in rhino. it works fine now. i assumed it was supposed to be one part.


  • prop_design --

    Yes, this is one part, not an assembly. The extra lines are there because I need to measure the modal displacements along these lines. (These lines are located where my experimental measurements were made.) Therefore I want the mesh to align with these lines.

    In Rhino I first built the base model without the lines. I then used two cutting surfaces (parallel to XZ plane and YZ plane) to intersect the model at the desired locations. Then I selected everything but the cutting planes and joined to create a single part. I checked the resulting volume (OK) and for naked edges (OK); these will generally show any problems.

    I'm still wondering why Mecway's default Netgen mesher failed while the Netgen 6 mesher succeeded. I assume the default mesher has some advantage over the Netgen 6 or else it wouldn't be the default. There must be some significant differences between the two else why include both. Of course I could always try remeshing with Netgen 6 but I'm just curious about the default's failure, that perhaps that I need to change something with my modeling technique.

    Gmsh successfully meshed this model. JohnM commented here (https://mecway.com/forum/discussion/849/meshing-techniques/p1) that Netgen "will often fail to mesh when GMsh works." Per your suggestion in that thread, I tried setting a min mesh size for Mecway's default Netgen mesher but that didn't help.
  • prop_design --

    I see you have commented here (https://mecway.com/forum/discussion/989/mesh-quality) about having some problems with Mecway's implementation of Netgen. I'll have a look at Netgen's native mesher.
  • prop_design --

    Although the Rhino model looks perfectly fine, running \Analyze\Diagnostics\Check gives --



    Exploding the model and running the same check shows that the bad surface is, indeed, the small semicircle at the bottom of the hole. (The bad surface was originally created with a boolean difference operation so I'll look into this. Do you have any thoughts?)

    I deleted that surface, replaced it with one created from planar curves, and then joined everything. This new step file now meshes with Mecway's default mesher. Note the desired mesh on the top surface at 3.8 mm from the edges.



  • edited May 2021
    interesting. i'm glad you figured it out. in your picture, at the root of the cutouts you can see where mecway has problems with edge recognition. that is an area where i have seen the netgen program be much better. when i mesh in mecway it usually is a problem for me. so i have been meshing in the netgen program. although, for your example i meshed it in mecway. it's more convenient to use mecway, i just usually have issues with mecway. as far as the two netgen options in mecway, victor will have to comment on that. i'm not sure why the two are there.

    you caught on to something that i do sometimes too. in rhino if you have a seam in the model netgen will pickup on that and make the surface mesh follow it. i was thinking that might be why there was a problem. i guess that wasn't the problem in this case though. the more seams there are the denser the mesh becomes. so it's not a great idea to have a bunch of seams unless you need them. one model i had netgen couldn't mesh unless i added more seams. that wasn't good for me because it made the mesh huge. i do use the seams for boundary condition application though. it makes it easy to select things in mecway if you used seams to break things up as needed.

    edit; hmm that's odd. when i check your step file in rhino 5 it says everything is fine. visually, the small hole looks fine. however, i tried rebuilding just the hole and it works.
  • @dculp. Netgen 6 can mesh some models that the default one can't, as you've seen. But it's also slower and I think there are some cases where it does worse than the default one. There isn't really a clear advantage of the default over 6 other than that it was there first so the extent of its problems are more known. It may be version 5 but I'm not sure because the source code doesn't have a version number in it.
  • @Victor, have tested a few minuts ago the internal default Netgen mesher against the last standalone version, and activating the multi thread option in the standalone there is a big difference in time to mesh (didn´t measure, but something like 10 to 1). Is there a way to activate the multithread option in Mecway meshing?
  • @Sergio I don't think so unless you recompile it. It might be time for me to look into updating Netgen more thoroughly soon. But as with a lot of things, it'll have to wait till after the upcoming release and might take me forever.
  • Hello
    based on some discussion about mesher likenetgen or gmesh I started tp play with the programms. Unfortunately I didn't find good manuals explaining how the menue options have to be used and what are the parameters are standing for. Does someone have links to good manuals?
    With gmesh I could do something and got a mesh but when exporting it to Mecway I had a mix of solids an ssurface elements..?
    If someone could provide some help?

    Regards
  • edited May 2021
    yes the documentation is non-existent for netgen. you have to trial and error your way through it. i've never been able to figure gmsh out and it crashes a lot on me. so i gave up on it. i was able to figure netgen out for the most part. i use to have a screencast on how to use it, but it looks like i don't anymore. i'll see about making a new one.

    update; well i've spent the last 8 hours trying to figure out why Netgen won't start anymore. I don't know if it's a graphics driver issue or what. I debugged the failure and it says togl.dll can't write, or something to that affect.

    update 2; finally found the problem after 9 hours. i had to go back to old graphics drivers. oddly mecway and rhino were fine. however, netgen failed to start with the newer drivers. so maybe i'll have the screencast by tomorrow.
  • ok, sorry it took so long. here is the link to a netgen tips screencast:

    https://1drv.ms/v/s!AubMNYNIQyqKgkWp6K5R3F2_HREN?e=1dZJgK
  • Hi Hengre,

    I remember starting with Netgen using the attached link. There are some examples which really illustrates how the different parameters effect on the result, and you can download the step files to experiment by yourself.
    Keep in mind this is for sure a 5-year-old webpage and probably more. Software has advance but the main GUI is almost the same. It is using ver 4.4 and Netgen/NGSolve is actually 6.2

    http://meshcapades.byethost13.com/netgen_intro.html?i=1
  • edited May 2021
    Thank you prop_design and disla for your contributions. Thanks i'll check them out.

    I looked to the links and again tank you. It gives a good overview and may help me to find paramters faster :-)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!