Comments (5)
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.
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.
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.
@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.
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)
- More open licenses for the API HOT 3
- The ASE calculator cannot be used with ASE optimizers due to recent upstream breaking changes HOT 2
- Different solvation energies in tblite and xtb HOT 1
- Program parallelism HOT 5
- Compilation issue, stuck at lapack HOT 3
- Discrepancies in Orbital Energies between tblite Calculator and Stand-alone xtb HOT 2
- Use clearer name for number of unpaired electrons in ASE calculator
- Different SCC convergence behavior for xtb and tblite HOT 2
- Allow boolean values for logical arguments in Python API
- Provide string equivalents in Python for enumerator values in the C-API HOT 1
- Add possibility to set values in results object for restarting purposes
- Providing info on parallelization with `tblite` in the documentation HOT 1
- Question about parameter files in toml format HOT 1
- Overlap Matrix not available in result container/Conda release outdated HOT 1
- Add support for Python 3.12
- Request: Add ASE interface in the next conda build HOT 2
- Keywords compatibility XTB & TBLITE HOT 1
- Installation issue
- PTB
- Segmentation fault (core dumped) issue for spGFN-xTB when trying to access orbital coefficients HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tblite.