CellModules
|
Template class for a molecule diffusion body. More...
#include <BodyDiffusion.hpp>
Public Member Functions | |
BodyDiffusion () | |
Default constructor. More... | |
BodyDiffusion (int size) | |
Constructor with size parameter. More... | |
void | initNbMolecules (int n) |
Initializes the number of molecules. More... | |
double | getQuantity (MecaCell::Vec v, int mol) const |
Gets the quantity of a molecule. More... | |
double | getConsumption (int mol) const |
Gets the consumption of a molecule. More... | |
double | getConsumptionByIndex (int i) const |
Gets the consumption of a molecule by index. More... | |
void | setConsumption (int mol, double value) |
Sets the consumption of a molecule. More... | |
DiffusionGrid * | getDiffusionGrid () |
Gets the diffusion grid. More... | |
void | setDiffusionGrid (DiffusionGrid *g) |
Sets the diffusion grid. More... | |
void | onCellPluginLinking () |
Hook called when the body has access to the plugin. More... | |
Private Member Functions | |
void | setCellPlugin (plugin_t *_cellPlugin) |
Private Attributes | |
vector< double > | consumptions |
DiffusionGrid * | grid = nullptr |
int | nbMolecules = 0 |
plugin_t * | cellPlugin |
Template class for a molecule diffusion body.
cell_t | Type of the cell used in the grid |
plugin_t | Type of the plugin used |
Definition at line 32 of file BodyDiffusion.hpp.
|
inline |
Default constructor.
Definition at line 44 of file BodyDiffusion.hpp.
|
inlineexplicit |
Constructor with size parameter.
size | Number of existing molecules. |
Definition at line 51 of file BodyDiffusion.hpp.
|
inline |
Gets the consumption of a molecule.
mol | Number of the molecule. |
Definition at line 82 of file BodyDiffusion.hpp.
|
inline |
Gets the consumption of a molecule by index.
i | Index of the molecule. |
Definition at line 92 of file BodyDiffusion.hpp.
|
inline |
Gets the diffusion grid.
Definition at line 110 of file BodyDiffusion.hpp.
|
inline |
Gets the quantity of a molecule.
v | Position vector. |
mol | Number of the molecule. |
Definition at line 72 of file BodyDiffusion.hpp.
|
inline |
Initializes the number of molecules.
n | Number of existing molecules. |
Definition at line 59 of file BodyDiffusion.hpp.
|
inline |
Hook called when the body has access to the plugin.
This happens when the cell is added to the world (w.addCell(c)). This hook can be useful for setting up Body properties based on elements from the Plugin part.
Definition at line 131 of file BodyDiffusion.hpp.
|
inlineinherited |
Definition at line 14 of file BaseBody.hpp.
|
inline |
Sets the consumption of a molecule.
mol | Number of the molecule. |
value | Consumption value. |
Definition at line 101 of file BodyDiffusion.hpp.
|
inline |
Sets the diffusion grid.
g | Pointer to the diffusion grid. |
Definition at line 116 of file BodyDiffusion.hpp.
|
protectedinherited |
Definition at line 9 of file BaseBody.hpp.
|
private |
consumption of each molecules in µm^3/(ng.s)
Definition at line 35 of file BodyDiffusion.hpp.
|
private |
Definition at line 36 of file BodyDiffusion.hpp.
|
private |
Definition at line 37 of file BodyDiffusion.hpp.