hemocell
Loading...
Searching...
No Matches
cellMechanics.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_CELLMECHANICS
25#define HEMO_CELLMECHANICS
26namespace hemo {
27class CellMechanics;
28}
29
31#include "hemoCellParticle.h"
32#include "commonCellConstants.h"
33#include "meshMetrics.h"
34#include "constantConversion.h"
35
36namespace hemo {
38public:
41
42 CellMechanics(HemoCellField & cellfield, Config & modelCfg_)
43 : cellConstants(CommonCellConstants::CommonCellConstantsConstructor(cellfield, modelCfg_)), cfg(modelCfg_) {}
44 virtual ~CellMechanics(){};
45
46 virtual void ParticleMechanics(std::map<plint, std::vector<HemoCellParticle *>> &, const std::map<plint, bool> &,
47 pluint ctype) = 0;
48 virtual void statistics() = 0;
49 virtual void solidifyMechanics(const std::map<plint, std::vector<int>> &, std::vector<HemoCellParticle> &,
50 plb::BlockLattice3D<T, DESCRIPTOR> *, plb::BlockLattice3D<T, CEPAC_DESCRIPTOR> *,
51 pluint ctype, HemoCellParticleField &) {};
52
53
55 T kLink = cfg["MaterialModel"]["kLink"].read<T>();
56 T persistenceLengthFine = 7.5e-9; // In [m] -> this is the biological value.
57 T plc =
58 persistenceLengthFine /
60 dx; //* sqrt((meshmetric.getNumVertices()-2.0) / (23867-2.0)); // <- Constant from the Karniadakis group. We don't use this.
61 return kLink * param::kBT_lbm / plc;
62 };
63
65 T eqLength = 5e-7 / param::dx;
66 return cfg["MaterialModel"]["kBend"].read<T>() * param::kBT_lbm / eqLength;
67 };
68
70 T kVolume = cfg["MaterialModel"]["kVolume"].read<T>();
71 T eqLength = 5e-7 / param::dx;
72 T NfacesScaling = 1280.0 / cellConstants.triangle_list.size();
73 return kVolume * NfacesScaling * param::kBT_lbm / eqLength;
74 };
75
77 T kArea = cfg["MaterialModel"]["kArea"].read<T>();
78 T eqLength = 5e-7 / param::dx;
79 T NfacesScaling = 1280.0 / cellConstants.triangle_list.size();
80 return kArea * NfacesScaling * param::kBT_lbm / (eqLength);
81 };
82
84 return cfg["MaterialModel"]["eta_m"].read<T>() * param::dx / param::dt / param::df;
85 };
86};
87}
88#endif
Definition cellMechanics.h:37
T calculate_kVolume(Config &cfg, plb::MeshMetrics< T > &meshmetric)
Definition cellMechanics.h:69
CellMechanics(HemoCellField &cellfield, Config &modelCfg_)
Definition cellMechanics.h:42
virtual void solidifyMechanics(const std::map< plint, std::vector< int > > &, std::vector< HemoCellParticle > &, plb::BlockLattice3D< T, DESCRIPTOR > *, plb::BlockLattice3D< T, CEPAC_DESCRIPTOR > *, pluint ctype, HemoCellParticleField &)
Definition cellMechanics.h:49
const CommonCellConstants cellConstants
Definition cellMechanics.h:39
T calculate_kLink(Config &cfg, plb::MeshMetrics< T > &meshmetric)
Definition cellMechanics.h:54
virtual ~CellMechanics()
Definition cellMechanics.h:44
virtual void ParticleMechanics(std::map< plint, std::vector< HemoCellParticle * > > &, const std::map< plint, bool > &, pluint ctype)=0
virtual void statistics()=0
T calculate_kArea(Config &cfg, plb::MeshMetrics< T > &meshmetric)
Definition cellMechanics.h:76
T calculate_kBend(Config &cfg, plb::MeshMetrics< T > &meshmetric)
Definition cellMechanics.h:64
T calculate_etaM(Config &cfg)
Definition cellMechanics.h:83
Config & cfg
Definition cellMechanics.h:40
Definition commonCellConstants.h:39
const std::vector< hemo::Array< plint, 3 > > triangle_list
Definition commonCellConstants.h:59
Definition config.h:91
Definition hemoCellField.h:42
Definition hemoCellParticleField.h:39
static T kBT_lbm
Definition constantConversion.h:38
static T dt
Definition constantConversion.h:35
static T df
Definition constantConversion.h:35
static T dx
Definition constantConversion.h:35
Definition meshMetrics.h:63
double T
Definition constant_defaults.h:137
long int plint
Definition constant_defaults.h:149
long unsigned int pluint
Definition constant_defaults.h:152
Definition config.cpp:37