Open
Conversation
added 13 commits
September 28, 2022 09:24
Changes which affect other parts of JAMS: - Add two arrays to the base hamiltonian class of size(num_spins). - Add pure virtual class functions to base hamiltonian class for the two terms of the helicity modulus. - Add include physics.h and create a pointer to the physics module so helicity modulus can access the value of the temperature. - Add functions to calculate the helicity modulus in uniaxial anisotropy hamiltonian class (including CUDA support). - Helicity modulus from exchange is calculated directly in the helicity modulus class.
Fix typo Fix virtual functions New functions were created as pure virtual functions. Since we have only calculated the equations for two hamiltonians, this is not required. Fix redundant declared but undefined function Add helicity modulus to the list of named monitors Add helicity modulus to cmake sources Allow helicity modulus to get cuda stream Add cuda header files to helicity modulus Fix accessing temperature, resize arrays Remove comments
CUDA Fix Device Functions
- Remove multiplying entropy contribution with beta (must now be done during analysis) - Change Hamiltonian’s entropy function to a Vec3 - Internal energy difference now calculated correctly for uniaxial anisotropy - Change the ideology of the exchange stiffness tensor calculation (more calculations left to the analysis)
Changed the entropy contribution. Calculations based on the following https://journals.aps.org/prb/pdf/10.1103/PhysRevB.55.41 Numbers are squared. In the analysis, must take the expectation value and multiply by beta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fully functioning helicity modulus monitor. Only implemented for uniaxial anisotropy and exchange. Both have CUDA support