Skip to content

Option to use a stress tolerance instead of virial? #62

Description

@Technici4n

The stress is (minus) the virial divided by the volume. Since the volume can change during optimization, and stress is the variable that is usually used for DFT geometry optimization, it would be nice to be able to directly give a stress tolerance to the geometry optimization.

Additionally, I find it a bit weird that the pressure is computed from the trace of the virial without any division by the volume:

pressure = -austrip(tr(geoopt_state.virial)) / 3
Could that be a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions