Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using BEMRosetta to load GMSH file error "Field #2 not found in line: '$EndMeshFormat' #43

Open
AgreeU opened this issue Apr 9, 2024 · 7 comments

Comments

@AgreeU
Copy link

AgreeU commented Apr 9, 2024

My GMSH file is like this, I dnon't how to handle this error.
image
image

@izabala123
Copy link
Collaborator

Hi Yang

BEMRosetta supports .msh extension from SeaFEM/TDyn/GiD software, but not the GMSH .msh format that you include.

The GMSH .msh format covers a wide type of meshes, but If the meshes you use are the classic BEM meshes, just surfaces, created with flat triangles or quadrangles, it may be easily implemented. Please send me some simple samples of know figures and I will prepare a reader in days.

Best regards
Iñaki

@AgreeU
Copy link
Author

AgreeU commented Apr 9, 2024

Hi Yang

BEMRosetta supports .msh extension from SeaFEM/TDyn/GiD software, but not the GMSH .msh format that you include.

The GMSH .msh format covers a wide type of meshes, but If the meshes you use are the classic BEM meshes, just surfaces, created with flat triangles or quadrangles, it may be easily implemented. Please send me some simple samples of know figures and I will prepare a reader in days.

Best regards Iñaki

cylinder.zip
Thanks a lot. I have uploaded the corresponding mesh file and the gmsh file of this picture.

@izabala123
Copy link
Collaborator

Hi Yang

Thank you for the example. I missed having a picture of it to know what it was about. When I look at the file, I get the feeling that it has a lot of pentagonal panels. Is that possible? If so, I would not be able to reconvert them into quads or triangles without more information.

Best regards
Iñaki

@AgreeU
Copy link
Author

AgreeU commented Apr 10, 2024

Hi Iñaki,
Sorry about that. I forgot that these files cannot be opened by BEMRosetta. This time, two models are provided: cylinder and windfloat; additionally, there are images, NEMOH format grids, and some SolidWorks models included. Please note that when I open the grid for windfloat with BEMRosetta, there may be some display errors, but the grid information can still be read. Please use it as you see fit.
As for the grid, I used quads.
Regards,
Yang
models.zip

@izabala123
Copy link
Collaborator

Hi Yang

I have prepared a light reader that works well with your samples. It avoids all the .msh features but the strictly necessary.

image

Best regards
Iñaki

@AgreeU
Copy link
Author

AgreeU commented Apr 11, 2024

Hi Yang

I have prepared a light reader that works well with your samples. It avoids all the .msh features but the strictly necessary.

image

Best regards Iñaki

That's really fantastic.

@izabala123
Copy link
Collaborator

😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants