Comments (10)
I don't really see a use-case for this feature and it would require a more general concept of atom groups first (we have some basic fragment data in place, which could be (ab)used).
But you know it's an open source project, so feel free to open a PR.
from xtb.
I guess hacking the mdrestart file could give me what I want... From what I've understood from the sources, this file contains positions and velocities of all atoms. What are the units of velocity in this file? A/fs or Bohr/(atomic unit of time)?
from xtb.
As far as I know, the dynamics module uses atomic units.
from xtb.
Indeed, modification of mdrestart does the job.
from xtb.
Dear developers of xtb:
runtype --reactor seems to be deprecated since 6.3 with $reactor group leaving in default xcontrol. how can I reproduce the results in DOI: 10.1021/acs.jctc.9b00143? I want to study some reactions using xtb, but there are no examples in xtb-docs.
Moreover, if the RMSD-PP method is not recommended so the xtb-docs provides GSM method?
many thanks for your answer.
from xtb.
Please don't post off-topic in other closed threads, just open a new issue.
from xtb.
@mkrompiec @awvwgk I have to agree, initial velocities are part of many MD programs including Gaussian, Empire, QChem, CP2K. All of them have an option to define initial velocities. So this would be indeed a very useful option.
https://manual.q-chem.com/5.3/Ch9.S8.SS1.html
https://www.ceposinsilico.de/pdf/Empire20.pdf
http://gaussian.com/admp/
https://github.com/cp2k/cp2k/blob/master/src/motion/input_cp2k_md.F
So if the mdrestart file already contains this information, why not start with trajectory zero and let the user decide?
Also @mkrompiec can you explain with a simple example how you "hacked" and solved this issue.
Thanks!
from xtb.
@tobigithub The advice from above still applies, this is an open source project, feel free to open a PR implementing your suggested feature.
We now actually have a concept of atom groups, so it might be easier to archive than back when this came up.
from xtb.
@tobigithub there you go:
data = []
with open('mdrestart') as mdrfile:
for line in mdrfile:
dl = line.replace("D", "E").split()
if len(dl) < 2:
continue
data.append(dl)
velocities = np.asfarray(data)
#modify your velocities here
def float_to_f(fl):
if fl>=0:
s= ' {:20.14E}'.format(fl)
else:
s= ' {:20.14E}'.format(fl)
return s.replace("E","D")
with open('mdrestart','w') as mdrfile:
mdrfile.write(" -1.0\n")
for row in velocities:
printrow="".join([float_to_f(fl) for fl in row])
mdrfile.write(printrow+"\n")
from xtb.
@tobigithub there you go:
data = []
@mkrompiec Thank you!
@awvwgk I tried to change the velocities in the mdrestart file, but was not successful, I think the current xtb implementation is different from classical trajectory based AIMD implementations in Gaussian, QChem or Empire (Gaussian and Empire can handle semiempirical AIMD). But again this is purely an observation, based on a few examples, so I might be wrong.
from xtb.
Related Issues (20)
- COSMO Screening Charge and Volume HOT 3
- GFN0 sporadically segfaults before printing setup info
- OpenBLAS Warning : Detect OpenMP Loop and this application may hang. On conda build aarch64 xTB v6.6.1 and CentOS 7 HOT 1
- Polarizability for GFN1-xTB
- GFN-FF parameters documentation HOT 1
- Specifying total charge makes GFN-FF segfault using PDB input HOT 1
- Link to `xtb-python` should be to `tblite` HOT 1
- [BUG] segfault when running large system HOT 3
- Switching off the dispersion correction HOT 2
- Population analysis HOT 2
- Brew installation issue HOT 2
- How can I make two molecules separated during the optimization? HOT 2
- Optimisation fails in version 6.6.1 (8d0f1dd) but succeeds in 6.5.0 (97a52f5) (conda installation) HOT 4
- optimizing metal oxide cluster meet problem:"scf: Self consistent charge iterator did not converge" HOT 2
- Need improvement in the speed of MD simulation HOT 2
- Include spin (e.g. uhf) in the log file
- Misreported units on Raman intensities: should not be amu, presumably HOT 1
- Misreported cycle number in `gradients` file HOT 2
- Dock output structures format HOT 2
- Deprecate use of PBC treatment with `xtb` unless `--tblite` implementation is used HOT 4
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 xtb.