hemocell
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | Private Member Functions | List of all members
hemo::HemoCellParticle Class Reference

#include <hemoCellParticle.h>

Collaboration diagram for hemo::HemoCellParticle:
Collaboration graph
[legend]

Classes

struct  serializeValues_t
 

Public Member Functions

 ~HemoCellParticle ()
 
 HemoCellParticle (const HemoCellParticle &copy)
 
 HemoCellParticle (HemoCellParticle &&other) noexcept
 
 HemoCellParticle (hemo::Array< T, 3 > position_, plint cellId_, plint vertexId_, pluint celltype_)
 
 HemoCellParticle (const serializeValues_t &sv_)
 
HemoCellParticle & operator= (const HemoCellParticle &copy)
 
HemoCellParticle & operator= (HemoCellParticle &&other) noexcept
 
HemoCellParticle * clone () const
 
void repoint_force_vectors ()
 
void advance ()
 Implements Euler integration with velocity alone.
 
int getId () const
 
plint getTag ()
 
void setTag (plint tag_)
 

Public Attributes

serializeValues_t sv
 
hemo::Array< T, 3 > force_total
 
plint tag
 
std::vector< plb::Cell< T, DESCRIPTOR > * > kernelLocations
 
std::vector< T > kernelWeights
 
hemo::Array< T, 3 > * force_volume = &sv.force
 
hemo::Array< T, 3 > * force_bending = &sv.force
 
hemo::Array< T, 3 > * force_link = &sv.force
 
hemo::Array< T, 3 > * force_area
 
hemo::Array< T, 3 > * force_visc = &sv.force
 
hemo::Array< T, 3 > * force_inner_link = &sv.force
 

Private Member Functions

void adoptForcePointers (const HemoCellParticle &from)
 

Constructor & Destructor Documentation

◆ ~HemoCellParticle()

hemo::HemoCellParticle::~HemoCellParticle ( )
inline

◆ HemoCellParticle() [1/4]

hemo::HemoCellParticle::HemoCellParticle ( const HemoCellParticle &  copy)
inline

◆ HemoCellParticle() [2/4]

hemo::HemoCellParticle::HemoCellParticle ( HemoCellParticle &&  other)
inlinenoexcept

Move: steals the kernel vectors instead of copying them (used by std::vector reallocation and swap-removal of particles).

◆ HemoCellParticle() [3/4]

hemo::HemoCellParticle::HemoCellParticle ( hemo::Array< T, 3 >  position_,
plint  cellId_,
plint  vertexId_,
pluint  celltype_ 
)
inline

◆ HemoCellParticle() [4/4]

hemo::HemoCellParticle::HemoCellParticle ( const serializeValues_t &  sv_)
inline

Member Function Documentation

◆ adoptForcePointers()

void hemo::HemoCellParticle::adoptForcePointers ( const HemoCellParticle &  from)
inlineprivate

The force-component pointers either alias this particle's own sv.force (normal operation) or point to separately allocated output arrays owned by the particle field (between separateForceVectors() and unifyForceVectors()). Copies keep that state: aliased pointers are re-aimed at the copy's own sv.force, separate arrays are shared.

◆ advance()

void hemo::HemoCellParticle::advance ( )
inline

Implements Euler integration with velocity alone.

◆ clone()

HemoCellParticle * hemo::HemoCellParticle::clone ( ) const
inline

◆ getId()

int hemo::HemoCellParticle::getId ( ) const
inline

◆ getTag()

plint hemo::HemoCellParticle::getTag ( )
inline

◆ operator=() [1/2]

HemoCellParticle & hemo::HemoCellParticle::operator= ( const HemoCellParticle &  copy)
inline

◆ operator=() [2/2]

HemoCellParticle & hemo::HemoCellParticle::operator= ( HemoCellParticle &&  other)
inlinenoexcept

◆ repoint_force_vectors()

void hemo::HemoCellParticle::repoint_force_vectors ( )
inline

◆ setTag()

void hemo::HemoCellParticle::setTag ( plint  tag_)
inline

Member Data Documentation

◆ force_area

hemo::Array<T, 3>* hemo::HemoCellParticle::force_area
Initial value:
=
serializeValues_t sv
Definition hemoCellParticle.h:68
hemo::Array< T, 3 > force
Definition hemoCellParticle.h:51

◆ force_bending

hemo::Array<T, 3>* hemo::HemoCellParticle::force_bending = &sv.force

◆ force_inner_link

hemo::Array<T, 3>* hemo::HemoCellParticle::force_inner_link = &sv.force

◆ force_link

hemo::Array<T, 3>* hemo::HemoCellParticle::force_link = &sv.force

◆ force_total

hemo::Array<T, 3> hemo::HemoCellParticle::force_total

◆ force_visc

hemo::Array<T, 3>* hemo::HemoCellParticle::force_visc = &sv.force

◆ force_volume

hemo::Array<T, 3>* hemo::HemoCellParticle::force_volume = &sv.force

◆ kernelLocations

std::vector<plb::Cell<T, DESCRIPTOR> *> hemo::HemoCellParticle::kernelLocations

◆ kernelWeights

std::vector<T> hemo::HemoCellParticle::kernelWeights

◆ sv

serializeValues_t hemo::HemoCellParticle::sv

◆ tag

plint hemo::HemoCellParticle::tag