CellModules
Diffusion2D::GridCell Struct Reference

Represents a cell in the diffusion grid. More...

#include <DiffusionGrid.hpp>

Public Member Functions

 GridCell ()=default
 Default constructor. More...
 
 GridCell (std::vector< Molecule > m)
 Constructor with existing molecules. More...
 

Public Attributes

std::vector< double > prevQuantities
 
std::vector< double > quantities
 
std::vector< double > consumptions
 

Detailed Description

Represents a cell in the diffusion grid.

Definition at line 41 of file DiffusionGrid.hpp.

Constructor & Destructor Documentation

◆ GridCell() [1/2]

Diffusion2D::GridCell::GridCell ( )
inlinedefault

Default constructor.

◆ GridCell() [2/2]

Diffusion2D::GridCell::GridCell ( std::vector< Molecule m)
inlineexplicit

Constructor with existing molecules.

Parameters
mVector of existing molecules in the simulation.

Definition at line 55 of file DiffusionGrid.hpp.

Member Data Documentation

◆ consumptions

std::vector<double> Diffusion2D::GridCell::consumptions

Local consumptions of each molecule

Definition at line 44 of file DiffusionGrid.hpp.

◆ prevQuantities

std::vector<double> Diffusion2D::GridCell::prevQuantities

Previous quantities of each molecule

Definition at line 42 of file DiffusionGrid.hpp.

◆ quantities

std::vector<double> Diffusion2D::GridCell::quantities

Current quantities of each molecule

Definition at line 43 of file DiffusionGrid.hpp.


The documentation for this struct was generated from the following file: