hemocell
Loading...
Searching...
No Matches
bindingField.h
Go to the documentation of this file.
1/*
2This file is part of the HemoCell library
3
4HemoCell is developed and maintained by the Computational Science Lab
5in the University of Amsterdam. Any questions or remarks regarding this library
6can be sent to: info@hemocell.eu
7
8When using the HemoCell library in scientific work please cite the
9corresponding paper: https://doi.org/10.3389/fphys.2017.00563
10
11The HemoCell library is free software: you can redistribute it and/or
12modify it under the terms of the GNU Affero General Public License as
13published by the Free Software Foundation, either version 3 of the
14License, or (at your option) any later version.
15
16The library is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19GNU Affero General Public License for more details.
20
21You should have received a copy of the GNU Affero General Public License
22along with this program. If not, see <http://www.gnu.org/licenses/>.
23*/
24#ifndef HEMO_BINDING_FIELD_H
25#define HEMO_BINDING_FIELD_H
26
28#include "multiBlock/multiDataField3D.h"
29
30namespace hemo {
32public:
41
42 void checkpoint();
43 static void restore(HemoCellFields & cellFields);
44
45 //Called within functional, from particlefield
46 void add(HemoCellParticleField & pf, const plb::Dot3D & bindingSite);
47 void add(HemoCellParticleField & pf, const std::vector<plb::Dot3D> & bindingSites);
48 void remove(HemoCellParticleField & pf, const plb::Dot3D & bindingSite);
49 void remove(HemoCellParticleField & pf, const std::vector<plb::Dot3D> & bindingSites);
50
51private:
53 plb::MultiScalarField3D<bool> * multiBindingField = 0;
54
56
57 void refillBindingSites();
58
59 //Singleton Behaviour
60public:
62 void operator=(bindingFieldHelper const &) = delete;
63};
64}
65#endif
Definition hemoCellFields.h:54
bindingFieldHelper * bindingHelper
Definition hemoCellFields.h:314
Definition hemoCellParticleField.h:39
Definition bindingField.h:31
plb::MultiScalarField3D< bool > * multiBindingField
Definition bindingField.h:53
static bindingFieldHelper & get(HemoCellFields &cellFields)
Definition bindingField.h:36
HemoCellFields & cellFields
Definition bindingField.h:52
bindingFieldHelper(bindingFieldHelper const &)=delete
void refillBindingSites()
Definition bindingField.cpp:120
static void restore(HemoCellFields &cellFields)
Definition bindingField.cpp:85
void checkpoint()
Definition bindingField.cpp:66
void add(HemoCellParticleField &pf, const plb::Dot3D &bindingSite)
Definition bindingField.cpp:102
void operator=(bindingFieldHelper const &)=delete
void remove(HemoCellParticleField &pf, const plb::Dot3D &bindingSite)
Definition bindingField.cpp:111
~bindingFieldHelper()
Definition bindingField.cpp:62
Definition config.cpp:37