Learn R Programming

simLife (version 0.5.2)

rsa: Random sequential adsorption (RSA)

Description

A simple RSA algorithm

Usage

rsa(S, F = NULL, pl = 0, verbose = TRUE)

Arguments

S

overlapping geometry system

F

secondary phase objects as list

pl

integer: if pl>0 give some intermediate results

verbose

logical: if verbose=TRUE (default) show additional information

Value

list of non-overlapping particles

Details

The function generates a non-overlapping configuration of spheres, spheroids or spherocylinders with respect to periodic boundary conditions by sequentially adding the given objects at new random positions in the simulation box while keeping their sizes and orientations. If there is an overlap detected the position is rejected and some new random position is generated until all particles have put inside or the maximum number of allowed iterations is reached. This function is most suited for volume fractions less than 0.15.

References

J.W. Evans. Random and cooperative sequential adsorption. Rev. Mod. Phys., 65: 1281-1304, 1993.