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

How to write attenuation parameters in external tomo file #1185

Open
himansh78 opened this issue Apr 23, 2023 · 5 comments
Open

How to write attenuation parameters in external tomo file #1185

himansh78 opened this issue Apr 23, 2023 · 5 comments

Comments

@himansh78
Copy link

himansh78 commented Apr 23, 2023

Hi,
I am trying to implement Q_mu and Q_kappa values for the model defined using a tomo file. But I don't know how should I provide Q values in the tomo file.
For starters, I have turned on the viscoelastic attenuation flag in the Par file-
ATTENUATION_VISCOELASTIC = .true.

And I use the velocity model as-

1 -1 0 0 1.0 0 0 0 0 0 0 0 0 0 0

TOMOGRAPHY_FILE                 = ./DATA/tomo_file.xyz

I am writing tomo file using the createTomographyFile.py script in the utils directory of specfem2d repository

Please suggest on how can I include Qkappa and Qmu in tomo file?

Thanks in advance

@himansh78 himansh78 changed the title How to use viscoelastic attenuation with tomo file How to write attenuation parameters in external tomo file Apr 23, 2023
@danielpeter
Copy link
Contributor

well, specifying Q-values for variable attenuation coefficients in tomography files is not supported yet. thus, there is not much you can do with the python script.

for tomo models, the Q values for Qmu and Qkappa are set to 9999 - that is basically turning viscoelastic effects off even if the flag ATTENUATION_VISCOELASTIC would be on.

it wouldn't be much work though to add such capability in the code - just let me know if needed and I'll add something similar as in the SPECFEM3D version.

@himansh78
Copy link
Author

Hello Daniel, I appreciate your response and your suggestion sounds reasonable. If it's feasible, it would be highly beneficial to incorporate variable attenuation into the tomo file reading process. This would likely require modifying the read_external_model.f90 file to read supplementary columns from the tomo file. Please let me know whatever you decide.

Thanks again,

@danielpeter
Copy link
Contributor

okay, added the feature with PR #1186
you can now add Qp and Qs values after the vp, vs, rho values in your tomo file

@himansh78
Copy link
Author

Great. Thanks @danielpeter . Just confirming, these are Qp and Qs and not the Qkappa and Qmu?
Thanks,

@danielpeter
Copy link
Contributor

yes, it is Qp and Qs values (same as in 3D_Cartesian version).

the Q-values are optional, thus the new line format becomes either:

! data line format
#x #z #vp #vs #rho

or with Q-values:

! new data line format
#x #z #vp #vs #rho #Qp #Qs

the code will convert those given Qp and Qs values internally into Qkappa and Qmu accordingly for attenuation.

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