Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Trelis to mds mesh importer #299

Open
nelson15 opened this issue Mar 27, 2020 · 1 comment
Open

Create a Trelis to mds mesh importer #299

nelson15 opened this issue Mar 27, 2020 · 1 comment

Comments

@nelson15
Copy link
Collaborator

nelson15 commented Mar 27, 2020

Hi everyone,

I am working on a collaboration with Coreform to run a PHASTA simulation using their mesh. They store their meshes in a .trelis file, which is formatted in standard HDF5 style. Attached is a .trelis file (changed to .txt so Github would not complain) containing a 3x3x3 hex mesh of a cube. The mesh file can be opened directly in HDFView (a program put out by HDF group for viewing HDF5 files). The file contains all of the information necessary to build a gmi model and an apf::Mesh2. The mesh was generated in Coreform's Trelis 17 software (which was originally created by the company CSimSoft as a commercialization of Sandia's Cubit mesh technology).

At the end of the day, I need to be able to load this mesh into Chef, pepper it with a tensor field on the hex elements and pass the mesh/that data to a modified PHASTA where the rather vanilla mesh and the tensor field will be used to generate a U-Spline discretization within PHASTA.

As far as this issue request goes, we are only looking for an import of a C^0 mesh that can be passed along through Chef to PHASTA.

cube.txt

I have been discussing with @cwsmith and he has urged me to make an issue here.

Thank you so much,
Corey

@nelson15
Copy link
Collaborator Author

Here is my first pass at writing this importer (for hex meshes only). My biggest issue is including gmi data. The .trelis mesh file has topological information (almost identical to a .dmg file) so this should be possible to use that.

This is heavily based on the mdsGMSH.cpp file.
mdsTrelis.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants