Can MOOSE users easily use SEACAS? #16344
-
libmesh is a submodule of MOOSE, and i see libmesh uses a lot of the libraries that SEACAS, https://github.com/gsjaardema/seacas , uses. I don't know, but perhaps the entire SEACAS is hiding somewhere in libmesh. I tried, and failed, to get SEACAS working on my computer - you have to get netcdf, hdf, and various other things, and i just ran out of time. Does anyone have tips for using libmesh's already-built libraries to quickly get a working copy of SEACAS ? (Or, you could suggest a well-documented alternative for writing exodus files using python. The VTK libraries are almost perfect in this regard, but their exodusII writer has some bugs, boohoo.) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I am not sure how helpful this will be... But this is how I was building/including SEACAS tools into the old moose-environment package: https://github.com/idaholab/package_builder/blob/master/build_from_source/template/seacas-tools The scripts therein might help you design your own installing method. |
Beta Was this translation helpful? Give feedback.
-
Hey Andy, I had problems building SEACAS as well when using em2ex, especially on the Travis CI machines that I use for testing, so I wrote a pyexodus class that I use to write to an exodus file after converting from a Petrel file. It's in here: https://github.com/cpgr/em2ex/tree/master/pyexodus It's pretty straightforward, and basically mimics the Exodus python API without needing SEACAS. All it needs is the python netCDF4 which is easy to install |
Beta Was this translation helpful? Give feedback.
-
@WilkAndy Here are several options for creating Exodus files via Python, depending on what your use-case is Translation from another formatThere's a fantastic Python module called meshio (available on PyPi) that can read, write, and convert between the following mesh formats:
Automated mesh-generation and export to ExodusYou could use Coreform Cubit, which has a Python-API that is also accessible as an importable Python module. and natively exports Exodus files. I've automated many meshing routines (DoE, optimization, etc) using this technique in my former career as an FEA analyst, and as a student. You can get a free edition of Coreform Cubit, called Coreform Cubit Learn, by following the instructions on this page. The only limitations of the free edition are personal non-commercial use, educational use, and an export limitation of 50k elements. SEACASAs noted by @cpgr, SEACAS includes a python module,
|
Beta Was this translation helpful? Give feedback.
@WilkAndy Here are several options for creating Exodus files via Python, depending on what your use-case is
Translation from another format
There's a fantastic Python module called meshio (available on PyPi) that can read, write, and convert between the following mesh formats:
Automated mesh-generation and export to Exodus
You could use Coreform Cubit, which has a Python-API that is also accessi…