hemocell
Loading...
Searching...
No Matches
readPositionsBloodCells.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 READ_POSISIONS_OF_BLOOD_CELLS_H
25#define READ_POSISIONS_OF_BLOOD_CELLS_H
26
27#include "hemoCellFields.h"
28#include "config.h"
29#include "constantConversion.h"
30
31#include "core/geometry3D.h"
32
33#include <set>
34#include "offLattice/triangularSurfaceMesh.hh"
35
36namespace hemo {
43
55void readPositionsBloodCellField3D(HemoCellFields & cellFields, T dx, Config & cfg);
56
59
65 std::set<plint> candidates;
66 std::set<plint> blocked;
67};
68
69class ReadPositionsBloodCellField3D : public plb::BoxProcessingFunctional3D {
70public:
79 const std::vector<std::vector<InitialCellPlacement>> & cells_, plint particleEnvelope_,
80 CellsCrossingPeriodicBoundary * crossing_ = 0)
81 : dx(dx_), cellFields(cellFields_), cells(cells_), particleEnvelope(particleEnvelope_), crossing(crossing_) {}
83 virtual void processGenericBlocks(plb::Box3D domain, std::vector<plb::AtomicBlock3D *> fields);
84 virtual ReadPositionsBloodCellField3D * clone() const;
85 virtual void getTypeOfModification(std::vector<plb::modif::ModifT> & modified) const;
86 void getModificationPattern(std::vector<bool> & isWritten) const;
87 virtual plb::BlockDomain::DomainT appliesTo() const;
90 const std::vector<std::vector<InitialCellPlacement>> & cells;
93};
94}
95#endif
Definition config.h:91
Definition hemoCellFields.h:54
Definition readPositionsBloodCells.h:69
plint particleEnvelope
Definition readPositionsBloodCells.h:91
virtual ReadPositionsBloodCellField3D * clone() const
Definition readPositionsBloodCells.cpp:377
virtual void getTypeOfModification(std::vector< plb::modif::ModifT > &modified) const
Definition readPositionsBloodCells.cpp:381
T dx
Definition readPositionsBloodCells.h:88
const std::vector< std::vector< InitialCellPlacement > > & cells
Definition readPositionsBloodCells.h:90
ReadPositionsBloodCellField3D(HemoCellFields &cellFields_, T dx_, const std::vector< std::vector< InitialCellPlacement > > &cells_, plint particleEnvelope_, CellsCrossingPeriodicBoundary *crossing_=0)
Definition readPositionsBloodCells.h:78
HemoCellFields & cellFields
Definition readPositionsBloodCells.h:89
virtual plb::BlockDomain::DomainT appliesTo() const
Definition readPositionsBloodCells.cpp:396
virtual void processGenericBlocks(plb::Box3D domain, std::vector< plb::AtomicBlock3D * > fields)
Arguments: [0] fluid lattice, [1..] particle field of each cell type.
Definition readPositionsBloodCells.cpp:233
CellsCrossingPeriodicBoundary * crossing
Definition readPositionsBloodCells.h:92
void getModificationPattern(std::vector< bool > &isWritten) const
Definition readPositionsBloodCells.cpp:388
double T
Definition constant_defaults.h:137
long int plint
Definition constant_defaults.h:149
Definition config.cpp:37
void readPositionsBloodCellField3D(HemoCellFields &cellFields, T dx, Config &cfg)
Place the cells listed in <type name>.pos of every cell type into the particle fields.
Definition readPositionsBloodCells.cpp:401
int getTotalNumberOfCells(HemoCellFields &cellFields)
Sum of the cell counts in the first line of every <type name>.pos file (read on each rank).
Definition readPositionsBloodCells.cpp:176
Definition array.h:40
Definition readPositionsBloodCells.h:64
std::set< plint > blocked
Definition readPositionsBloodCells.h:66
std::set< plint > candidates
Definition readPositionsBloodCells.h:65
One cell read from a .pos file.
Definition readPositionsBloodCells.h:38
hemo::Array< T, 3 > angles
Rotation about X, Y, Z in radians, negated for the left-handed frame.
Definition readPositionsBloodCells.h:40
plint cellId
Global cell id, sequential over all types in registration order.
Definition readPositionsBloodCells.h:41
hemo::Array< T, 3 > position
Cell centre in micrometres (shifted to the pre-inlet origin if one is active).
Definition readPositionsBloodCells.h:39