How to define per-atom variable in multisphere
Hi,
I use the compute multi-sphere command to calculate body position, and later I would like to exert a force on each multi-sphere body depends on their position in vertical space(z direction). This used to work for me in only sphere system. For the multi-sphere system,I use similar syntax like following
compute zp all multisphere property xcm
variable prs atom -20.*c_zp[3]
fix pressure crystal setforce 0.0 0.0 v_prs
Forums:
- Read more about How to define per-atom variable in multisphere
- 2 comments
- Log in or register to post comments