|
hemocell
|
Stretch a single cell by pulling vertices at both ends along x, as in an optical-tweezers experiment. More...
#include <hemoCellStretch.h>

Classes | |
| class | FindForcedLsps |
| class | ForceForcedLsps |
Public Member Functions | |
| HemoCellStretch (HemoCellField &cellfield_, unsigned int n_forced_lsps_, T external_force_) | |
| Select the vertices to pull. | |
| void | applyForce () |
Public Attributes | |
| std::vector< plint > | lower_lsps |
| Vertex IDs of the vertices pulled towards -x (lower) and +x (upper). | |
| std::vector< plint > | upper_lsps |
| HemoCellField & | cellfield |
| unsigned int | n_forced_lsps |
| T | external_force |
| Force per pulled vertex [lattice force units]. | |
| T | scale = 1.0 |
| Factor applied to the force at the next applyForce() calls (default 1). | |
Stretch a single cell by pulling vertices at both ends along x, as in an optical-tweezers experiment.
The data are per object, so several simulations (or stretches) in one process do not influence each other. The object must live as long as applyForce() is called.
| hemo::HemoCellStretch::HemoCellStretch | ( | HemoCellField & | cellfield_, |
| unsigned int | n_forced_lsps_, | ||
| T | external_force_ | ||
| ) |
Select the vertices to pull.
Picks the n_forced_lsps_ vertices of the cell with the lowest and the highest x position. Synchronises the particle envelopes; all MPI ranks must call it.
| [in] | cellfield_ | Cell type with exactly one cell (cell ID 0). |
| [in] | n_forced_lsps_ | Number of vertices pulled at each end. |
| [in] | external_force_ | Total force per end [lattice force units], divided equally over its vertices. |
| void hemo::HemoCellStretch::applyForce | ( | ) |
Add the pulling force (times scale) to the vertices; call after every iterate() (needs a material update interval of 1). All MPI ranks must call it.
| HemoCellField& hemo::HemoCellStretch::cellfield |
| T hemo::HemoCellStretch::external_force |
Force per pulled vertex [lattice force units].
| std::vector<plint> hemo::HemoCellStretch::lower_lsps |
Vertex IDs of the vertices pulled towards -x (lower) and +x (upper).
| unsigned int hemo::HemoCellStretch::n_forced_lsps |
| T hemo::HemoCellStretch::scale = 1.0 |
Factor applied to the force at the next applyForce() calls (default 1).
| std::vector<plint> hemo::HemoCellStretch::upper_lsps |