Constructor
new ReactionNodeKinetics(reactionTemplate, speciesNodes)
Parameters:
| Name | Type | Description |
|---|---|---|
reactionTemplate |
Reaction | |
speciesNodes |
Array |
Members
archetype :Reaction
Type:
- Reaction
Methods
equals(other) → {Boolean}
Determines whether a ReactionNode is equal by comparing the template.
Parameters:
| Name | Type | Description |
|---|---|---|
other |
Returns:
- Type
- Boolean
f(dX) → {Number}
Evaluates the equilibrium when the reaction advances by the argument double and returns a measure of the difference between it's current value and its equilibrium value.
Parameters:
| Name | Type | Description |
|---|---|---|
dX |
Number |
Returns:
- Type
- Number
getSolvent() → {Solution}
Returns a reference to the solution that this reactionNode is in.
Returns:
- Type
- Solution
getSpeciesNodeAt(index) → {SpeciesNode}
Returns the species node at the specified index. This species node will correspond to the Reaction archetype's species at the same index.
Parameters:
| Name | Type | Description |
|---|---|---|
index |
Returns:
- Type
- SpeciesNode
iteration(constantTemperature, dTopt) → {number}
Brings the solution to equilibrium.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
constantTemperature |
boolean | Keep temperature constant during the iteration |
||
dT |
number | null |
<optional> |
null | The difference in time (in seconds) since previous equilibrium-needed for reactions using kinetics |
Returns:
- Type
- number
setRangeOfX()
Computes the maximum amount forwards and backwards that the reaction can progress, and stores these values in the variables xLow & xHigh. When both sides are finite, these values are computed via limiting reagents. However, if either side is infinite, then we are bound by LeChatlier's principle.
This method will update the cached XConcentrations.
setXMolesAt(index, value)
Sets the concentration (relative to the specie's coefficient) for the species at the specified index.
Parameters:
| Name | Type | Description |
|---|---|---|
index |
||
value |
shift(dX)
Advances the reaction by the argument double.
Parameters:
| Name | Type | Description |
|---|---|---|
dX |
toString()
Converts the ReactionNode into a String.