Skip to content

Lammps template for MD+MC - #1149

Open
wujing81 wants to merge 2 commits into
deepmodeling:masterfrom
wujing81:wujing81
Open

Lammps template for MD+MC#1149
wujing81 wants to merge 2 commits into
deepmodeling:masterfrom
wujing81:wujing81

Conversation

@wujing81

@wujing81 wujing81 commented Mar 9, 2023

Copy link
Copy Markdown

Lammps template for MD+MC

@wanghan-iapcm
wanghan-iapcm requested a review from Vibsteamer March 9, 2023 03:01

@Vibsteamer Vibsteamer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The attatched param.json together with the template now dump-and-check in one loop_step:

  1. 50 MC snapshots from the last MD_snapshot in the last loop, many of them are repeated images as being not accepted by Metroplis criterion.
  2. then, 100 MD snapshots from the last accepted MC_snapshot.

the sampling weights (then candidates and labelds) on physical structures could be correspondingly biased,

Please make sure this is of your expectation.


# read in the potentia
pair_style deepmd ../graph.001.pb ../graph.000.pb ../graph.003.pb ../graph.002.pb out_freq ${THERMO_FREQ} out_file model_devi.out
pair_coeff

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pair_coeff
--> pair coeff * *

to be compatible with the latest version of lammps

@njzjz-bot njzjz-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: Changes requested. The template contains a reproducible LAMMPS syntax error and cannot run. Previously reported issues involving pair_coeff and the sampling weight of repeated MC configurations are also unresolved. The branch is old and has no checks; I recommend rebuilding this example on the current template system with a smoke test.

Note: The Codex quota is about to reset, so I am using the remaining tokens to review all open PRs in this repository.

Coding agent: Codex
Codex version: codex-cli 0.144.6
Model: gpt-5.6-sol
Reasoning effort: xhigh

run ${MC_NSTEPS}
unfix mc1

velocity all create ${TEMP_MD} ${RANDOM_SEED}"

@njzjz-bot njzjz-bot Aug 10, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Blocking] The extra quote after the random seed makes LAMMPS fail immediately with Unmatched double quote in command; I reproduced this with LAMMPS 22 Jul 2025. Please change it to:

Suggested change
velocity all create ${TEMP_MD} ${RANDOM_SEED}"
velocity all create ${TEMP_MD} ${RANDOM_SEED}

The MC seed is also hard-coded to 500 and should be parameterized separately. In addition, dumping after rejected swaps produces repeated configurations, so the intended sampling weight should be documented or the frames should be deduplicated.

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

Successfully merging this pull request may close these issues.

3 participants