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

Stress can not be read from a siesta out file: si.io.siesta.stdoutSileSiesta #832

Open
mbrandbyge opened this issue Sep 27, 2024 · 6 comments

Comments

@mbrandbyge
Copy link

The "Voigt" reads ok, but the standard stress returns nothing.

@zerothi
Copy link
Owner

zerothi commented Sep 28, 2024

What did you try? What table of the stress wasn't read? There are some tests for these things, so I am wondering if you called it wrongly, or the output had other flags?

@mbrandbyge
Copy link
Author

image

@mbrandbyge
Copy link
Author

Calling without key does not return anything either.

@zerothi
Copy link
Owner

zerothi commented Sep 29, 2024

It's because that MD simulations has the stress tensor duplicated. So you should add read_stress(skip_final=False) to force it to return the last one.

Perhaps the sile should figure out if this is an MD simulation, or not, then return it if nothing is valued

@mbrandbyge
Copy link
Author

Ah, ok. In principle, it would be nice if there was a reader for out files for MD returning values for each step in the out.

@zerothi
Copy link
Owner

zerothi commented Sep 30, 2024

Ah, ok. In principle, it would be nice if there was a reader for out files for MD returning values for each step in the out.

There already is:

stdout = sisl.get_sile(...)
stdout.read_stress[:10]()

will read the first 10 stresses.

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