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

Avenues to implement CPML boundary conditions for external meshes? #1140

Open
iandkelly opened this issue Dec 14, 2021 · 2 comments
Open

Avenues to implement CPML boundary conditions for external meshes? #1140

iandkelly opened this issue Dec 14, 2021 · 2 comments

Comments

@iandkelly
Copy link

Hi there,

I've been playing around with SPECFEM2D and have mostly been working with Gmsh and Cubit for mesh generation. However, I haven't yet stumbled onto a working solution for creating readable CPML layers for either of these meshers:

  • Cubit: the conversion script "cubit2specfem2d.py" in /utils/cubit2specfem2d doesn't seem to be working (at least for me) for any of my own meshes or any of the provided examples in /EXAMPLES or /utils/cubit2specfem2d - the generated "nodes_coords_file", "mesh_file" & "materials_file" come out blank.
  • Gmsh: "LibGmsh2Specfem_convert_Gmsh_to_Specfem2D_official.py" in /utils/Gmsh runs fine for the Stacey BC option, but doesn't look to be configured yet for CPML. Modifying the executables in /utils/CPML for the Gmsh mesh files is successful, but only for 'ngnod' =4 in "Par_file" and generates spurious reflections within the simulation.

Is the only option thus far for CPML conditions is to use the internal mesher? No problem if so for my relatively simple models, but was just curious if I missed something or if that functionality hasn't been implemented yet.

Cheers,

Ian

@firstkingofrome
Copy link

firstkingofrome commented Jan 10, 2022

Hello Ian, I am working on a similar issue; I have been using the JensenMesh.py example from EXAMPLES/ paper_axisymmetry_example which purports to do this externally using the geocubit library.

@mnagaso
Copy link

mnagaso commented Feb 20, 2024

Hello,

I added an example for using Gmsh with CPML in this pull request.
#1204

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

No branches or pull requests

3 participants