Description Usage Arguments Details See Also
The generic function diffuseR
implements the diffusion in the Moore neighbourhood in R
.
1 2 3 4 |
object |
An object of class Substance. |
The diffusion is implemented by iterating through each cell in the grid and taking the cell with the lowest concentration in the Moore neighbourhood to update the concentration of both by their mean.
Substance-class
and diffusePDE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.