HardSphereDynamics.FixedPlane
— TypeFixedPlane{N,T}
Fixed N
-dimensional hyperplane.
p
: point on the planen
: normal vector
HardSphereDynamics.HardSphereFluid
— TypeHard sphere fluid in N dimensions
HardSphereDynamics.MovableBall
— TypeMovable ball in N dimensions
HardSphereDynamics.evolve!
— Methodevolve!(fluid::HardSphereFluid, δt, final_time)
Calculate positions and velocities at times up to final_time
, spaced by δt
.
HardSphereDynamics.evolve!
— Methodevolve!(fluid::HardSphereFluid, times)
Time evolution, calculating positions and velocities at given times.
HardSphereDynamics.evolve!
— Methodevolve!(fluid::HardSphereFluid, num_collisions::Integer)
Evolve fluid for num_collisions
collisions (sphere–sphere and sphere–wall collisions are counted).
Returns positions and post-collisions velocities, as well as times at which collisions occur and collision type.
HardSphereDynamics.initial_condition!
— MethodGenerate initial condition for balls.
Uses random sequential deposition: place a disc at a time and check that it doesn't overlap with any previously placed disc.
HardSphereDynamics.RectangularBox
— Type"Rectangular" box in N dimensions.
lower
and upper
contain the lower and upper bounds in each dimension.
HardSphereDynamics.collide!
— MethodCarry out collision assuming already at moment of collision
HardSphereDynamics.collide!
— MethodAssumes b1 and b2 are touching
HardSphereDynamics.collide!
— MethodElastic collision of ball with FixedPlane. The ball is assumed to be touching the FixedPlane.
HardSphereDynamics.flow!
— MethodFlow ball for a time t
HardSphereDynamics.normal
— MethodNormal vector at point x on sphere