1#ifndef ONKO3D_3_0_BODYDIFFUSION_HPP
2#define ONKO3D_3_0_BODYDIFFUSION_HPP
12#include "../../../../src/core/BaseBody.hpp"
31 template<
typename cell_t,
class plugin_t>
molecules 2D Grid manager
Template class for a molecule diffusion body.
DiffusionGrid * getDiffusionGrid()
Gets the diffusion grid.
vector< double > consumptions
double getConsumptionByIndex(int i) const
Gets the consumption of a molecule by index.
void setDiffusionGrid(DiffusionGrid *g)
Sets the diffusion grid.
BodyDiffusion()
Default constructor.
double getQuantity(MecaCell::Vec v, int mol) const
Gets the quantity of a molecule.
double getConsumption(int mol) const
Gets the consumption of a molecule.
BodyDiffusion(int size)
Constructor with size parameter.
void initNbMolecules(int n)
Initializes the number of molecules.
void setConsumption(int mol, double value)
Sets the consumption of a molecule.
void onCellPluginLinking()
Hook called when the body has access to the plugin.
Class representing a grid for molecule diffusion.
unordered_map< int, int > moleculesDict
double getMoleculeRealPos(const MecaCell::Vec &v, int mol)
Gets the quantity of a molecule at a real position.
general purpose 3D vector/point class.
size_t size() const
Returns the number of elements in the vector.
Namespace for diffusion-related structures and classes.
Provides common mathematical functions and vector operations.