MEDYAN.make_ball!

Tuple{MEDYAN.Context}

make_ball!(c::Context; position, radius, stiffness=1.0, state=SA[0,0,0]) -> Tag{BallIdx}

Create a new ball in c and return a tag for it.

Keyword Arguments

  • position::SVector{3, Float64}: 3D position of the ball center (nm)
  • radius::Float32: Radius of the ball (nm)
  • stiffness::Float32=1.0: Mechanical stiffness coefficient (pN/nm)
  • state::SVector{3, Int64}=SA[0,0,0]: Three-component state vector for chemical reactions

See also: remove_ball!, update_ball!