GithubHelp home page GithubHelp logo

Initial velocities in MD/MTD about xtb HOT 10 CLOSED

grimme-lab avatar grimme-lab commented on June 8, 2024 1
Initial velocities in MD/MTD

from xtb.

Comments (10)

awvwgk avatar awvwgk commented on June 8, 2024

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.

mkrompiec avatar mkrompiec commented on June 8, 2024

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.

awvwgk avatar awvwgk commented on June 8, 2024

As far as I know, the dynamics module uses atomic units.

from xtb.

mkrompiec avatar mkrompiec commented on June 8, 2024

Indeed, modification of mdrestart does the job.

from xtb.

shuxiansheng2 avatar shuxiansheng2 commented on June 8, 2024

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.

awvwgk avatar awvwgk commented on June 8, 2024

Please don't post off-topic in other closed threads, just open a new issue.

from xtb.

tobigithub avatar tobigithub commented on June 8, 2024

@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.

awvwgk avatar awvwgk commented on June 8, 2024

@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.

mkrompiec avatar mkrompiec commented on June 8, 2024

@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 avatar tobigithub commented on June 8, 2024

@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)

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.