small modification to fix bond/react to allow equal style variables as probability o

On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
	modified:   doc/src/fix_bond_react.rst
	new file:   examples/USER/reaction/nylon,6-6_melt/in.large_nylon_melt_variable_probability
	modified:   src/USER-REACTION/fix_bond_react.cpp
	modified:   src/USER-REACTION/fix_bond_react.h
This commit is contained in:
wverestek
2020-04-22 13:27:10 +02:00
parent 0711232e5b
commit 0288bb4b6b
4 changed files with 93 additions and 4 deletions

View File

@ -419,8 +419,10 @@ it occurs:
The *prob* keyword can affect whether or not an eligible reaction
actually occurs. The fraction setting must be a value between 0.0 and
1.0. A uniform random number between 0.0 and 1.0 is generated and the
eligible reaction only occurs if the random number is less than the
1.0 or can be an equal style variable. In the later case the variable
is evaluated during runtime and adjusted to be between 0.0 and 1.0 if
necessary. A uniform random number between 0.0 and 1.0 is generated and
the eligible reaction only occurs if the random number is less than the
fraction. Up to N reactions are permitted to occur, as optionally
specified by the *max_rxn* keyword.