Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gmsh gmsh
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 381
    • Issues 381
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gmshgmsh
  • gmshgmsh
  • Issues
  • #1704
Closed
Open
Issue created Jan 06, 2022 by Ben Hopkins@bjghopkins

"Structured" file not producing desired result

Thanks for getting to my last question. And thank you more generally for very well-documented software. It has been very easy to get started with working with gmsh given the tutorials and documentation. But I find myself a bit stuck with this structured field and background mesh problem.

This gmsh workshop worksheet has instructions that should be reasonably easy to replicate with different circumstances. From what I can gather, it happened quite a long time ago but most of the commands have not changed.

I suspect that it is the construction of the 'Structured' bathymetry file that is causing issues, as everything else seems to be set up OK. Setting the background mesh to field 2 produces a reasonable mesh but when it is set to field 5, the mesh does not form properly.

Is there something very obviously wrong with the format of the bathymetry text file? I have checked that there are n values in the x and y directions and have tried various different configurations to no avail.

Included in the zipped folder is a .asc file of the bathymetry to compare with the data structured with gmsh, which starts with the lower left corner and runs through each digit from the bottom to the top of a column (ny) before moving right one column to the right-most side (nx), as is the implied structure in the 'structured' file help:

Ox Oy Oz 
Dx Dy Dz 
nx ny nz 
v(0,0,0) v(0,0,1) v(0,0,2) ... 
v(0,1,0) v(0,1,1) v(0,1,2) ... 
v(0,2,0) v(0,2,1) v(0,2,2) ... 
... ... ... 
v(1,0,0) ... ...

structured_field_error.zip

Any help or hints you are able to provide would be appreciated.

Regards, Ben

Edited Jan 06, 2022 by Ben Hopkins
Assignee
Assign to
Time tracking