[ase-users] Asking for Help
Adam Jackson
a.j.jackson at physics.org
Tue Feb 22 17:03:15 CET 2022
Hi Firas,
Something like that should indeed be possible. What errors are you encountering?
One possible issue I see in your code is that you create a new Trajectory with the same name in ‘w’ mode inside the loop. This means that each iteration will overwrite the last one, which is probably not what you intended. Perhaps it would be a good idea to e.g. include the temperature in the filename with
traj_writer = Trajectory(f‘md_runs_si/si_traj_{T}K.traj’, ‘w’, si)
Or you could append to the existing trajectory with ‘a’ mode, leaving existing steps intact. Or you could set up the trajectory writer outside the loop, and only update the dynamics.
Regards,
Adam
Date: Mon, 21 Feb 2022 15:37:50 +0000 (UTC)
From: Firas Shuaib <firasshuaib at yahoo.com>
To: ase-users at listserv.fysik.dtu.dk
Subject: [ase-users] Asking for Help
Message-ID: <828946716.1074470.1645457870610 at mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"
Dear All,
Hope this email finds you well. This Firas SHUAIB. I am a master holder of Condensed matter physics. Recently, I am trying to learn how to use ASE to train a gap model. I have a problem in creating a dateset. I want to run Molecular dynamics for a simple NVT system? Si? at different temperature [1000, 700, 500, 300]. I have a problem in restarting the simulation, I want when the simulation is done at 1000 to restart from the last point and just the change the temperature. I have tried different ways but non of them worked. Please find attached screenshot. could you guide me with this ?
Thank you in advance,
Firas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot from 2022-02-19 12-56-43.png
Type: image/png
Size: 261077 bytes
Desc: not available
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20220221/cae95ce8/attachment.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20220222/29c0af24/attachment.htm>
More information about the ase-users
mailing list