PressureFlowControl

Module summary

Tags: PressureFlowControl

Pressure Flow Control by fitting ArtVen resistance and total volume.

Parameters

p0 [Pa]: float

Target pressure.

q0 [m 3/s]: float

Target mean flow

stable_threshold [-]: float

Threshhold to determine hemodynamic stability

is_active [-]: bool

activates or disactivates pressure flow control

alpha [-]: float

Exponent to control speed.

fac [-]: float

Deviation from p0, driving factor for changing blood volume.

epsilon [-]: float

Minimal hemodynamic stability needed to allow pressure flow control.

is_volume_control [-]: bool

Activates or deactivates using only volume control without pressure regulation

circulation_volume [m3]: float

Total circulation volume

target_volume [m3]: float

Target total circulation volume

Physiological background

The cardiovascular system plays a key role in regulating blood flow to tissues during changes in internal or external conditions, such as during physical activity, posture shifts, or fluid loss. This regulation relies on several interacting control mechanisms. Fast-acting responses, like the baroreflex, adjust heart rate and blood vessel tone within seconds. Slower mechanisms, including hormone systems like the renin–angiotensin–aldosterone system (RAAS) and fluid regulation by the kidneys, help restore blood volume and influence vascular resistance over longer periods of time. This module is designed to lump these different control mechanisms into a single global pressure–flow regulation module. The module maintains mean arterial pressure and cardiac output by adapting systemic resistance and circulating blood volume. Besides the previously described intended use, it can also be used to regulate pressure in any Node object and flow in any Connector object, or to control the total circulating blood volume.

Module Behavior

Depending on the chosen settings, there are currently three different implemented model behaviors:

  1. Traditional pressure flow regulation (default mode)

  2. Volume regulation

  3. No regulation, only stability check

All options are implemented with a hemodynamic stability check. The hemodynamic stability check is optional and is used when you run the model with model.run(stable=True).

1. Pressure Flow regulation

If activated, Pressure Flow Control is called at the end of every beat and simultaneously regulates pressure and flow. An example of this behavior can be found in this tutorial.

Facpfc is calculated as the relative deviation of the mean connector flow (q̅) and mean node pressure (p̅) from their reference values (q₀ and p₀) respectively, modulated by the exponent α:

(1)\[fac_pfc = \left(\frac{\bar{q}}{q_0}\right)^{\alpha} \cdot \left(\frac{\bar{p}}{p_0}\right)^{\alpha}\]

Typically, α < 1 is used to dampen the system response. \(fac_pfc\) is used to update the proximal and distal flow in the linked connector elements:

(2)\[q_{connector,prox} = -q_{connector} \cdot fac_pfc\]
(3)\[q_{connector,dist} = \frac{q_{connector}}{fac_pfc}\]

This manipulation of the proximal and distal flow results in a change in total blood volume. The final step is to update the linked resistance based on the relative deviation of both the pressure and the flow from their target values. The resistance is updated by changing the p0 value of the ArtVen module:

(4)\[p_{0,ArtVen,new} = \frac{p_{0,ArtVen,old}}{\left(\frac{\bar{p}}{p_0}\right)^{\alpha} \cdot \left(\frac{\bar{q}}{q_0}\right)^{\alpha}}\]

1.1 Improved stability by de activation of pressure flow control

To improve the hemodynamic stability of the model, pressure flow control is only performed when the flow error e_q,std in that beat is lower than the threshold value (ε). When it is higher, the circulation volume and peripheral resistance are not updated despite is_active = True.

(5)\[e_{q,std} = \frac{\sqrt{\frac{1}{N}\sum_{i=1}^N (q_i - q_i^{prev})^2}}{\bar{q}}\]

This formula calculates the normalized root mean square difference between the flow vector of the current time step and the flow vector of the previous time step, where N is the number of valves.

1.2 Check for hemodynamic stability

First compute the total flow error:

(6)\[e_{flow} = \sqrt{e_{q,std}^2 + \left(\frac{\bar{q}}{q_0} - 1\right)^2}\]

Then the model is stable if:

(7)\[\left(\frac{fac_{pfc,previous} - fac_{pfc}}{0.01}\right)^2 + \sqrt{e_{flow}^2 + (fac_{pfc}-1)^2} < stable\_threshold\]

2. Volume regulation

The PressureFlowControl module can regulate blood volume without regulating systemic resistance. This option is useful in preload experiments. It is enabled when is_active = True and is_volume_control = True.

It regulates the total circulating blood volume (V) to match the target volume (V₀). fac_pfc is computed as:

(8)\[fac_pfc = \left(\frac{circulation\_volume}{target\_volume}\right)^{\alpha}\]

fac_pfc controls the proximal and distal connector flows as in Equation 2 and Equation 3.

2.1 Check for hemodynamic stability

When volume regulation is activated, stability is determined only from e_q,std. The model is stable if:

(9)\[\left(\frac{fac_{pfc} - fac_{pfc,previous}}{0.01}\right)^2 + \sqrt{e_{std}^2 + (fac_{pfc}-1)^2} < stable\_threshold\]

3. No regulation, only stability check

When neither pressure flow regulation nor volume regulation is active, the module only checks for hemodynamic stability.

3.1 Check for hemodynamic stability

If is_active = False or if only volume control is used (is_volume_control = True and is_active = True), stability is determined only from e_q,std. The model is stable if:

(10)\[e_{std}^2 < stable\_threshold\]

Linking Objects

This module links to several other objects. Between brackets the traditional linking objects for global homeostatic regulation are given, but you may select different linking objects yourself.

  • node_pressure: Node & Cavity from which the pressure is read (e.g. aorta)

  • connector_return: Connector from which cumulative flow is read (e.g. the vein to right atrium valve)

  • artven_resistance: ArtVen element in which the resistance is changed (e.g. systemic resistance)

  • link_fac_pfc: List of Connector objects in which the flow is manipulated (list of ArtVen objects)

  • valve_flow_vec: List of Connector objects to determine hemodynamic stability within a beat (list of valve objects)

Do you want to start using the pressure flow module? Also take a look at the Pressure Flow Control Tutorial.

circadapt.components.global_functions.PressureFlowControl(...)

Pressure Flow Control by fitting ArtVen resistance and total volume.