Source code for monai_physio.aorta.flow_parameters

"""Parameters of aortic blood-flow simulation.

:class:`AortaFlowParameters` holds the per-patient inputs of a simulation -
the patient's systolic and diastolic blood pressure (for example a cuff
measurement) and heart rate - together with the inflow smoothing, the blood
properties, the outlet three-element Windkessel totals and the aortic wall
properties of the BloodFlow experiments (``experiments/BloodFlow-*-Warp``).
It holds values only; :class:`AortaProcessFlow` turns them and the images
into the inflow, the outlet Windkessels and their calibration to the input
pressures.

The flow workflows calibrate the outlets to the input pressures by default;
only the fluid-structure (FSI) workflow uses the wall fields.
"""

from __future__ import annotations

from dataclasses import dataclass, field

from ..process_flow_boundaries import ProcessFlowBoundaries


[docs] @dataclass class AortaFlowParameters: """Per-patient inputs and blood, outlet and wall parameters of aortic flow. **Per-patient inputs.** ``systolic_pressure_mmhg``, ``diastolic_pressure_mmhg`` and ``heart_rate_bpm`` describe the patient being simulated - for example a cuff measurement taken with the CT - and are meant to be set by the user. Their defaults are example patient inputs (112/78 mmHg, the root pressures of ``experiments/BloodFlow-1D-Rigid-Warp``), not simulation outputs. The simulation does not predict these pressures: :meth:`AortaProcessFlow.calibrated` sets the outlet resistance and compliance so that the patient's inflow reproduces them as the systolic and diastolic pressure of a whole-body model. **Outlet totals.** ``total_resistance_pa_s_m3``, ``total_compliance_m3_pa`` and ``initial_pressure_pa`` may instead be set directly; :meth:`AortaProcessFlow.calibrated` replaces them in its copy. Their defaults are the values the rigid BloodFlow experiments tuned for their inflow. """ # Per-patient inputs; these defaults are an example patient. #: Patient heart rate; the inflow series is retimed to it. Adult rest #: 60-100 bpm. heart_rate_bpm: float = 60.0 #: Patient systolic arterial pressure, a user input the outlets are #: calibrated to. Typical adult ~120 mmHg. systolic_pressure_mmhg: float = 112.0 #: Patient diastolic arterial pressure, a user input the outlets are #: calibrated to. Typical adult ~80 mmHg. diastolic_pressure_mmhg: float = 78.0 #: Standard deviation of the periodic Gaussian that smooths the interval #: inflow staircase. inflow_smoothing_s: float = 0.03 #: Total outlet resistance of all Windkessels in parallel. Adult ~1.65e8 #: (93 mmHg mean at 4.5 L/min); a lower cardiac output needs more for the #: same pressures. total_resistance_pa_s_m3: float = 3.33e8 #: Summed outlet compliance. Adult total arterial compliance ~1-2e-8 #: m^3/Pa (1-2 mL/mmHg). total_compliance_m3_pa: float = 6.8e-9 #: Fraction of each outlet resistance that is proximal. Adult #: characteristic impedance 5-10% of R. proximal_fraction: float = 0.06 #: Fraction of the inflow leaving each named outlet; renormalized over the #: outlets present in a model. Assumed splits; adult arch branches take #: roughly 30% of cardiac output in total. flow_fractions: dict[str, float] = field( default_factory=lambda: {"distal": 0.70, "bct": 0.17, "lsa": 0.08, "lcca": 0.05} ) #: Initial Windkessel capacitor pressure. Adult diastolic ~80 mmHg. initial_pressure_pa: float = 80.0 * ProcessFlowBoundaries.MMHG_PA #: Blood density. Adult blood 1050-1060 kg/m^3. density_kg_m3: float = 1060.0 #: Blood dynamic viscosity (Newtonian). Adult blood 3-4 mPa s at high #: shear. viscosity_pa_s: float = 0.004 #: Wall Young's modulus (FSI only). Adult aorta ~0.3-1 MPa, stiffer with #: age. young_modulus_pa: float = 1.0e6 #: Wall Poisson ratio (FSI only). The arterial wall is nearly #: incompressible (~0.5). poisson_ratio: float = 0.45 #: Wall thickness (FSI only). Adult thoracic aorta ~2 mm. wall_thickness_mm: float = 1.5 #: Stiffness of the elastic support of the outer wall surface (FSI only). #: Perivascular support, not measured. tether_stiffness_pa_m: float = 5.0e5 @property def mean_pressure_mmhg(self) -> float: """Mean arterial pressure of the input pressures. The clinical estimate ``diastolic + (systolic - diastolic) / 3``, reported for reference; :meth:`AortaProcessFlow.calibrated` starts its fit from it but fits the systolic and diastolic pressures. """ pulse = self.systolic_pressure_mmhg - self.diastolic_pressure_mmhg return self.diastolic_pressure_mmhg + pulse / 3.0