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

mfem data directory #3

Closed
GoogleCodeExporter opened this issue Jun 11, 2015 · 4 comments
Closed

mfem data directory #3

GoogleCodeExporter opened this issue Jun 11, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

How do you generate .mesh file (e.g. beam-tet.mesh) in the data directory of 
the MFEM code? Thanks.

Original issue reported on code.google.com by abhih...@gmail.com on 13 May 2013 at 9:27

@GoogleCodeExporter
Copy link
Author

The .mesh files in the data directory are in the MFEM mesh format - this is the
default mesh format used by MFEM when saving class Mesh objects to a file.
For input, the Mesh class constructor can recognize and read a few other mesh
formats as well:
1) unstructured VTK meshes; VisIt (http://visit.llnl.gov/) can read a number
   of formats which (in some cases) can be exported as unstructured vtk files.
2) tetrahedral NETGEN (http://sourceforge.net/projects/netgen-mesher/) meshes
   exported to neutral format; you need to add "NETGEN" as the first line in
   the file to allow MFEM to recognize it.

Original comment by veselin@gmail.com on 6 Jul 2013 at 4:37

@GoogleCodeExporter
Copy link
Author

The MFEM format is relatively simple, so for simple geometries you can directly 
define the mesh yourself, see https://code.google.com/p/glvis/wiki/MeshFormats.

This could also be feasible even for curved, 
https://code.google.com/p/glvis/wiki/CurvilinearVTKMeshes or NURBS 
https://code.google.com/p/glvis/wiki/NURBS meshes.

Original comment by tzanio on 8 Jul 2013 at 5:15

  • Changed state: Done
  • Added labels: Usability

@GoogleCodeExporter
Copy link
Author

Thanks. I wanted to use IGES/STEP based 3D drawings. So I wanted Mesh 
Generators to transform those type of geometries (not simple!)  to be used in 
MFEM. Hence my purpose is not only visualization but also mesh generation for 
MFEM.

Original comment by abhih...@gmail.com on 24 Jul 2013 at 11:06

@GoogleCodeExporter
Copy link
Author

I believe NETGEN can import IGES and STEP geometries, so you can use it to 
generate a mesh to be used in MFEM. I have had some success in the past doing 
this with STL files.

Original comment by tzanio on 24 Jul 2013 at 3:58

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

3 participants