GithubHelp home page GithubHelp logo

korintje / dftbplus_restarter Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 65 KB

Scripts to easily prepare input files to restart DFTB+ MD simulations

License: Creative Commons Zero v1.0 Universal

Python 92.81% Shell 7.19%

dftbplus_restarter's People

Contributors

korintje avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

bhourahine

dftbplus_restarter's Issues

Removing comment strings from hsd

There is a problem reading the dftb_in.hsd template in restart_filemaker.py when there are comments in certain hsd blocks. For example:

Geometry = GenFormat {
<<< my_file # this is a comment
}

As the script will then try to read the file "my_file # this is a comment" instead of "my_file". It's not clear to me whether this is best solved in the hsd library or the script.

Nose-Hoover with MDRestartFrequency > 1

Hello,

If this thermostat is not written at every iteration:

MDRestartFrequency = 2

there is a problem with:

66, in load_thermostat
iter_lines = iter_lines_list[self.iter_num]
IndexError: list index out of range

Error in reading initial charges - coordinates

From the input file obtained with the new version of the script, the one with the "restart-from-iter" option, the initial charges seem not to be correctly read by the program, even in the option ReadInitialCharges = Yes is specified. The output does not show the typical step 0 where old charges are read, which should appear as follows due to the zero difference in the energies:

*** Geometry step: 0

iSCC Total electronic Diff electronic SCC error
1 0.00000000E+00 0.00000000E+00 0.21845085E-05

Differently, the program tries to optimize the charges for the step 0 and fails in the optimization. Since the output says that the charges are correctly read from the charges.bin file, this should mean that the coordinates do not correspond to the last step of the previous run. This probably derives from some error in the production of the Geometry with the current format (the "explicit geometry specification", as indicated in the DFTB+ manual) instead of the GenFormat, which was employed in the previous version of the python script.

Restart from a given step number

Dear authors,

thank you very much for the useful tool. I was wondering if there is a way to restart from a given step number (not the last one). I tried the --max-iter option but with poor results.
This is usually needed because in NVT runs also the data about the thermostat must be restarted, which are contained in the md.out file. However, the program writes this file after the geo_end.xyz one, so that if the run crashes for some reason (e.g., exceeded wall time), one cannot restart from the last step written in the trajectory file, but must select the last step for which the thermostat parameters have been written.
Also, adding a restart function for the thermostat in the python script would be very useful.

Thank you in advance.
Regards,
mbusato

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.