jonathanlambrechts / qgis-gmsh

qgis plugin to interract with gmsh
GNU General Public License v2.0
14 stars 5 forks source link

mesh generation faulty #7

Open BjornAlmstrom opened 6 years ago

BjornAlmstrom commented 6 years ago

Hi Thank you for a great plugin and tutorial. I've followed the tutorial, but using my own case. Everything seems to go fine until it creates an oddly looking mesh. See image below. What am I doing wrong?

I've succesfully (I think) created both a mesh-size grid and shoreline. Adding them to a zip-file attached.
shoreline2.zip

bild

jonathanlambrechts commented 6 years ago

Hi, I'm unable to reproduce your problem, here is the mesh I obtain with your files : https://www.aljl.eu/nextcloud/index.php/s/S8XQK4733KjNB43

Which version of gmsh are you using ? Can you try with the last gmsh version from : http://gmsh.info/#Download Jonathan

Excerpts from bj1576al's message of juin 15, 2018 8:58 am:

Hi Thank you for a great plugin and tutorial. I've followed the tutorial, but using my own case. Everything seems to go fine until it creates an oddly looking mesh. See image below. What am I doing wrong?

I've succesfully (I think) created both a mesh-size grid and shoreline. Adding them to a zip-file attached.
shoreline2.zip

bild

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/ccorail/qgis-gmsh/issues/7

BjornAlmstrom commented 6 years ago

Thank you for your swift reply!

I did use the gmsh-included in the Onelab-Windows64 distribution. But now I tried it with the latest stable version 3.0.6 for windows 64 (the application version, not the source code). I now got another result, se image below. But not the same one as you send me (which was as aspected).

//Björn

bild

jonathanlambrechts commented 6 years ago

Hi, I just tried your file on a windows 7 virtual box with a freshly downloaded gmsh 3.0.6 and I'm still obtaining the right mesh.

The only changed I've made to your file is on line 44 of mesh3.geo, I removed the full path to mesh3.dat and replace it by simply "mesh3.dat".

Field[NF].FileName = "E:/OneDrive - Lund University/Artiklar/Derive transport gradients from sediment - Caroline/Wave Model/test/refinedMesh/gmsh/taketwo/mesh3.dat";

becomes

Field[NF].FileName = "mesh3.dat";

Jonathan

Excerpts from bj1576al's message of juin 15, 2018 10:27 am:

Thank you for your swift reply!

I did use the gmsh-included in the Onelab-Windows64 distribution. But now I tried it with the latest stable version 3.0.6 for windows 64 (the application version, not the source code). I now got another result, se image below. But not the same one as you send me (which was as aspected).

//Björn

bild

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ccorail/qgis-gmsh/issues/7#issuecomment-397551103

BjornAlmstrom commented 6 years ago

I use win10, but I guess that shouldn' t matter?

When I try to modify the geo-file with your modification of removing the path-name I only get an error saying that it can't find the file.

Moreover. When I generate the mesh I get an warning message saying that it couldn't orient normal of surface 1. Of any relevance? (see image attached below)

I've also tried to generate a mesh with a constant-value mesh-size grid and then the mesh is generated as expected.

Thank you for your help! bild

jonathanlambrechts commented 6 years ago

The warning about the orientation is not important.

Can you try this : 1) open gmsh 2) in Tools->Options->General->Advanced click on "Restore default options" 3) with the menu File->open open mesh3.geo 4) generate the mesh by clicking on "mesh"->"2d"

Excerpts from bj1576al's message of juin 15, 2018 11:09 am:

I use win10, but I guess that shouldn' t matter?

When I try to modify the geo-file with your modification of removing the path-name I only get an error saying that it can't find the file.

Moreover. When I generate the mesh I get an warning message saying that it couldn't orient normal of surface 1. Of any relevance? (see image attached below)

I've also tried to generate a mesh with a constant-value mesh-size grid and then the mesh is generated as expected.

Thank you for your help! bild

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ccorail/qgis-gmsh/issues/7#issuecomment-397561502

BjornAlmstrom commented 6 years ago

That worked! But then, why doesn't it work in qgis?

jonathanlambrechts commented 6 years ago

It seems that you have a gmsh settings that alter the mesh generation.

Normally, it should work in qgis now.

Jonathan

Excerpts from bj1576al's message of juin 15, 2018 11:20 am:

That worked! But then, why doesn't it work in qgis?

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/ccorail/qgis-gmsh/issues/7#issuecomment-397564386

BjornAlmstrom commented 6 years ago

It still doesn't work on Qgis using Frontal as meshing algorithm. However if I use the Delauny it works in qgis.

Björn