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 & unstructured).
https://specfem.org
GNU General Public License v3.0
415 stars 231 forks source link

Using my own tomography model #1369

Open shmamadking opened 4 years ago

shmamadking commented 4 years ago

Hi there

I want to run a 3d simulation using my own checkerboard-like model. Unfortunately, I can't access to Cubit package because I can't pay for it. I made my model file as described in chapter 14 of Specfem3d-manual but I don't know how to import my model to specfem3d. Is there any way to avoid using Cubit?

Thanks,

Bioye97 commented 4 years ago

If you generated your mesh using xmeshfem3D and specified "MODEL = tomo" in the Par_file, you can place your external tomography model file in TOMOGRAPHY_PATH (this is also in the Par_file) and make sure it is named "tomography_model.xyz"

See p. 31-32 of the user manual.

Note: There is a typo on p. 32 that states that the model file should be named "tomographic_model.xyz" rather than "tomography_model.xyz"

danielpeter commented 4 years ago

great, thanks for catching the typo in the manual - will get corrected asap.

related to finding an alternative to Cubit/Trelis meshing, you can either use the in-house mesher xmeshfem3D for simpler, box-like meshes (supports models with/without topography and internal interfaces, doubling layers etc.), or you can give Gmsh (http://gmsh.info) a try. for Gmsh, a good start could be looking for example at the example EXAMPLE/Gmsh_simple_lddrk how to create a mesh in SPECFEM-format.