Skip to content

customFunction module as reaction coordinate #690

Discussion options

You must be logged in to vote

Hi Satyajit!

To use a linear combination you could use componentCoeff:
https://colvars.github.io/master/colvars-refman-namd.html#sec:cvc_superp
The example below defines a colvar that is the average of two functions:

colvar {
    name xi
    function1 {
        componentCoeff 0.5
        ....
    }
    function2 {
        componentCoeff 0.5
        ....
    }
}

customFunction is much more flexible, because you can use many more mathematical functions, and I do recommend using it. The only caveat is that GROMACS and VMD currently would not support it.

If you have a specific idea in mind, please describe it so that we can confirm whether it's supported or not.

Cheers!

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@satyajitkhatua09
Comment options

@giacomofiorin
Comment options

@satyajitkhatua09
Comment options

@giacomofiorin
Comment options

@satyajitkhatua09
Comment options

Answer selected by satyajitkhatua09
Comment options

You must be logged in to vote
1 reply
@satyajitkhatua09
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #689 on May 07, 2024 16:03.