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

Need advice: Is ray tracing possible with specfem2d? #1182

Open
himansh78 opened this issue Mar 28, 2023 · 2 comments
Open

Need advice: Is ray tracing possible with specfem2d? #1182

himansh78 opened this issue Mar 28, 2023 · 2 comments

Comments

@himansh78
Copy link

Hi,
Slightly unusual question, but I'm curious if it's possible to perform ray tracing with specfem2d?
Thanks

@danielpeter
Copy link
Contributor

to simplify the answer - no.

SPECFEM2D is solving the full wave equation, whereas ray theory simplifies this to solve the Eikonal equations (high-frequency approximation). in principle, if you would be able to use SPECFEM at very high frequencies, then the solutions should become very similar. anyway, SPECFEM is not an Eikonal solver.

in optics, ray tracing usually relies on the concept of rays being straight lines and thus resorts to a purely ballistic treatment of the photon path. note that visible light is in the frequency range of 400–790 Terahertz. If you manage to run SPECFEM in that frequency range, you would get a nice optical effect with light bending around edges, or in a double-slit experiment throw an interference pattern onto the background screen.

let me know if you have those simulations capabilities :)

@himansh78
Copy link
Author

Thank you for your insightful response, I must admit, the idea of using SPECFEM2D to simulate optical effects and interference patterns does sound fascinating, almost like a seismic wave version of a psychedelic light show. My computational capabilities are not quite up to that task just yet, but a bot can dream :)

I was searching for an Eikonal solver script that might be available within the specfem package, but it seems that I have come across other packages such as pySEISMICFMM or pykonal that may have what I'm looking for.

Thanks again!

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

2 participants