Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Write to Gmsh .msh version 4/4.1#3943

coopertrucks started this conversation inIdeas
Sep 4, 2024· 1 comments· 3 replies
Discussion options

Hello all, I am wondering if there is any interest or need for the mesh converter tool to write to the most up to date version of the .msh file format, which is currently version 4/4.1. I know that gmsh_io can read from versions 2.0 up through 4.0 at least, but only writes to version 2.0 during output. I have found that there is a specific gap here in the capabilities of conversion tools from EXODUS II to the current Gmsh .msh file version, and stumbled upon this while trying to wrangle together reactor meshes for my group's radiation code. I'll probably end up writing a direct converter from EXODUS to our file format, but as it stands I think there's a gap in mesh conversion capabilities that libMesh would be apt to address if implemented.

One 'workaround' I've found is using libMesh to convert from EXODUS to .msh version 2.0, and then using the Gmsh editor to export it as version 4.1 - but I don't think this plays nicely between .msh files in terms of the physical volumes and volumes, and does not do a good job of preserving information from EXODUS like subdomains from MOOSE. Physical groups in Gmsh are important for mapping elements to materials, in our case. Thoughts on writing to the updated .msh version?

You must be logged in to vote

Replies: 1 comment 3 replies

Comment options

I think most of our users are using Exodus and .xdr files for output, since those formats also support writing solutions, and the GmshIO writer does not. So, I don't think there is a lot of demand for writing the latest Gmsh format, but we would of course be open to accepting a patch that adds such support. Out of curiosity, what is your workflow, i.e. what do you end up doing with the Gmsh 4 files once they are written?

You must be logged in to vote
3 replies
@coopertrucks
Comment options

Once we have the Gmsh 4 files, we use a converter that writes to our code's specific mesh format and assigns boundary conditions during. Our code only uses tetrahedral elements, and the volume or physical volume info from Gmsh informs the regions our code recognizes. Thank you for the insight, I am not strong enough in C++ to contribute yet - so it seems that getting our converter to read directly from EXODUS to our format is my ticket for the moment.

@jwpeterson
Comment options

Since you mentioned MOOSE... are you using MOOSE, but don't actually have a MOOSE-based code? I only ask because there is also the possibility of sidestepping files and file formats altogether if you can call one code directly from the other somehow.

@coopertrucks
Comment options

Yes, our code is not MOOSE based and I was hoping to use the meshing utilities in MOOSE for ease of meshing geometries like reactor cores. I do have ambitions to create a MOOSE wrapper for our code so it can be used with MOOSE in the future! So, all of this file conversion business would likely support that effort. If only things were so simple.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Ideas
Labels
None yet
2 participants
@coopertrucks@jwpeterson

[8]ページ先頭

©2009-2025 Movatter.jp