PIMD metadynamics failed due to no access to "myatoms"

8 views
Skip to first unread message

Qinghua Liao

unread,
Feb 11, 2026, 9:44:19 AMFeb 11
to ipi-users
Hello, 

I am trying to run PIMD metadynamics using i-PI 3.16 and ASE/MACE. 
The normal PIMD works well, but the metadynamics crashed, as
it could not obtain number of atoms from the system, even though I provided a xyz file. 

The attached are my input and log files, the metadyamics part of the input was written 
take a reference from this post: 


For the installation, py_plumed and plumed were installed with ASE/MACE, it works well for my metadynamcis with ASE/MACE/PLUMED. 

Any suggestions are welcome and appreciated. 

All the best,
Qinghua
log.ipi
pimd.xml

Qinghua Liao

unread,
Feb 11, 2026, 2:49:35 PMFeb 11
to ipi-users
Hello, 

After adding mode='xyz', and now the simulation is running: 

  <ffplumed name='opes'>
    <file mode='xyz'> CH4_1hx323.xyz </file>
    <plumed_dat> plumed.dat </plumed_dat>
  </ffplumed>

However, there is no output from metadynamics. I will test it and try to figure it out, I read something from the online documentation. 

All the best,
Qinghua

Qinghua Liao

unread,
Feb 11, 2026, 6:21:21 PMFeb 11
to ipi-users
I found that if I put this second in the input file, pimd.xml: 

  <smotion mode="metad">
     <metad> <metaff> [ opes ] </metaff> </metad>
  </smotion>

I can get some output files, but the simulation crashed when the first Gaussian was added.
What I learned is that smotion is for i-PI built-in metadynamics, which has some conflicts with external PLUMED. 
#
  File "/gpfs/home/ub/ub487110/programs/i-PI_316/ipi/engine/smotion/metad.py", line 104, in step
    for fb in fc._forces:
              ^^^^^^^^^^
AttributeError: 'ScaledForceComponent' object has no attribute '_forces'
WARNING: internal inconsistency in allocated PlumedMain instances (1)
#

I would really appreciate if someone could give me some tips! 

All the best,
Qinghua

Qinghua Liao

unread,
Feb 11, 2026, 7:24:32 PMFeb 11
to ipi-users
I found the examples from "example/features/metadynamics", will study those examples there. 
(I will delete this post later)

All the best,
Qinghua

Michele Ceriotti

unread,
Feb 12, 2026, 1:47:26 AM (14 days ago) Feb 12
to ipi-users

Qinghua Liao

unread,
Feb 12, 2026, 6:01:37 PM (13 days ago) Feb 12
to ipi-users
Thanks a lot Michele! Now I get it working. 

All the best,
Qinghua
Reply all
Reply to author
Forward
0 new messages