-
Notifications
You must be signed in to change notification settings - Fork 52
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
EAM implementation and dimension error #164
Comments
Could you paste the full code here? |
|
This is the EAM potential. I cannot attach the file directly, so I'm providing a link. |
timestep = 1e-14 # Example timestep should have units, e.g. timestep = 1e-14 * u"s" # Example timestep That makes It also seems like Hope that helps! |
great, it works. thank you for your help. I fixed the |
Hi, I've been working on integrating the JuLIP package with AtomsBase. While I understand that a more seamless integration might be on the horizon with the planned move to EmpiricalPotentials.jl, I've proceeded with the available conversion functionality to use JuLIP with AtomsBase structures.
Here's a snippet of my code, where the "Atoms" structure seems okay to set up the environment for the EAM potential:
`position_matrix = hcat([ [atom.position.x, atom.position.y, atom.position.z] for atom in lattice ]...)
cell_matrix = Diagonal(fill(aluminum_lattice_constant, 3))
atoms = Atoms(X=position_matrix, cell=cell_matrix, pbc=true)
aluminum_eam_file = "Al99.eam.alloy"
eam = pyimport("ase.calculators.eam")
eam_julip = EAM(aluminum_eam_file)
set_calculator!(atoms, eam_julip)
full code: [https://www.dropbox.com/scl/fi/lsbjq8duccjgs8ju9ahcz/dislocation_mac_EAM_01272024.jl?rlkey=m9he0ahhmef7w8hf15inty1t8&dl=0](url) EAM potential: [https://www.dropbox.com/scl/fi/x40qqcvsukjuequk16eu8/Al99.eam.alloy?rlkey=8is9lal1ymf27g1vokul5t915&dl=0](url) However, I've encountered a stumbling block when trying to run simulations.
simulate!(system, simulator, number_of_steps)` I keep receiving a DimensionError stating: "8.878172622804642e-27 g¹ᐟ² nm ps⁻¹ u⁻¹ᐟ² and 0.0 kJ g⁻¹ nm⁻¹ are not dimensionally compatible." This error emerges despite my attempts to align the dimensions and units.I'm uncertain if this is an issue with the EAM potential implementation or something else. I've been trying to troubleshoot this without success. Any insights or suggestions would be greatly appreciated
Thank you
best
KP
The text was updated successfully, but these errors were encountered: