Account for different volumes #246
Open
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.
Hi,
Not sure if it's just that I'm misinterpreting the literature, but I'm not sure the current version is accounting to the effects of the different volumes of the compartments during the
one_secondfunction.From An Overview of TCI & TIVA - A. Absalom & M Struys:
The current way appears to effectively be calculating say 5% of the concentration, rather than 5% of the total mass of propofol within the compartment.
So in order to update the change in concentration per second (e.g.$\frac{\delta x_3}{dt}$ ) you would need to calculate the total flow of mass of propofol, then dividing that by the volume of the target compartment (e.g.
self.v3).or
From what I've read the effect compartments are modeled differently, or without volume, so I think the current way works.
Apologies if I'm barking up the wrong tree, most of the papers I've read don't have enough information in them to properly implement algorithms, so haven't had much to go on.