Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neighbour list in custom rate calculator #20

Closed
gauravgoel82 opened this issue Oct 30, 2017 · 0 comments
Closed

neighbour list in custom rate calculator #20

gauravgoel82 opened this issue Oct 30, 2017 · 0 comments

Comments

@gauravgoel82
Copy link

Does CustomRateCalculator class has neighbour list of the central coordinate available through backend?

  1. In KMCLib/python/functest/IsingSpin/IsingSpinTest.py the rate function requires neighbours of the central coordinate at which a flip of spin is made. I've checked all the associated files and this information is not explicitly specified when calling the CustomRateCalculator. However, as per the calculations in the rate function, the elements_before and elements_after arrays should have the neighbours at indices 1-4.

  2. Additionally, if the custom rate is for a diffusive hop on orthogonal lattice, e.g., in KMCLib/python/functest/OnTheFlyRateCalculator/OnTheFlyRateCalculatorTest.py, how the indices are defined for next nearest neghbours. Pasting the relevant portion from code below:

    Before move the central particle has neighbour indices 1, 2, 3, 4.

     # After the move the central particle has meighbour indices,
     # if we move to the right, 0, 7, 8, 12
     # if we move up,           0, 6, 8, 11
     # if we move down,         0, 5, 7, 10
     # if we move left,         0, 5, 6, 9
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant