Giter Club home page Giter Club logo

Comments (9)

atztogo avatar atztogo commented on July 17, 2024

I think it is straightforward, but so I don't see what you mean in your question.

from phono3py.

glensk avatar glensk commented on July 17, 2024

Dear Togo,

what I meant was the following: Lets assume I have a particular atomic configuration taken from a molecular dynamics at a relatively low temperature (say 300K, for the particular snapshot all atoms are still close to their equilibrium positions at T=0K). In Harmonic approximation I can calculate the forces and energies when I have the force constant matrix screenshot 2018-01-02 23 33 06. Here, i and j are the indices for the atoms and \alpha and \beta are for the cartesian components x, y and z. The energy U in harmonic approximation can be calculated by
U = screenshot 2018-01-02 23 40 11 while the forces can be calculated by screenshot 2018-01-02 23 30 30. What I would like to do is to calculate the energy and/or the forces however not in harmonic approximation but rather from perturbation theory. Do you see a way to do this using phono3py once the second (fc2.hdf5) and third (rd3.hdf5) order force constants are evaluated? Thanks and Best,

Albert

from phono3py.

atztogo avatar atztogo commented on July 17, 2024

If we believe the potential energy is expanded into the Taylor series (e.g., see eq.(1) at http://www.sciencedirect.com/science/article/pii/S1359646215003127?via%3Dihub), then it may be true approximately. However I don't know how many orders we will need to be accurate, i.e., I'm not sure if it is OK up to third order or not for the accuracy you need.

from phono3py.

glensk avatar glensk commented on July 17, 2024

Dear Togo,
it will be approximate but very accurate at low temperatures. For me the question is to what temperature it is OK. But as mentioned, at low temperatures this will be the best possible choice. Would you know how this can be done using the fc2.hdf5 and fc3.hdf5 files? Thank you very much,
Albert

from phono3py.

atztogo avatar atztogo commented on July 17, 2024

fc2.hdf5 and fc3.hdf5 contain arrays with (N, N, 3, 3) and (N, N, N, 3, 3, 3), respectively. N and 3 are the indices of atoms in supercell and (x,y,z). For example, the array data of fc3 is obtained like this:

In [1]: import h5py
In [2]: f = h5py.File("fc3.hdf5")
In [3]: list(f)
Out[3]: ['fc3']
In [4]: f['fc3'].shape
Out[4]: (64, 64, 64, 3, 3, 3)
In [5]: fc3 = f['fc3'][:]

I assume your MD supercell and phono3py supercell sizes are the same. Then for easy handling, your MD supercell would be good if the atomic sites and indices are the same as those of the supercell created by phono3py. Otherwise, you need to map the atomic indices between them by yourself.

from phono3py.

atztogo avatar atztogo commented on July 17, 2024

Can I close this issue?

from phono3py.

glensk avatar glensk commented on July 17, 2024

from phono3py.

atztogo avatar atztogo commented on July 17, 2024

Then, you don't need to hurry!

from phono3py.

atztogo avatar atztogo commented on July 17, 2024

I will close this issue because long time no update.

from phono3py.

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.