bond_valence_restraints
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| bond_valence_restraints [2011/12/01 23:52] – Fixed some topas code formatting and added some extra comment markers to fix auto code colouring rowlesmr | bond_valence_restraints [2025/09/19 15:18] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Bond Valence Restraints ====== | ||
| + | |||
| + | It's often useful to restrain bond valence sums rather than distances and angles. | ||
| + | |||
| + | You can do this in Topas using the atomic_interaction lines and associated penalties below. | ||
| + | |||
| + | This example was in P1 with Z=1. If Z is not equal to one then you may find that the valence sum (reported at the end of the line) is wrong. | ||
| + | |||
| + | <code topas> | ||
| + | 'this is valence penalty for a W site | ||
| + | ' | ||
| + | prm !val_weight 1.0 'this weights the valence penalties relative to other penalties | ||
| + | |||
| + | atomic_interaction | ||
| + | ai_radius 3.5 ai_sites_1 | ||
| + | prm W1_1_num = W1_1_val;: | ||
| + | |||
| + | |||
| + | 'this is valence penalty for an O site | ||
| + | ' | ||
| + | atomic_interaction | ||
| + | ai_radius 3.5 ai_sites_1 | ||
| + | prm O1_1_num = O1_1_val;: | ||
| + | </ | ||