Skip to content

Conversation

@supreethprasad
Copy link

No description provided.

@leeping
Copy link
Owner

leeping commented Jul 23, 2017

The codes that you added should be implemented as a function. Can you do that?

system.addForce(mm.MonteCarloBarostat(1*unit.atmospheres, 300*unit.kelvin, 25))

custom_bond = mm.CustomBondForce("0.5*k*(r-r0)^2")
custom_bond.addGlobalParameter("k", 100)
Copy link
Owner

Choose a reason for hiding this comment

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

When you write the function, you can pass an input parameter (for example, input_k), and replace the 100 with this variable.

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.

2 participants