hemocell
Loading...
Searching...
No Matches
hemoCellField.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 HEMOCELLFIELD_H
25#define HEMOCELLFIELD_H
26
27namespace hemo {
28class HemoCellField;
29}
30#include "config.h"
31#include "constant_defaults.h"
32#include "cellMechanics.h"
33#include "meshMetrics.h"
34#include "hemoCellFields.h"
35#include "hemoCellParticle.h"
36
37#include "multiBlock/multiBlockLattice3D.hh"
38#include "particles/multiParticleField3D.hh"
39
40namespace hemo {
41/*contains information about one particular cellfield, structlike*/
43 static std::vector<int> default_output;
44
45public:
46 HemoCellField(HemoCellFields & cellFields_, std::string & name_, unsigned int ctype_, int contructType);
49 //ShellModel3D<T> * model;
50 plb::TriangularSurfaceMesh<T> & getMesh();
51 std::string name;
53 std::vector<int> desiredOutputVariables;
54 plb::TriangularSurfaceMesh<T> * meshElement = 0;
55 plb::TriangleBoundary3D<T> * boundaryElement = 0;
57 unsigned char ctype;
58
59 int numVertex = 0;
60 T volume = 0;
63 unsigned int timescale = 1;
73 bool outputTriangles = false;
74 std::vector<hemo::Array<plint, 3>> triangle_list;
75 void (*kernelMethod)(plb::BlockLattice3D<T, DESCRIPTOR> &, HemoCellParticle &);
76 plb::MultiParticleField3D<HemoCellParticleField> * getParticleField3D();
77 plb::MultiBlockLattice3D<T, DESCRIPTOR> * getFluidField3D();
83 std::string getIdentifier();
84 plb::MultiParticleField3D<HemoCellParticleField> * getParticleArg();
85 void setOutputVariables(const std::vector<int> &);
87 void statistics();
88 /* position is in micrometers, so we still have to convert it*/
89 void addSingleCell(hemo::Array<T, 3> position, plint cellId);
92 bool doSolidifyMechanics = false;
93 bool doInteriorViscosity = false;
95 plb::Dynamics<T, DESCRIPTOR> * innerViscosityDynamics = 0;
96};
97}
98
99#endif /* HEMOCELLFIELD_H */
Definition cellMechanics.h:37
Definition config.h:91
Definition hemoCellField.h:42
plb::TriangularSurfaceMesh< T > & getMesh()
Definition hemoCellField.cpp:187
plb::MultiParticleField3D< HemoCellParticleField > * getParticleArg()
Definition hemoCellField.cpp:168
plb::TriangleBoundary3D< T > * boundaryElement
Definition hemoCellField.h:55
HemoCellFields & cellFields
Definition hemoCellField.h:52
void addSingleCell(hemo::Array< T, 3 > position, plint cellId)
Definition hemoCellField.cpp:156
void setOutputVariables(const std::vector< int > &)
Definition hemoCellField.cpp:125
std::vector< int > desiredOutputVariables
Definition hemoCellField.h:53
plb::Dynamics< T, DESCRIPTOR > * innerViscosityDynamics
Definition hemoCellField.h:95
static std::vector< int > default_output
Definition hemoCellField.h:43
bool doInteriorViscosity
Definition hemoCellField.h:93
~HemoCellField()
Definition hemoCellField.cpp:117
T restingCellVolume
Definition hemoCellField.h:62
plint cellsCrossingPeriodicBoundary
Definition hemoCellField.h:72
bool outputTriangles
Definition hemoCellField.h:73
plb::MultiParticleField3D< HemoCellParticleField > * getParticleField3D()
Definition hemoCellField.cpp:181
plb::TriangularSurfaceMesh< T > * meshElement
Definition hemoCellField.h:54
hemo::Array< T, 6 > getOriginalBoundingBox()
Definition hemoCellField.cpp:137
plb::MeshMetrics< T > * meshmetric
Definition hemoCellField.h:91
std::vector< hemo::Array< plint, 3 > > triangle_list
Definition hemoCellField.h:74
T minimumDistanceFromSolid
Minimum initial distance of cell vertices from solid nodes [micrometre], see HemoCell::setInitialMini...
Definition hemoCellField.h:65
Config * materialCfg
Definition hemoCellField.h:56
int getNumberOfCells_Global()
Definition hemoCellField.cpp:171
T volumeFractionOfLspPerNode
Definition hemoCellField.h:61
CellMechanics * mechanics
Definition hemoCellField.h:86
T volume
Definition hemoCellField.h:60
bool doSolidifyMechanics
Definition hemoCellField.h:92
int numVertex
Definition hemoCellField.h:59
void(* kernelMethod)(plb::BlockLattice3D< T, DESCRIPTOR > &, HemoCellParticle &)
Definition hemoCellField.h:75
plb::MultiBlockLattice3D< T, DESCRIPTOR > * getFluidField3D()
Definition hemoCellField.cpp:184
void statistics()
Definition hemoCellField.cpp:160
T interiorViscosityTau
Definition hemoCellField.h:94
plint cellsInPositionFile
Number of cells listed in <name>.pos (set by loadParticles()).
Definition hemoCellField.h:67
unsigned char ctype
Definition hemoCellField.h:57
std::string getIdentifier()
Definition hemoCellField.cpp:175
unsigned int timescale
Definition hemoCellField.h:63
std::string name
Definition hemoCellField.h:51
Definition hemoCellFields.h:54
Definition hemoCellParticle.h:44
Definition meshMetrics.h:63
double T
Definition constant_defaults.h:137
long int plint
Definition constant_defaults.h:149
Definition config.cpp:37
Definition array.h:40