fracture.balls: Generate balls inside of a 3d fracture

View source: R/balls.R

fracture.ballsR Documentation

Generate balls inside of a 3d fracture

Description

Generate balls inside of a 3d fracture

Usage

fracture.balls(
  obj,
  K = 4000,
  Rmax = 0.01,
  Rmin = 0.01,
  B = data.frame(),
  margin = 0.003,
  margin_opt = margin/3,
  relax_iterations = 10,
  max_add = 200,
  overshoot = 100,
  seed,
  mean.neighbor = 5,
  iterations = ceiling(1.5 * K/max_add),
  dist = function(k, Rmin, Rmax) runif(k, Rmin, Rmax),
  delete = TRUE,
  period = 1
)

Arguments

obj

fracture_geom object

K

target number of balls

Rmax, Rmin

the limits on radiuses of sizes

B

set of balls to start from

margin

target margin distance between balls

margin_opt

lower limit on margin for optimization

relax_iterations

number of subiterations for relaxation

max_add

number of balls added in each iteration

overshoot

number of balls by which to overshoot target

seed

random seed

mean.neighbor

the mean.neighbor buffor size

iterations

number of iterations

dist

distribution of radii

delete

if TRUE, allow the algorithm to delete balls during optimization

period

the periodicity of the domain


llaniewski/rfracture documentation built on Aug. 21, 2023, 11:10 a.m.