24#ifndef SURFACE_PARTICLE_3D_H
25#define SURFACE_PARTICLE_3D_H
27class HemoCellParticle;
30#include "core/cell.hh"
53#if HEMOCELL_MATERIAL_INTEGRATION == 2
63#ifdef SOLIDIFY_MECHANICS
72#ifdef INTERIOR_VISCOSITY
75 std::vector<hemo::Array<plint, 3>> kernelCoordinates;
113#ifdef INTERIOR_VISCOSITY
114 normalDirection(copy.normalDirection), kernelCoordinates(copy.kernelCoordinates),
124#ifdef INTERIOR_VISCOSITY
125 normalDirection(other.normalDirection), kernelCoordinates(std::move(other.kernelCoordinates)),
134 static_assert(std::is_trivially_copyable<serializeValues_t>::value,
"sv is transferred as raw bytes");
135 std::memset(
static_cast<void *
>(&
sv), 0,
sizeof(
sv));
144#if HEMOCELL_MATERIAL_INTEGRATION == 2
145 sv.vPrevious = {0., 0., 0.};
147#ifdef SOLIDIFY_MECHANICS
151#ifdef INTERIOR_VISCOSITY
152 normalDirection = {0., 0., 0.};
156 if (vertexId_ > UINT16_MAX) {
fatal(
"A cell can have at most ", UINT16_MAX + 1,
" vertices."); }
166 if (
this == ©) {
return *
this; }
172#ifdef INTERIOR_VISCOSITY
173 normalDirection = copy.normalDirection;
174 kernelCoordinates = copy.kernelCoordinates;
181 if (
this == &other) {
return *
this; }
187#ifdef INTERIOR_VISCOSITY
188 normalDirection = other.normalDirection;
189 kernelCoordinates = std::move(other.kernelCoordinates);
215#if HEMOCELL_MATERIAL_INTEGRATION == 1
218#elif HEMOCELL_MATERIAL_INTEGRATION == 2
Definition hemoCellParticle.h:44
hemo::Array< T, 3 > * force_area
Definition hemoCellParticle.h:84
hemo::Array< T, 3 > * force_inner_link
Definition hemoCellParticle.h:87
HemoCellParticle & operator=(HemoCellParticle &&other) noexcept
Definition hemoCellParticle.h:180
hemo::Array< T, 3 > * force_visc
Definition hemoCellParticle.h:86
void advance()
Implements Euler integration with velocity alone.
Definition hemoCellParticle.h:210
std::vector< T > kernelWeights
Definition hemoCellParticle.h:79
HemoCellParticle(hemo::Array< T, 3 > position_, plint cellId_, plint vertexId_, pluint celltype_)
Definition hemoCellParticle.h:131
int getId() const
Definition hemoCellParticle.h:227
hemo::Array< T, 3 > force_total
Definition hemoCellParticle.h:70
plint tag
Definition hemoCellParticle.h:71
HemoCellParticle(HemoCellParticle &&other) noexcept
Definition hemoCellParticle.h:122
serializeValues_t sv
Definition hemoCellParticle.h:68
void setTag(plint tag_)
Definition hemoCellParticle.h:229
HemoCellParticle & operator=(const HemoCellParticle ©)
Definition hemoCellParticle.h:165
std::vector< plb::Cell< T, DESCRIPTOR > * > kernelLocations
Definition hemoCellParticle.h:78
hemo::Array< T, 3 > * force_bending
Definition hemoCellParticle.h:82
hemo::Array< T, 3 > * force_volume
Definition hemoCellParticle.h:81
plint getTag()
Definition hemoCellParticle.h:228
HemoCellParticle(const serializeValues_t &sv_)
Definition hemoCellParticle.h:159
~HemoCellParticle()
Definition hemoCellParticle.h:110
hemo::Array< T, 3 > * force_link
Definition hemoCellParticle.h:83
HemoCellParticle(const HemoCellParticle ©)
Definition hemoCellParticle.h:111
void adoptForcePointers(const HemoCellParticle &from)
Definition hemoCellParticle.h:96
void repoint_force_vectors()
Definition hemoCellParticle.h:200
HemoCellParticle * clone() const
Definition hemoCellParticle.h:195
long int plint
Definition constant_defaults.h:149
long unsigned int pluint
Definition constant_defaults.h:152
#define PARTICLE_ID
Definition hemoCellParticle.h:39
void fatal(const std::string &message)
Report a fatal error and end the whole MPI job.
Definition error.cpp:59
Definition hemoCellParticle.h:48
hemo::Array< T, 3 > v
Definition hemoCellParticle.h:49
unsigned char celltype
Definition hemoCellParticle.h:61
hemo::Array< T, 3 > force_repulsion
Definition hemoCellParticle.h:52
hemo::Array< T, 3 > force
Definition hemoCellParticle.h:51
unsigned int restime
Definition hemoCellParticle.h:59
uint16_t vertexId
Definition hemoCellParticle.h:58
hemo::Array< T, 3 > position
Definition hemoCellParticle.h:50
plint cellId
Definition hemoCellParticle.h:56