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

ERROR: Must redefine kspace_style after changing to triclinic box #1

Open
maaliso opened this issue Jul 31, 2024 · 0 comments
Open

Comments

@maaliso
Copy link

maaliso commented Jul 31, 2024

Hi everyone,
I installed the python version of lammps today using conda to be able to use it with ase and be able to use the calculator class LAMMPSlib. I define my parameters as follows and it is asking me to redefine the kspace_style again even though, I believe I am redefining it in the correct parameter "post_changebox_cmds".

Why wouldn't this work? or how can I fix this following code?

`atoms = read_lammps_data('0_gb5310.data', atom_style = 'full')

header = ["units metal",
"atom_style full",
"boundary p p p",
"kspace_style pppm 1.0e-6"]

cmds = [
"pair_style buck/coul/long 10 10",
"pair_coeff * * 0.0 1.0 0.0",
"pair_coeff 1 3 905.700 0.39760 0.0",
"pair_coeff 3 3 9547.96 0.21916 32.000",
"pair_coeff 2 3 2179.122 0.30384 8.986"]

postcmds = ["kspace_style pppm 1.0e-6"]

lammps = LAMMPSlib(lmpcmds=cmds, lammps_header = header, post_changebox_cmds = postcmds, log_file = 'test.log')

atoms.calc = lammps

atoms.get_potential_energy()`

Error: Must redefine kspace_style after changing to triclinic box

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