lue611
January 22, 2024, 4:13am
1
Hi
I am using plumed+lammps to do on the fly probability enhanced sampling with two cv’s, how can I get the 2D free energy surface (FES) as below. the script FES_from_Reweighting.py seems to only get 1D?
here is the related link:
https://www.plumed.org/doc-v2.9/user-doc/html/masterclass-22-03.html
and the script is downloaded here:
#! /usr/bin/env python3
### Get the FES estimate from reweighting. 1D or 2D only ###
# uses a weighted kernel density estimation, so it requires the bandwidth sigma
# usage is similar to plumed sum_hills
# NB: in case of multiple walkers one should combine them in a single file
# when using --stride or --skiprows one should sort them:
# sort -gs COLVAR.* > COLVAR
# when using --blocks it is better to concatenate them:
# cat COLVAR.* > COLVAR
import sys
import argparse
import numpy as np
import pandas as pd #much faster reading from file
do_bck=False #backup files in plumed style
if do_bck:
bck_script='bck.meup.sh' #e.g. place the script in your ~/bin
import subprocess
This file has been truncated. show original
This is a question better suited for the Plumed users forum, https://groups.google.com/g/plumed-users , since it has next to nothing to do with LAMMPS.
1 Like