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

Sumo-optplot issue #211

Open
Ah-Abd-Ellatife opened this issue Jun 16, 2023 · 2 comments
Open

Sumo-optplot issue #211

Ah-Abd-Ellatife opened this issue Jun 16, 2023 · 2 comments

Comments

@Ah-Abd-Ellatife
Copy link

I am currently utilizing the sumo-optplot tool to visualize the output data (Real and Imag and absorption) from my DFT calculations performed using VASP. Typically, the sumo code calculates the average values from the x, y, and z directions. However, in my recent run, I have obtained different values along each direction and even obtained values for the directions (xz, xy, zy) not zero as they usually are. I am curious to understand the situation and how the sumo code determines the average value. or how will it plot
2.zip

1.zip
here is data for to different cases

@ajjackson
Copy link
Member

The off-diagonal terms are there in the underlying Python code, but at the moment the command-line optplot only provides access to the diagonal terms or an average over them.

If you'd like to experiment with implementing a plot with the off-diagonal terms, this line (and the argument parser) need to be changed to allow mode="full" to be passed to calculate_dielectric_properties().

https://github.com/SMTG-UCL/sumo/blob/0f469ef94cc69b509773b21b85647923deb3dfd6/sumo/cli/optplot.py#L220

From there the plotter might need tweaking to show/select the extra lines.

@Ah-Abd-Ellatife
Copy link
Author

@ajjackson
Thank you for your response. I could appreciate an explanation regarding the mathematical relationship or function used to calculate the total values from the given six directional values [imag_xx, imag_yy, imag_zz, imag_xy, imag_yz, imag_xz]. Specifically, how these values are combined to obtain the overall total value. Your insights on this matter would be highly valuable.

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