[DFTB-Plus-User] Requesting additional accessor functions in the DFTB+ api (or libdftb+)

Bálint Aradi aradi at uni-bremen.de
Tue Dec 17 09:10:14 CET 2019

Dear Nitant,

> I am grateful for the inclusion of the api in the new release of
> dftb+ (19.1).

Thanks a lot, I am happy to hear, that you find the API useful.

> -> dftbp_get_stress_tensor(): to obtain stress tensor
> -> dftbp_get_coords_and_lattice_vecs(): to obtain the current 
> coordinates and lattice vectors.

None of the should be major difficulty. Could you make a feature request
(issue) on GitHub listing this two items? Then it's easier to keep track
of it.

> -> I noticed that during the use of the api, if I specify 
> WriteResultsTag = Yes in the Options block, I still see no output 
> written to results.tag. Is this intended? -> As I noted above,
> exclusively specifying the Driver block has no effect on the
> calculation which is always static. I was wondering if there are any
> plans to upgrade this functionality, to also allow access to
> coordinates after geometry optimization?

Yes, results.tag is not written as the current API basically accesses
the processGeometry() subroutine


but results.tag is written outside of it. For the same reason, the
Driver {} block is completely ignored, as the idea is that the
simulationion is driven from outside (e.g. by an MM-code).

Could you eventually tell us more about the use case, where you think an
internal geometry optimization triggered via the API could be useful?
One may implement this, but that would require some code reorganization,
so may not be entirely trivial.

Best regards,


Dr. Bálint Aradi
Bremen Center for Computational Materials Science, University of Bremen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.zfn.uni-bremen.de/pipermail/dftb-plus-user/attachments/20191217/184c8a4f/attachment.sig>

More information about the DFTB-Plus-User mailing list