comp-physics / RBC3D

3D Spectral boundary integral solver for cell-scale blood flow
MIT License
7 stars 3 forks source link

Add Sickle Cell Model and Related Tools to RBC3D Simulation #1

Closed smullangi3 closed 1 year ago

smullangi3 commented 1 year ago

This pull-request adds an input file SickleCell.dat, as well as functions in ModIO.F90 for reading the input file into a cell for simulation.

ModRBC.F90 modifications include:

Tube.F90 also contains modifications to include the Sickle cell as celltype #3, where mechanical properties such as shear and bending modulus are set to 3x and 4x higher than a conventional healthy RBC respectively.

As seen in Initcond.F90, we can create a Sickle Cell in a simulation by replacing: call Rbc_Create(rbc, nlat0, dealias) call RBC_MakeBiconcave(rbc, radEqv, xc) with: call ImportReadRbc('Input/SickleCell.dat', rbc, xc) wherever we want a Sickle Cell instead of a Biconcave RBC.

Currently, Initcond sets up a simulation of 8 cells in single file inside a tube, where cells alternate between healthy and sickle.

This code has been tested through simulations, comprising of:

(code commits are a bit all-over, i recommend probably doing a squash merge once this goes in)