Closed thh32 closed 6 years ago
have you tried using the speed
parameter of the organism constructor? For example:
bac <- Bac(Ec_core, speed=2)
Does this help?
Hi Tom,
the j
parameter you reference is used internally to index the organisms in the environment, so it doesn't adjust the movement speed. The move()
function in general is used internally in simEnv()
and I think it is better to adjust the movement with the Bac()
constructur via the speed
variable. For instance:
bac <- Bac(Ec_core, speed=1)
This means that per iteration step, the bacteria are moving maximum one cell at the time if possible. By default, the physical length of one grid cell is 0.00025 mm (this is confined given that one individual is occupying one grid cell). So if you set the iteration step to 1h, the movement speed should be 0.00025 mm/h.
Hope this helps, Eugen
Thanks again for your help, I will use the speed option in Bac()
Looking at the code is appears that the move() function can be used to alter movement of individual bacterial species.
If this is correct, is it by altering the
j
option that you can increase/decrease bacterial movement as some basic testing of alteringj
seemed to produce an effect but I have no statistics on the cells movement to compare quantitatively.Any help on this would be appreciated.
Thanks, Tom