Code Monkey home page Code Monkey logo

Comments (5)

awvwgk avatar awvwgk commented on June 12, 2024 1

Yes, the changes are limited to the ASE calculator. I would only activate two spin channels if explicitly requested. This could be done by adding an option for this or creating a new method called spGFN2-xTB which is translated internally to GFN2-xTB with spin polarization.

from tblite.

awvwgk avatar awvwgk commented on June 12, 2024

Thanks for the interest. The addition of interactions is currently not forwarded in the ASE calculator. If you like to propose an API for this, you are welcome to send a patch.

from tblite.

Andrew-S-Rosen avatar Andrew-S-Rosen commented on June 12, 2024

Great, I will try to do so. The new spin polarization features don't seem to be in the docs but I'll go through your commit to follow the logic.

from tblite.

Andrew-S-Rosen avatar Andrew-S-Rosen commented on June 12, 2024

@awvwgk: I see that there is currently the ability to do Calc.add("spin_polarization") to activate the spin polarization.

With that being said, it seems like the only change that really needs to be made is in the tblite.ase.TBLite class, correct?

In this case, it seems like adding spin_polarization: bool = False as a parameter would be wise. However, a question remains: by default, if the Atoms object has magnetic moments or uhf is set to indicate unpaired electrons, do we auto-set spin_polarization as well? This would be a breaking change but at the same time is perhaps what a user might expect. I'm interested to get your suggestions on this.

On an unrelated side-note, I see that charge has a float type-hint throughout. Is this correct, or should it be int like uhf?

from tblite.

Andrew-S-Rosen avatar Andrew-S-Rosen commented on June 12, 2024

I suppose if the spin polarization is only applicable for GFN2, then having an option called spin_polarization might be misleading. In that case, it might make more sense to define a new method like you suggested.

Only downside: If there is ever a GFN3, GFN4, etc though then that means there would need to parallel methods for those in the future, which could get clunky. The alternative is to use a spin_polarization kwarg and raise a NotImplementedError if spin_polarization is used with an incompatible method.

from tblite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.