VicsekModel
Documentation for VicsekModel.
VicsekModel.VicsekModelParameters
VicsekModel.VicsekModelVariables
VicsekModel.VicsekModelVariables
VicsekModel.VicsekModelVariables
Base.show
Base.show
VicsekModel.calculate_weights!
VicsekModel.calculate_weights!
VicsekModel.periodic_boundary!
VicsekModel.update!
VicsekModel.update!
VicsekModel.update!
VicsekModel.update_position!
VicsekModel.update_with_anim
VicsekModel.vicsekmodel_with_anim
VicsekModel.VicsekModelParameters
— TypeFields
L
: Length of the square boxρ
: Density of particlesN
: Number of particlesr₀
: Interaction radiusΔt
: Time stepfactor
: Factor to determine the initial velocityv₀
: Initial velocityη
: Noise strengthalg
: Algorithm to update the position and velocity
VicsekModel.VicsekModelVariables
— TypeInitialize the variables of the Vicsek model with a seed number
pos
: Random position of particlesvel
: Random velocity of particlesθ
: Random angle of particlesS
: Complex number to calculate the average angle of neighbors
VicsekModel.VicsekModelVariables
— TypeVariables of the Vicsek model
pos
: Position of particlesvel
: Velocity of particlesθ
: Angle of particlesS
: Complex number to calculate the average angle of neighbors
VicsekModel.VicsekModelVariables
— MethodInitialize the variables of the Vicsek model
pos
: Random position of particlesvel
: Random velocity of particlesθ
: Random angle of particlesS
: Complex number to calculate the average angle of neighbors
Base.show
— MethodShow the parameters of the Vicsek model
Base.show
— MethodShow the variables of the Vicsek model
VicsekModel.calculate_weights!
— MethodCalculate the average angle of neighbors
Arguments
pos
: Position of particlesθ
: Angle of particlesS
: Complex number to calculate the average angle of neighborsr₀
: Interaction radiusix
: Index of particles
VicsekModel.calculate_weights!
— MethodCalculate the average angle of neighbors with KDTree
Arguments
tree
: KDTree to find the neighborspos
: Position of particlesθ
: Angle of particlesS
: Complex number to calculate the average angle of neighborsr₀
: Interaction radiusix
: Index of particles
VicsekModel.periodic_boundary!
— MethodPeriodic boundary condition
Arguments
pos
: Position of particlesL
: Length of the square boxix
: Index of particles
VicsekModel.update!
— MethodHoly trait of update function
VicsekModel.update!
— MethodUpdate the position and velocity of particles using a simple for-loop method
Arguments
var
: Variables of the Vicsek modelp
: Parameters of the Vicsek model
VicsekModel.update!
— MethodUpdate the position and velocity of particles using KDTree
Arguments
var
: Variables of the Vicsek modelp
: Parameters of the Vicsek model
VicsekModel.update_position!
— MethodUpdate the position and velocity of particles
Arguments
pos
: Position of particlesvel
: Velocity of particlesθ
: Angle of particlesS
: Complex number to calculate the average angle of neighborsv₀
: Initial velocityη
: Noise strengthix
: Index of particles
VicsekModel.update_with_anim
— MethodUpdate the position and velocity of particles with animation
Arguments
t
: Time stepvar
: Variables of the Vicsek modelp
`: Parameters of the Vicsek model
VicsekModel.vicsekmodel_with_anim
— MethodVicsek model with animation
Arguments
Tmax
: Maximum time step