hemocell
Loading...
Searching...
No Matches
hemoCellStretch.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 HEMOCELLSTRETCH_H
25#define HEMOCELLSTRETCH_H
26
27#include "hemoCellFields.h"
28#include "hemoCellFunctional.h"
29
30namespace hemo {
31
41public:
53 HemoCellStretch(HemoCellField & cellfield_, unsigned int n_forced_lsps_, T external_force_);
56 void applyForce();
57
59 public:
60 explicit FindForcedLsps(HemoCellStretch & stretch_) : stretch(stretch_) {}
61
62 private:
63 void processGenericBlocks(plb::Box3D, std::vector<plb::AtomicBlock3D *>) override;
64 FindForcedLsps * clone() const override;
66 };
67
69 public:
70 explicit ForceForcedLsps(const HemoCellStretch & stretch_) : stretch(stretch_) {}
71
72 private:
73 void processGenericBlocks(plb::Box3D, std::vector<plb::AtomicBlock3D *>) override;
74 ForceForcedLsps * clone() const override;
76 };
77
79 std::vector<plint> lower_lsps;
80 std::vector<plint> upper_lsps;
81
83 unsigned int n_forced_lsps;
87 T scale = 1.0;
88};
89}
90#endif
Definition hemoCellField.h:42
Definition hemoCellFunctional.h:37
Definition hemoCellStretch.h:58
void processGenericBlocks(plb::Box3D, std::vector< plb::AtomicBlock3D * >) override
Definition hemoCellStretch.cpp:35
FindForcedLsps(HemoCellStretch &stretch_)
Definition hemoCellStretch.h:60
HemoCellStretch & stretch
Definition hemoCellStretch.h:65
FindForcedLsps * clone() const override
Definition hemoCellStretch.cpp:31
Definition hemoCellStretch.h:68
void processGenericBlocks(plb::Box3D, std::vector< plb::AtomicBlock3D * >) override
Definition hemoCellStretch.cpp:70
ForceForcedLsps(const HemoCellStretch &stretch_)
Definition hemoCellStretch.h:70
ForceForcedLsps * clone() const override
Definition hemoCellStretch.cpp:66
const HemoCellStretch & stretch
Definition hemoCellStretch.h:75
Stretch a single cell by pulling vertices at both ends along x, as in an optical-tweezers experiment.
Definition hemoCellStretch.h:40
T scale
Factor applied to the force at the next applyForce() calls (default 1).
Definition hemoCellStretch.h:87
T external_force
Force per pulled vertex [lattice force units].
Definition hemoCellStretch.h:85
unsigned int n_forced_lsps
Definition hemoCellStretch.h:83
HemoCellField & cellfield
Definition hemoCellStretch.h:82
std::vector< plint > lower_lsps
Vertex IDs of the vertices pulled towards -x (lower) and +x (upper).
Definition hemoCellStretch.h:79
std::vector< plint > upper_lsps
Definition hemoCellStretch.h:80
void applyForce()
Definition hemoCellStretch.cpp:100
double T
Definition constant_defaults.h:137
Definition config.cpp:37