Hello! I am looking to modify the Cerebral Perfusion Pressure in my pulse simulation by adding/subtracting values. There’s a class, “SECardiovascularMechanicsModification”, used to modify the cardiovascular system here: which uses a set of default examples, but also has a method to take in a modifier file.
What is the syntax of that file and what are the limits of what parameters can be modified? I haven’t been able to find any documentation or examples using a custom modifier file on the github. Thanks!
Modification of the system can be done via this action by filling out a SECardiovascularMechanicsModifiers object in the action, or a filename of a file containing the json of this object.
Thank you for replying! As a clarification, I want to add a new type of modification to the set of available modifications, and am wondering how deep into pulse I need to go to implement that?
My current thoughts are to:
Add a “has_CPP_modifier” and “get_CPP_modifier” to physiology.py
Modify my python script to set the value of my CPP modifier.
Modify CardiovascularModel.cpp after line 1238 to check for any modifiers and set our value appropriately
Before I went fully into the weeds on the model, I figured I should check if there are other modifications that will need to be made to pulse deeper in the code or if that approach is solid.
You have to either stabilize or load an engine state file before you can process any actions
If you stabilize, you will call InitializeEngine which will not return until the engine is stable
The system will need to process the action each time step. After each time step the system is reset back to its basline values, and you will need to reapply the changes to the system based on the action, to the next values.
I just meant that Cerebral Perfusion Pressure Autoregulation as the body’s attempt to keep a constant CPP despite changes in other pressures throughout the body.