SPECFEM / specfem3d

SPECFEM3D_Cartesian simulates acoustic (fluid), elastic (solid), coupled acoustic/elastic, poroelastic or seismic wave propagation in any type of conforming mesh of hexahedra (structured or not).
GNU General Public License v3.0
390 stars 223 forks source link

export mesh graphics #1595

Open jinchi-wang opened 1 year ago

jinchi-wang commented 1 year ago

How to export high resolution mesh graphics in Cubit.

danielpeter commented 1 year ago

can you be more specific? there is some documentation in the user manual on exporting CUBIT meshes into a SPECFEM-readable format - but not sure if that is your question...

jinchi-wang commented 1 year ago

can you be more specific? there is some documentation in the user manual on exporting CUBIT meshes into a SPECFEM-readable format - but not sure if that is your question...

The files required by SPECFEM can be exported. What I need is a high-resolution grid model diagram. Can I export it directly in Cubit or export the grid file to create a graph in Paraview?

danielpeter commented 1 year ago

for the SPECFEM3D examples, the mesh in CUBIT only contains the element anchor points for either a linear hex-element (i.e., 8 corner points) or a quadratic hex27-element (27 shape nodes per element). that is the most in terms of resolution you can export in CUBIT. the GLL quadrature points are added when running xgenerate_databases to create the mesh for a simulation. those higher-resolution meshes can be visualized by turning on the SAVE_MESH_FILES flag in Par_file, and then converted into a VTK/VTU format by the xcombine_vol_data_** tools.

regarding the export format in CUBIT, something that works with Paraview is to export the mesh in CUBIT as Exodus file (e.g. File -> Export... -> mesh.e), and open it in Paraview for visualization.

jinchi-wang commented 1 year ago

Thank you very much for your patient answer.