AttributeError: 'GmshReader' object has no attribute '_nodepts'

Hello, everyone.

I’m new using PyFR and also new in CFD simulations. I’m trying to run a NACA0012 case using a mesh made by myself, but I get “AttributeError: ‘GmshReader’ object has no attribute ‘_nodepts’” when I’m importing from msh to pyfrm. How can I solve it?

The mesh was made in Gmsh and I uploaded the .msh and .geo files in this drive:naca0012mesh

Best regards,
Matheus.

How many elements are in the mesh?

Regards, Freddie.

image

Hi @matheushrla,

Your file “naca0012mesh.geo” appears to include the naca0012 geometry:

Include “naca0012.geo”;
. . .
. . .

To allow us to explore the problem, can you add this missing file to that google drive?

Hi, @nnunn, I forgot about it. I’ve just added the naca0012.geo file to the drive.

At line 121 in file “naca0012mesh.geo”, an extra invalid line is defined:

// Line(218) = {208, 208};

If I comment out this line, gmsh (v4.14.0) generates a nice mesh, else it complains:

“start point 208 and end point 208 of GEO line are closer than tolerance”…

Try regenerating the mesh without that zero-length line, and let us know if this fixes the problem.

Thanks a lot, @nnunn, I did what you said and the problem was solved.

1 Like