hemocell
Loading...
Searching...
No Matches
examples Directory Reference
Directory dependency graph for examples:
examples

Directories

 capillary
 
 cell_shapes
 
 cellCollision_interior_viscosity
 
 cube
 
 curvedflow_with_preinlet
 
 flowaroundsphere
 
 microcontraction
 
 oneCellShear
 
 parachuting
 
 parallelplanes
 
 pipeflow
 
 pipeflow_with_preinlet
 
 simple
 
 stretchCell
 

Detailed Description

This directory contains example simulations using hemocell. Each directory represents a separate case study.

Compilation

When compiling hemocell without providing a specific compilation target, all examples will be compiled. Each example registers itself with a CMakeLists.txt file, as described in the next section. To compile an individual, specific example, the directory name can be passed as a compile target to CMake. To compile an example, run the following code from within the hemocell/build/ directory and replace $example by the desired example's directory name.

cmake --build . --parallel $(nproc) --target "$example"

Adding examples

To add example case $new_example:

Cell parameters

Example properties for red blood cells (RBC), white blood cells (WBC) and platelets (PLT) are given in RBC_template.xml, WBC_template, and PLT_template.xml respectively. These can be used as initial starting point to define the properties of these cells. Alternatively, you can consider the RBC.xml, WBC.xml, or PLT.xml files that are present in most examples herein.