I'm trying to use the compute stress/atom command in lammps but i'm having weird results comparing to reax. I'm simulating the stress/strain curve of a 1-D material. The image below shows nnp and reax curves, where "Tzz" is the stress in z and the x-axis is related to strain:
This image shows only nnp curve:
Analyzing just nnp result is already weird because the values computed are in a very different order of magnitude than expected for this type of calculation.
Which is strange, because the pzz component of the system pressure, that depends on force, is reasonably close to reax curve.
Here is how i am implementing the lammps commands:
compute st_at all stress/atom NULL
compute tauzz_avg all reduce ave c_st_at[3]
fix tauzz_avgi all ave/time 1 1000 1000 c_tauzz_avg
I'm trying to use the compute stress/atom command in lammps but i'm having weird results comparing to reax. I'm simulating the stress/strain curve of a 1-D material. The image below shows nnp and reax curves, where "Tzz" is the stress in z and the x-axis is related to strain:
This image shows only nnp curve:
Analyzing just nnp result is already weird because the values computed are in a very different order of magnitude than expected for this type of calculation.
Which is strange, because the pzz component of the system pressure, that depends on force, is reasonably close to reax curve.![image](https://user-images.githubusercontent.com/65021130/181818082-6b70258f-fe6f-4abb-a9ad-0aca2b0c7e68.png)
I think the problem is the virial contribution (https://docs.lammps.org/compute_stress_atom.html) but i don't know exatly where is the problem.
Here is how i am implementing the lammps commands: compute st_at all stress/atom NULL compute tauzz_avg all reduce ave c_st_at[3] fix tauzz_avgi all ave/time 1 1000 1000 c_tauzz_avg