examples:potentials:pair:2
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
examples_potentials_pair_2 [2013/08/15 15:45] – created daniel | examples:potentials:pair:2 [2018/01/10 17:35] (current) – ↷ Page moved and renamed from examples_potentials_pair_2 to examples:potentials:pair:2 daniel | ||
---|---|---|---|
Line 1: | Line 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
====== Examples : Pair Potentials ====== | ====== Examples : Pair Potentials ====== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <wrap round important 560px center> | ||
+ | // | ||
+ | This is an example potential. Please do NOT use it for any real simulations! | ||
+ | </ | ||
This is a simple pair potential that can be used in // | This is a simple pair potential that can be used in // | ||
Line 7: | Line 14: | ||
It makes use of the **global parameters** feature. | It makes use of the **global parameters** feature. | ||
- | < | + | < |
#F 0 3 | #F 0 3 | ||
#T PAIR | #T PAIR | ||
Line 13: | Line 20: | ||
#E | #E | ||
+ | # This is the definition of 1 global parameter called epsilon | ||
global 1 | global 1 | ||
epsilon 0.10 0.00 1.00 | epsilon 0.10 0.00 1.00 | ||
Line 18: | Line 26: | ||
type lj | type lj | ||
cutoff 6.0 | cutoff 6.0 | ||
+ | # Use the global parameter epsilon | ||
epsilon! | epsilon! | ||
sigma | sigma | ||
Line 23: | Line 32: | ||
type lj | type lj | ||
cutoff 6.0 | cutoff 6.0 | ||
+ | # Use the global parameter epsilon | ||
epsilon! | epsilon! | ||
sigma | sigma | ||
Line 28: | Line 38: | ||
type lj | type lj | ||
cutoff 6.0 | cutoff 6.0 | ||
- | epsilon! | + | epsilon |
sigma | sigma | ||
</ | </ | ||
- | The first parameter of each lj-potential | + | The first parameter of the first two lj-potentials |
parameter of the global section. This can be used to share parameters amongst several potentials. | parameter of the global section. This can be used to share parameters amongst several potentials. | ||
Line 39: | Line 49: | ||
The example potential can be generated with the following '' | The example potential can be generated with the following '' | ||
- | <WRAP round tip> | + | <WRAP round tip> |
- | the potential file. The plain potential file can be generated with</ | + | // |
+ | Global parameters are not supported by makeapot. They have to be introduced manually in | ||
+ | the potential file. The plain potential file can be generated with | ||
+ | </ | ||
makeapot -n 2 -i pair -f 3*lj | makeapot -n 2 -i pair -f 3*lj |
examples/potentials/pair/2.1376574323.txt.gz · Last modified: 2013/08/15 15:45 by daniel