BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
15 #ifndef CORE_BEHAVIOR_CHEMOTAXIS_H_
16 #define CORE_BEHAVIOR_CHEMOTAXIS_H_
42 Base::Initialize(event);
49 auto* cell = bdm_static_cast<Cell*>(agent);
50 auto& position = cell->GetPosition();
53 cell->UpdatePosition(gradient *
speed_);
63 #endif // CORE_BEHAVIOR_CHEMOTAXIS_H_
void Initialize(const NewAgentEvent &event) override
Behavior * existing_behavior
DiffusionGrid * GetDiffusionGrid(size_t substance_id) const
BDM_BEHAVIOR_HEADER(Chemotaxis, Behavior, 1)
Contains code required by all agents.
Chemotaxis(const std::string &substance, real_t speed)
Chemotaxis(DiffusionGrid *dgrid, real_t speed)
Move cells along the diffusion gradient (from low concentration to high)
ResourceManager * GetResourceManager()
Returns the ResourceManager instance.
void Run(Agent *agent) override
virtual ~Chemotaxis()=default
static Simulation * GetActive()
This function returns the currently active Simulation simulation.
Real3 GetGradient(const Real3 &position) const override