Randomized Initial-Condition and New IO Function #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request contains 2 new features:
The
randomized_case
directory contains code and related input files for randomly generating an initial condition of Red Blood Cells in a tube and then simulating them. Ininitcond_random.F90
, parameters are specified for the tube's dimensions, hematocrit, and number of blood cells. Aftermake
, runninginitcond_random
generatesrestart.LATEST.dat
in theD/
directory. From here, we can simulate like usual by running thetube
file.The
common/ModIO.F90
library code has been modified to add a newWriteManyRBCsByType
subroutine. This subroutine takes in thecelltype
as the parameter (1 = RBC, 2 = WBC, 3 = Sickle Cell in provided example), in addition to a filename and the blood cells. Then, it will write the data out to a file, but only for the cells of the specified celltype.Note that since both of these changes are additions, not modifications, they should not impact any previous work or file formats. So, pulling this new change should not interfere with current progress.