[MOAB-dev] MOAB Mesh Generation and Conversion

Mahadevan, Vijay S. mahadevan at anl.gov
Mon Jun 27 10:53:11 CDT 2022


James,

> I recently began working with an application that requires MOAB mesh files, but my background is in MOOSE;

Always good to know the application that someone is working on to provide context. Can you tell us more about what physics you are solving using MOAB mesh? Neutronics, CFD, and/or mechanics? And what kind of meshes you are generating here. First/second order, unstructured, HEX/TET?

> I wanted to ask about how I could either convert existing ExodusII (.e) meshes to MOAB (H5M) or directly generate MOAB files.

If you want to use MOAB as a converter, you can use one of multiple options. You can use conda [1] (probably quickest) or the Docker image [2] to get started since these will have the pre-built tools. MOAB README.md [3] file should provide all of this documentation. If these are not clearly visible, or insufficient for a new user like you to get started, then we can improve it.

> I believe the traditional wisdom for mesh-to-mesh conversion would be to use meshio

Nico has been a MOAB contributor in the past and meshio should be able to do this as well. In terms of its installation issues, I’m afraid I can’t help you there.

> I have looked around a bit and found a few different resources related to MOAB meshes, but support doesn’t seem particularly robust for new users (at least from what I’ve found)

Again, this is what we want to rectify. Let us know where you checked and what was insufficient. We will try to fix those issues.

> Convert existing ExodusII mesh files to the MOAB file format

Once you have MOAB using conda or installed from source or if you are just using the Docker image, then you can use the “mbconvert” tool to convert the format from netcdf/exodus to MOAB h5m format. This requires that MOAB is configured with both netcdf and hdf5 obviously. The command is simple.

mbconvert input.exo output.h5m

The MOAB mailing list is at moab-dev at mcs.anl.gov<mailto:moab-dev at mcs.anl.gov> in case you want to direct further questions there.

Thanks,
Vijay

[1] https://anaconda.org/conda-forge/moab
[2] docker pull vijaysm/moab-root:latest
[3] https://bitbucket.org/fathomteam/moab/src/master


From: Grindeanu, Iulian R. <iulian at mcs.anl.gov>
Date: Monday, June 27, 2022 at 11:36 AM
To: James Tompkins <james at radiantnuclear.com>
Cc: Mahadevan, Vijay S. <mahadevan at anl.gov>
Subject: Re: MOAB Mesh Generation and Conversion
Hello, James
I am not sure why you need to convert to h5m format, but the easiest way is to use mbconvert tool
You will need to have MOAB compiled with netcdf and hdf5 support, at least (exodus needs netcdf, and h5m is moab HDF5 format)

You can use conda to install everything, or spack. Or build from scratch, with autotools or cmake

Iulian

________________________________________
From: James Tompkins <james at radiantnuclear.com>
Sent: Monday, June 27, 2022 10:15 AM
To: Grindeanu, Iulian R.; Jain, Rajeev
Subject: MOAB Mesh Generation and Conversion

Hello,

My name is James Tompkins, and I am a nuclear engineer with Radiant, a company developing a portable, high-temperature, gas-cooled microreactor (https://radiantnuclear.com/, we also have a YouTube video that demonstrates our engineering approach to reactor development here that is a bit more informative than the website for now: https://www.youtube.com/watch?v=9cc1j-MbVVA).

I recently began working with an application that requires MOAB mesh files, but my background is in MOOSE; so, I am much more familiar with generating meshes either directly in MOOSE or by using Cubit for more complex geometries. I asked about MOAB resources in the LibMesh channel of the MOOSE Developer’s Slack, and folks directed me to you guys. I wanted to ask about how I could either convert existing ExodusII (.e) meshes to MOAB (H5M) or directly generate MOAB files.

I believe the traditional wisdom for mesh-to-mesh conversion would be to use meshio, but I haven’t been able to get it to work. I have looked around a bit and found a few different resources related to MOAB meshes, but support doesn’t seem particularly robust for new users (at least from what I’ve found). I was wondering if you could point me to some resources to either


  1.  Convert existing ExodusII mesh files to the MOAB file format OR
  2.  Getting set up with an editor such that I can create geometry and directly export h5m files.

Any help you can provide would be greatly appreciated!
P.S. I apologize if you guys aren’t who I should be talking to. If this is the case, please let me know if there is someone else that would be able to help!

Thanks!
-James

--
James B. Tompkins
Nuclear Engineer
Radiant
Phone: 424.405.6123
james at radiantnuclear.com<mailto:james at radiantnuclear.com>
[Logo, company name  Description automatically generated]


More information about the moab-dev mailing list