Open-access A closed-loop cardiovascular model as a teaching framework for physics, mathematical modeling, and scientific computing

Um modelo cardiovascular em malha fechada como ambiente didático para física, modelagem matemática e computação científica

Abstract

We present a closed-loop lumped-parameter cardiovascular model implemented in Python and organized as a potential teaching framework for computational physics, biophysics, and mathematical modeling in higher education. Rather than proposing a new physiological model, the work reorganizes a classical zero-dimensional (0D) formulation around the electrical analogy between hemodynamic variables and resistor–inductor–capacitor (RLC) circuits. Circuit constitutive relations and Kirchhoff’s laws yield a state-space system of twelve coupled nonlinear ordinary differential equations, integrated with an adaptive Runge–Kutta integration scheme. The modular, object-oriented implementation separates parameters, governing equations, integration, post-processing, and visualization, supporting transparent and reproducible computational investigations. Numerical consistency was evaluated through a 100-cycle baseline simulation, quantitative comparison of cycles 99 and 100, and verification of closed-loop blood-volume conservation. Controlled variations in systemic resistance and aortic-valve properties show how localized parameter changes reorganize pressures, flow rates, ventricular volumes, cardiac output, and pressure–volume loops. The converged responses establish the framework’s physical interpretability, numerical consistency, and reproducibility, providing a coherent setting in which physical assumptions connect directly to observable numerical behavior and guided computational exploration. Because no classroom intervention or formal assessment of learning outcomes was conducted, the educational contribution is presented as a technically developed, testable proposal whose pedagogical effectiveness remains to be evaluated empirically.

Keywords:
Closed-loop lumped-parameter cardiovascular model; Physics education; Computational biophysics; Mathematical modeling; Scientific computing; Numerical simulation

Resumo

Apresenta-se um modelo cardiovascular zero-dimensional (0D) de parâmetros concentrados em malha fechada, implementado em Python e concebido como proposta didática para física computacional, biofísica e modelagem matemática no ensino superior. Sem propor novidade fisiológica, o trabalho reorganiza uma formulação clássica a partir da analogia elétrica entre variáveis hemodinâmicas e circuitos resistor–indutor–capacitor (RLC). Relações constitutivas e leis de Kirchhoff conduzem a doze equações diferenciais ordinárias não lineares acopladas, integradas por método adaptativo de Runge–Kutta. A implementação modular e orientada a objetos separa parâmetros, equações governantes, integração, pós-processamento e visualização, favorecendo investigações transparentes e reprodutíveis. A consistência numérica foi avaliada mediante simulação basal de 100 ciclos, comparação quantitativa dos ciclos 99 e 100 e verificação da conservação do volume sanguíneo. Variações controladas da resistência sistêmica e das propriedades da válvula aórtica mostram como alterações localizadas reorganizam pressões, vazões, volumes ventriculares, débito cardíaco e laços pressão–volume. As respostas convergidas estabelecem a interpretabilidade física, a consistência numérica e a reprodutibilidade da estrutura, conectando hipóteses físicas ao comportamento numérico observável e à exploração computacional orientada. Como não houve intervenção em sala de aula nem avaliação formal da aprendizagem, a contribuição educacional é apresentada como proposta tecnicamente desenvolvida e testável, cuja eficácia pedagógica ainda requer posterior avaliação empírica.

Palavras-chave:
Modelo cardiovascular de parâmetros concentrados em circuito fechado; Ensino de Física; Biofísica computacional; Modelagem matemática; Computação científica; Simulação numérica

1. Introduction

Computational modeling offers a common setting in which physical interpretation, mathematical formulation, and numerical implementation can be examined together. In physics education, modeling and simulation have been discussed as resources for connecting theoretical constructs to numerical results and for coordinating mathematical, graphical, and computational representations [1, 2]. Related discussions in engineering education emphasize computational thinking and modeling as relevant disciplinary competencies [3, 4]. Their instructional value, however, is not automatic: the assumptions, simplifications, representations, and domains of validity of the underlying models must remain explicit [5]. Under these conditions, a dynamical model may serve as an object of analysis through which conservation principles, analogies between physical domains, differential equations, and numerical methods are investigated within a coherent sequence.

The cardiovascular system provides an interdisciplinary example for this purpose. At the lumped-parameter level, its global hemodynamic behavior can be represented through relations among pressure, flow rate, vascular resistance, compliance, and inertance. Under the corresponding electrical analogy, pressure is associated with voltage, flow rate with electric current, vascular resistance with electrical resistance, compliance with capacitance, and inertance with inductance. These correspondences permit the circulation to be formulated using circuit elements and Kirchhoff’s laws, thereby connecting a biomedical dynamical system to concepts commonly addressed in physics and engineering courses.

Lumped-parameter cardiovascular modeling belongs to a well-established tradition ranging from Windkessel descriptions of arterial loading to closed-loop zero-dimensional (0D) representations of the systemic and pulmonary circulations [6, 7, 8]. Such models have been employed in physiological and biomedical studies to investigate pressure–volume interactions, ventricular elastance, valve behavior, and global hemodynamic responses under baseline and altered conditions [9, 10, 11, 12]. The present work adopts this established model class as its technical basis. Its contribution lies not in introducing a new physiological formulation, but in reorganizing a consolidated model as a transparent, modular, and reproducible computational framework that preserves traceability from physical assumptions to numerical outputs.

Against this background, the main objective of this article is to present, verify, and discuss a classical closed-loop cardiovascular model implemented in Python as a potential teaching framework for examining electrical analogies, state-space formulation, and numerical integration in higher education. The implementation uses the Python scientific computing ecosystem [13] and the solve_ivp routine from SciPy for numerical integration [14]. The emphasis is therefore on making the progression from physical assumptions to governing equations, computational implementation, and numerical observables explicit and reproducible.

The intended educational role of the framework follows from two complementary forms of traceability. At the physical level, resistance represents dissipative pressure losses, compliance describes volume storage under pressure variation, and inertance accounts for the momentum associated with accelerating blood flow. The state variables likewise correspond to physically interpretable quantities, including pressures, flow rates, and ventricular volumes. At the computational level, the modular and object-oriented architecture [15, 16] separates parameter definition, governing equations, numerical integration, post-processing, and visualization. This organization allows the source code to be inspected, modified, and extended according to specific instructional objectives. In the examples reported here, changes in systemic resistance and aortic valve properties are treated as controlled computational perturbations, and their effects are examined through pressure signals, flow rates, ventricular volumes, and pressure–volume loops. These features may support guided numerical investigations in courses such as Computational Physics, Biophysics, Mathematical Modeling, and Numerical Methods.

The accompanying Supplementary Material is an integral component of this proposal. It documents the organization and execution of the Python package, maps the governing equations onto their computational implementation, describes reproducibility and numerical-verification procedures, and presents six guided computational experiments. It also includes a technical protocol for local sensitivity analysis and preliminary screening of practical identifiability. The material is organized so that instructors may select and adapt individual components according to the scope and learning objectives of a course.

The present study does not report a controlled classroom intervention or a formal assessment of learning outcomes. Accordingly, it establishes the technical consistency, interpretability, and reproducibility of the framework, whereas its educational effectiveness remains to be evaluated empirically.

The remainder of the paper is organized as follows. Section 2 develops the physical foundations, electrical analog formulation, state-space representation, and computational architecture of the model, including ventricular dynamics, valve laws, and the systemic and pulmonary circuits. Section 3 reports the numerical verification of the baseline condition and presents parameter-variation studies interpreted as controlled computational experiments. Section 4 discusses the technical scope of the results, sensitivity and identifiability considerations, potential educational uses, and model limitations. Finally, Section 5 summarizes the principal contributions and outlines directions for subsequent technical and classroom-based evaluation.

2. Physical Foundations and Lumped-parameter Formulation

The cardiovascular system is represented here as a coupled dynamical system whose global hemodynamic behavior is described by a closed-loop lumped-parameter model. Under the electrical analogy, pressures, volumetric flow rates, stored blood volumes, vascular compliances, hydraulic inertances, and viscous pressure losses correspond to voltages, electric currents, electric charge, capacitances, inductances, and electrical resistances, respectively. This correspondence is not introduced as an auxiliary illustration or as a topic separate from the cardiovascular formulation. Together with the constitutive relations of the resistor–inductor–capacitor (RLC) elements and Kirchhoff’s balance laws, it provides the formal basis from which the governing equations are derived and through which each term retains a physical interpretation.

The vascular representation draws on the established Windkessel and lumped-parameter tradition [6, 17, 7]. The specific closed-loop topology comprises two ventricular compartments governed by time-varying elastance, two combined venous–atrial pressure compartments, systemic and pulmonary RLC subnetworks, and four valve branches. This configuration follows the lineage of the closed-loop model introduced by Avanzolini et al. and subsequently expressed in state-space and object-oriented computational formulations [18, 19, 20]. The same formulation therefore serves two complementary purposes: it provides a compact representation of global cardiovascular dynamics and establishes a traceable route from physical balance laws to a system of ordinary differential equations and, subsequently, to executable Python code.

Figure 1 summarizes this three-stage modeling process. The first layer identifies the physiological subsystems and their closed-loop coupling. The second expresses these subsystems as an equivalent RLC network containing time-dependent ventricular sources and valve laws. The third maps the resulting state equations onto a modular computational architecture. The figure should therefore be read as a representation of the modeling pathway from physiological structure to computational implementation, rather than as an anatomical diagram.

Figure 1
Three-layer modeling pathway from physiological structure to computational implementation. Layer 1 represents the closed-loop coupling of the left heart, systemic circulation, right heart, and pulmonary circulation. Layer 2 expresses these subsystems as systemic and pulmonary RLC networks coupled to time-varying ventricular elastance and diode-valve laws. Layer 3 maps the resulting state equations onto the modular cardiosim Python architecture. The dashed return arrow closes the global circulation loop. The two vertical bridges, labeled electrical analogy and scientific computing, identify the transformations from physiological structure to the mathematical model and from the governing equations to executable code.

The following subsections develop this construction sequentially, from the electrical analogy and RLC balance laws, through the ventricular and valve dynamics and the systemic and pulmonary subnetworks, to the complete state-space system integrated in the numerical experiments.

2.1. Electrical analogy and physical interpretation

The electrical analogy is defined through a term-by-term correspondence among effort, flow, and storage variables in the two physical domains. Pressure difference corresponds to voltage difference, volumetric flow rate to electric current, and stored blood volume to electric charge. Hydraulic resistance, compliance, and inertance correspond to electrical resistance, capacitance, and inductance, respectively. Ventricular action is represented by a time-dependent, elastance-based pressure-generating element. Under baseline conditions, the cardiac valves behave as ideal diodes that enforce unidirectional flow.

This mapping preserves both the local constitutive relations and the global balance structure of the network. For a linear hydraulic resistance, the pressure drop is related to the branch flow rate by

Δ ⁢ P = R ⁢ Q ,

which is the hemodynamic counterpart of Ohm’s law. A compliant vascular compartment stores blood volume according to

V b = C h ⁢ P ,

where Vb denotes the compliant volume measured relative to the selected reference state and Ch is the hydraulic compliance. For constant compliance, differentiation gives

Q net = d ⁢ V b d ⁢ t = C h ⁢ d ⁢ P d ⁢ t ,

where Qnet is the difference between the total inflow and outflow of the compartment. Finally, the pressure difference required to accelerate a blood column with hydraulic inertance Lh is

Δ ⁢ P = L h ⁢ d ⁢ Q d ⁢ t .

Taken together, these element laws assign distinct physical roles to the model parameters: resistance represents viscous dissipation, compliance describes elastic volume storage in distensible vessels, and inertance represents the pressure required to accelerate a finite blood column. At the network level, Kirchhoff’s current law enforces volume conservation at each compliant compartment, such that the net inflow equals the rate of stored-volume variation. Kirchhoff’s voltage law provides the corresponding pressure balance along each closed path. The electrical representation therefore organizes both the derivation of the state equations and the physical interpretation of the terms appearing in them.

Figure 2 summarizes the local correspondence between the hemodynamic and electrical descriptions.

Figure 2
Term-by-term correspondence between electrical and hydraulic resistance elements. Voltage drop, electric current, and electrical resistance correspond to pressure drop, volumetric flow rate, and hydraulic resistance, respectively. Accordingly, Ohm’s law and the linear pressure–flow relation have the same mathematical structure, providing a representative local example of the electrical analogy used to construct the cardiovascular model.

These local element correspondences are assembled into a single closed-loop cardiovascular network, with the systemic and pulmonary circulations connected in series. Each ventricle is represented as an active pumping compartment whose pressure depends on a prescribed activation function, chamber volume, time-varying elastance, and myocardial resistance. Atrial storage is incorporated into the compliant venous compartments, while four valve branches connect the atrial, ventricular, and vascular nodes and regulate the transvalvular flows.

The complete network topology adopted in the numerical simulations is shown in Figure 3.

Figure 3
Complete RLC electrical analog of the closed-loop cardiovascular model used in the numerical simulations. The active left and right ventricular elements are coupled to the systemic and pulmonary vascular subnetworks through four valve branches.

The model contains twelve state variables representing nodal pressures, intercompartmental flow rates, and ventricular volumes. Their meanings in the electrical and cardiovascular domains are listed in Table 1. The pulmonary labels follow the actual network topology: x7 is the proximal pulmonary arterial pressure immediately downstream of the pulmonary valve, whereas x9 is the distal pulmonary vascular pressure.

Table 1
State variables and their corresponding meanings in the electrical analogy and cardiovascular model.

2.2. Basic RLC relations and Kirchhoff’s laws

The electrical network is constructed from three elementary two-terminal components: resistors, capacitors, and inductors. Using the passive sign convention, with v⁢(t) denoting the voltage drop in the direction of positive current i⁢(t), the constitutive relation for a resistor is Ohm’s law,

(1) v ⁢ ( t ) = R ⁢ i ⁢ ( t ) ,

where R is the electrical resistance. For a capacitor with constant capacitance C, the stored charge satisfies

(2) q ⁢ ( t ) = C ⁢ v ⁢ ( t ) .

Since i⁢(t)=d⁢q/d⁢t, differentiation of Eq. (2) gives

(3) i ⁢ ( t ) = C ⁢ d ⁢ v ⁢ ( t ) d ⁢ t .

For an ideal inductor with inductance L, the voltage drop is proportional to the rate of current variation,

(4) v ⁢ ( t ) = L ⁢ d ⁢ i ⁢ ( t ) d ⁢ t .

The constitutive relations determine the behavior of the individual elements, whereas their interconnection is governed by two network balance laws:

  • i.

    Kirchhoff’s current law (KCL). The algebraic sum of the currents at each node is zero. In the cardiovascular analog, this law expresses blood-volume conservation: at a compliant compartment, the difference between total inflow and total outflow equals the rate of stored-volume variation,

∑ Q in − ∑ Q out = d ⁢ V b d ⁢ t = C h ⁢ d ⁢ P d ⁢ t .
  • ii.

    Kirchhoff’s voltage law (KVL). The algebraic sum of the voltage drops around any closed path is zero. In the cardiovascular analog, this law becomes the corresponding pressure-balance relation among the resistive, compliant, inertial, ventricular, and valve elements along that path.

Combining the element relations in Eqs. (1)–(4) with the KCL and KVL constraints yields the coupled first-order differential equations presented in Section 2.5. Box 1 develops this transition explicitly for the aortic compliant node, from the local volume balance to the corresponding state equation and its computational implementation.

2.3. Ventricular model

Each ventricle is represented as an active pressure-generating compartment whose intracavitary pressure depends on the prescribed cardiac activation phase, chamber volume, and instantaneous outlet flow. In the electrical analog, the ventricular element consists of an isovolumetric pressure source connected in series with a time-varying elastance and a myocardial resistance [18, 20]. These components represent, respectively, active pressure generation, elastic pressure–volume coupling, and reduced-order viscous losses within the myocardium. This decomposition preserves the principal mechanisms governing ventricular pressure while retaining a compact formulation suitable for integration into the closed-loop network.

Figure 4 shows the electrical analogs adopted for the left ventricle (LV) and right ventricle (RV), including their inlet and outlet valve branches.

Figure 4
Electrical analogs of the left ventricle (a) and right ventricle (b). Each ventricular compartment comprises a prescribed isovolumetric pressure source, a time-varying elastance, and a myocardial resistance, representing active pressure generation, elastic pressure–volume coupling, and reduced-order viscous losses, respectively. The inlet and outlet valve branches couple each ventricle to the corresponding atrial and vascular nodes.

Let tc denote the cardiac period and

t m = mod ⁡ ( t , t c ) , 0 ≤ t m < t c ,

the elapsed time within the current cardiac cycle. The systolic duration is prescribed as

t s = 0.16 ⁢ s + 0.3 ⁢ t c .

Ventricular activation is represented by the dimensionless periodic function

(5) a ⁢ ( t ) = { 1 − cos ⁡ ( 2 ⁢ π ⁢ t m t s ) 2 , 0 ≤ t m < t s , 0 , t s ≤ t m < t c .

The activation function varies between zero and unity, reaches its maximum at mid-systole, and returns continuously to zero at tm=ts. The active isovolumetric pressure source and time-varying elastance are defined by

P ⁢ ( t ) = P 0 ⁢ a ⁢ ( t ) , E ⁢ ( t ) = E d + E s ⁢ a ⁢ ( t ) ,

where P0 is the active-pressure amplitude, Ed is the constant diastolic elastance, and Es is the activation-dependent elastance increment. The source–elastance contribution defines the internal pressure

(6) P v ∗ ⁢ ( t ) = P ⁢ ( t ) + E ⁢ ( t ) ⁢ [ V ⁢ ( t ) − V l ⁢ p ] ,

where Pv∗ denotes the pressure generated before the myocardial resistive drop. Let Zo⁢(t) be the signed ventricular outflow, defined as positive from the ventricle toward the downstream arterial compartment. The intracavitary pressure downstream of the myocardial resistance is then

(7) P v ⁢ ( t ) = P v ∗ ⁢ ( t ) − R m ⁢ Z o ⁢ ( t ) ,

where Vl⁢p is the reference volume associated with the linearization point and Rm is the myocardial resistance representing reduced-order viscous losses. Equation (7) is the signed-flow form implemented throughout the cardiac cycle. During baseline systolic ejection, the inlet valve is closed and volume conservation gives d⁢V/d⁢t=−Zo; the equation therefore becomes

P v ⁢ ( t ) = P ⁢ ( t ) + E ⁢ ( t ) ⁢ [ V ⁢ ( t ) − V l ⁢ p ] + R m ⁢ d ⁢ V ⁢ ( t ) d ⁢ t ,

which recovers the conventional rate-dependent expression. During diastole with a competent outlet valve, a⁢(t)=0 and Zo=0, so that Pv=Ed⁢(V−Vl⁢p). If reverse aortic flow is permitted, Eq. (7) remains valid without changing the sign convention or introducing a separate pressure law. The same relation applies to both ventricles, with the side-specific quantities introduced below.

In the parameterization adopted in this work, the reference-volume offsets are set to

V l ⁢ p , R = V l ⁢ p , L = 0 .

This is a parameterization convention rather than a structural requirement of the ventricular formulation. Consequently, the state variables x6=VRV and x12=VLV are interpreted as absolute ventricular volumes, expressed in cm3, both in the state equations and in the calculation of end-diastolic volume (EDV), end-systolic volume (ESV), stroke volume (SV), ejection fraction (EF), and pressure–volume loops. Nonzero reference volumes can be accommodated, but their offsets must then be retained consistently in the ventricular pressure relations and in every volume-based metric.

The same activation function a⁢(t) is prescribed for both ventricles, with side-specific pressure and elastance parameters. The corresponding isovolumetric pressure contributions and time-varying elastances are

(8) P R ( t ) = P 0 R a ( t ) , E R ( t ) = E d R + E s R a ( t ) , P L ( t ) = P 0 L a ( t ) , E L ( t ) = E d L + E s L a ( t ) .

Under baseline conditions, the cardiac valves are represented by ideal-diode laws that suppress reverse flow. On the right side, the tricuspid and pulmonary valve gates are defined as

(9) S 2 ⁢ ( t ) = { 1 , Δ ⁢ P 2 ⁢ ( t ) > 0 , 0 , Δ ⁢ P 2 ⁢ ( t ) ≤ 0 , S 3 ⁢ ( t ) = { 1 , Δ ⁢ P 3 ⁢ ( t ) > 0 , 0 , Δ ⁢ P 3 ⁢ ( t ) ≤ 0 ,

where the corresponding valve-branch driving-pressure differences are

(10) Δ ⁢ P 2 ⁢ ( t ) = x 5 ⁢ ( t ) − P R ⁢ ( t ) − x 6 ⁢ ( t ) ⁢ E R ⁢ ( t ) , Δ ⁢ P 3 ⁢ ( t ) = P R ⁢ ( t ) + x 6 ⁢ ( t ) ⁢ E R ⁢ ( t ) − x 7 ⁢ ( t ) .

Here, x5 is the right atrial pressure and x7 is the proximal pulmonary arterial pressure. Thus, Δ⁢P2>0 favors tricuspid inflow from the right atrium to the right ventricle, whereas Δ⁢P3>0 favors pulmonary-valve outflow from the right ventricle to the pulmonary circulation. Because the pulmonary outflow branch contains RR and R5 in series, Δ⁢P3 is the driving-pressure difference across the complete branch rather than the isolated pressure drop across the valve. The dimensionless gates S2 and S3 activate the corresponding forward-flow conductances only when these pressure conditions are satisfied.

The right-ventricular inlet and outlet flow rates are therefore

(11) Z i ⁢ R ⁢ ( t ) = Δ ⁢ P 2 ⁢ ( t ) ⁢ S 2 ⁢ ( t ) R 4 , Z o ⁢ R ⁢ ( t ) = Δ ⁢ P 3 ⁢ ( t ) ⁢ S 3 ⁢ ( t ) R R + R 5 .

Here, Zi⁢R denotes tricuspid inflow and Zo⁢R denotes pulmonary-valve outflow. Under the ideal-diode laws of Eq. (9), both quantities are nonnegative. The resistance R4 characterizes the tricuspid branch, whereas the right-ventricular outflow encounters the combined resistance RR+R5, comprising the myocardial resistance and the pulmonary-valve resistance. The resulting intracavitary right-ventricular pressure is

(12) P v ⁢ R ⁢ ( t ) = P R ⁢ ( t ) + E R ⁢ ( t ) ⁢ x 6 ⁢ ( t ) − R R ⁢ Z o ⁢ R ⁢ ( t ) .

The final term represents the pressure loss associated with myocardial resistance during ventricular outflow. When the pulmonary valve is closed, Zo⁢R=0, and the intracavitary pressure reduces to the sum of the prescribed isovolumetric pressure and the elastic contribution.

On the left side, the mitral valve retains the ideal-diode representation, whereas the aortic branch is assigned a nonnegative conductance multiplier that permits controlled reverse flow. The corresponding factors are

(13a) S 4 ⁢ ( t ) = { 1 , Δ ⁢ P 4 ⁢ ( t ) > 0 , 0 , Δ ⁢ P 4 ⁢ ( t ) ≤ 0 .
(13b) S 1 ⁢ ( t ) = { 1 , Δ ⁢ P 1 ⁢ ( t ) ≥ 0 , Ref , Δ ⁢ P 1 ⁢ ( t ) < 0 .

The aortic branch is formulated in terms of signed flow, thereby assigning an unambiguous orientation to both forward ejection and reverse flow. The dimensionless parameter 0≤Ref<1 is the ratio of reverse to forward aortic-valve conductance. The baseline condition Ref=0 recovers an ideal non-return valve. For Ref>0, a negative aortic-branch driving-pressure difference produces a negative flow, representing blood returning from the aorta to the left ventricle.

The value Ref=0.05, adopted in the illustrative parameter-variation study, is a prescribed leakage coefficient and not a clinically calibrated measure of regurgitation severity. In particular, it does not imply a regurgitant fraction of 5%. The regurgitant fraction is an output of the simulation and must be calculated a posteriori from the cycle integrals of the positive and negative portions of the signed aortic flow.

For a complete cardiac cycle [t0,t0+tc], the forward and reverse aortic volumes are defined as

(14) V fwd = ∫ t 0 t 0 + t c max ⁡ [ Z o ⁢ L ⁢ ( t ) , 0 ] ⁢ dt , V rev = − ∫ t 0 t 0 + t c min ⁡ [ Z o ⁢ L ⁢ ( t ) , 0 ] ⁢ dt ,

and the regurgitant fraction (RF) is

(15) RF = 100 ⁢ V rev V fwd , V fwd > 0 .

This definition distinguishes the prescribed conductance ratio Ref from the simulated volumetric outcome RF.

The valve-branch driving-pressure differences on the left side are

(16) Δ ⁢ P 1 ⁢ ( t ) = P L ⁢ ( t ) + E L ⁢ ( t ) ⁢ x 12 ⁢ ( t ) − x 1 ⁢ ( t ) , Δ ⁢ P 4 ⁢ ( t ) = x 11 ⁢ ( t ) − P L ⁢ ( t ) − E L ⁢ ( t ) ⁢ x 12 ⁢ ( t ) .

Here, Δ⁢P1 is defined as positive from the internal ventricular pressure Pv∗ toward the aorta, whereas Δ⁢P4 is defined as positive from the left atrium toward the left ventricle. Because RL and R1 are in series, Δ⁢P1 is the driving-pressure difference across the complete aortic outflow branch; the isolated aortic-valve pressure drop is obtained after subtracting the myocardial resistive contribution. The corresponding mitral and aortic flow rates are

(17) Z i ⁢ L ⁢ ( t ) = Δ ⁢ P 4 ⁢ ( t ) ⁢ S 4 ⁢ ( t ) R 8 , Z o ⁢ L ⁢ ( t ) = Δ ⁢ P 1 ⁢ ( t ) ⁢ S 1 ⁢ ( t ) R L + R 1 .

Because RL+R1>0 and S1⁢(t)≥0, the signed aortic flow Zo⁢L cannot have a direction opposite to that prescribed by Δ⁢P1. During forward ejection, Δ⁢P1>0, S1=1, and Zo⁢L>0. When Ref>0, a negative pressure difference produces Zo⁢L<0, representing a regurgitant interval. Under the baseline condition Ref=0, however, a negative pressure difference is blocked and the corresponding aortic flow is zero.

The intracavitary left-ventricular pressure is

(18) P v ⁢ L ⁢ ( t ) = P L ⁢ ( t ) + E L ⁢ ( t ) ⁢ x 12 ⁢ ( t ) − R L ⁢ Z o ⁢ L ⁢ ( t ) .

The final term represents the pressure change across the left myocardial resistance according to the adopted aortic-flow orientation. Its sign therefore reverses consistently when regurgitant flow is permitted and Zo⁢L<0.

2.4. Circulatory network

The systemic and pulmonary circulations are represented by homologous two-stage RLC ladder networks. In the hydraulic interpretation, resistances account for viscous pressure losses, inertances describe the finite acceleration of the blood columns, and compliances represent volume storage in distensible vascular and atrial compartments. More specifically, each subnetwork comprises three compliant compartments connected successively by two resistive–inertial branches.

The systemic subnetwork begins at the proximal aortic compartment, whose pressure is x1 and whose compliance is C1. The first resistive–inertial branch, containing R2 and L1, carries the systemic arterial flow x2 toward the distal arterial compartment C2, whose pressure is x3. A second branch, containing the peripheral resistance R3 and inertance L2, carries the systemic venous flow x4 toward the terminal compartment C3, whose pressure x5 represents the right atrial node.

The pulmonary subnetwork has the same topological structure. It begins at the proximal pulmonary arterial compartment C4, whose pressure is x7. The branch containing R6 and L3 carries the pulmonary arterial flow x8 toward the distal pulmonary vascular compartment C5, whose pressure is x9. The second branch, containing the peripheral resistance R7 and inertance L4, carries the pulmonary venous flow x10 toward the terminal compartment C6, whose pressure x11 represents the left atrial node.

The peripheral resistances R3 and R7 establish the principal arterial-to-venous pressure drops in the systemic and pulmonary beds, respectively. Coupled through the ventricular and valve branches, the two subnetworks form the closed sequence of the left ventricle, systemic circulation, right ventricle, pulmonary circulation, and left ventricle.

Figure 5 displays the two ladder networks and identifies the pressure and flow states associated with their successive compartments and branches.

Figure 5
RLC ladder representations of the systemic circulation (a) and pulmonary circulation (b). Each subnetwork comprises three compliant pressure nodes connected by two resistive–inertial flow branches. In the systemic circuit, x1, x3, and x5 denote the aortic, distal arterial, and right atrial pressures, while x2 and x4 represent the intervening arterial and venous flows. The corresponding pulmonary states are x7, x9, and x11 for the proximal arterial, distal vascular, and left atrial pressures, and x8 and x10 for the arterial and venous flows.

2.5. State-space formulation

The closed-loop model comprises twelve coupled first-order ordinary differential equations [19, 20]. The state vector contains six nodal pressures, four intercompartmental flow rates, and two ventricular volumes, ordered according to Table 1:

(19) x ⁢ ( t ) = [ x 1 ⁢ ( t ) , x 2 ⁢ ( t ) , … , x 12 ⁢ ( t ) ] T .

In compact form, the governing system is

(20) x ˙ ⁢ ( t ) = Φ ⁢ ( x ⁢ ( t ) , t ; θ ) ,

where the overdot denotes differentiation with respect to time and θ collects the model parameters. The explicitly time-dependent, piecewise-smooth nonlinear vector field Φ follows directly from the element constitutive relations, the ventricular activation and valve laws, and the KCL and KVL balances. For compactness, the time arguments of the scalar states, valve factors, and valve-branch driving-pressure differences are omitted in the expanded system:

(21) x ˙ 1 = 1 C 1 ( S 1 Δ P 1 R L + R 1 − x 2 ) , x ˙ 2 = 1 L 1 ( x 1 − R 2 x 2 − x 3 ) , x ˙ 3 = 1 C 2 ( x 2 − x 4 ) , x ˙ 4 = 1 L 2 ( x 3 − R 3 x 4 − x 5 ) , x ˙ 5 = 1 C 3 ( x 4 − S 2 Δ P 2 R 4 ) , x ˙ 6 = S 2 Δ P 2 R 4 − S 3 Δ P 3 R R + R 5 , x ˙ 7 = 1 C 4 ( S 3 Δ P 3 R R + R 5 − x 8 ) , x ˙ 8 = 1 L 3 ( x 7 − R 6 x 8 − x 9 ) , x ˙ 9 = 1 C 5 ( x 8 − x 10 ) , x ˙ 10 = 1 L 4 ( x 9 − R 7 x 10 − x 11 ) , x ˙ 11 = 1 C 6 ( x 10 − S 4 Δ P 4 R 8 ) , x ˙ 12 = S 4 Δ P 4 R 8 − S 1 Δ P 1 R L + R 1 .

The sign convention in Eq. (21) follows directly from the local volume balances. The signed aortic flow Zo⁢L enters the aortic-pressure equation through +Zo⁢L/C1 and the left-ventricular volume equation through −Zo⁢L. Thus, Zo⁢L>0 transfers volume from the left ventricle to the aortic compartment. When Ref>0 and Δ⁢P1<0, one obtains Zo⁢L<0, and both contributions reverse sign: aortic storage decreases while left-ventricular volume increases, as required for regurgitant flow.

The closed-loop structure also yields an exact stored-volume invariant. With the zero reference-volume offsets adopted here, the total blood volume represented by the model is

(22) V tot ⁢ ( t ) = C 1 ⁢ x 1 ⁢ ( t ) + C 2 ⁢ x 3 ⁢ ( t ) + C 3 ⁢ x 5 ⁢ ( t ) + x 6 ⁢ ( t ) + C 4 ⁢ x 7 ⁢ ( t ) + C 5 ⁢ x 9 ⁢ ( t ) + C 6 ⁢ x 11 ⁢ ( t ) + x 12 ⁢ ( t ) .

Multiplying the six pressure-state equations in Eq. (21) by their respective compliances and adding the two ventricular-volume equations causes every internal branch flow to cancel pairwise. Consequently,

(23) d ⁢ V tot d ⁢ t = 0 .

Thus, any variation of Vtot along a computed trajectory is numerical rather than structural and provides a direct diagnostic of integration error. The inertial flow states do not appear in Eq. (22) because they describe transport rates, not independent blood-storage compartments.

The initial condition x⁢(0) specifies the starting pressures, flow rates, and ventricular volumes. Numerical integration then advances these states according to the same local conservation and pressure-balance laws represented in the circuit. The state-space system is therefore not an independent mathematical construction appended to the electrical analogy; it is the direct computational realization of that analogy.

Box 1: From a circuit balance to executable code

Consider the aortic node associated with compliance C1, whose pressure is x1=Pao. KCL requires the rate of volume stored in this compartment to equal the signed aortic-valve inflow minus the systemic arterial outflow:

C 1 ⁢ x ˙ 1 = Z o ⁢ L − x 2 .

Substitution of the signed aortic-valve law from Eq. (17) gives

x ˙ 1 = 1 C 1 ⁢ ( S 1 ⁢ Δ ⁢ P 1 R L + R 1 − x 2 ) ,

which is the first component of Eq. (21). As an illustrative instantaneous evaluation, consider

C 1 = 0.220 ⁢ cm 3 ⁢ mmHg − 1 ,
R L + R 1 = 0.0837511 ⁢ mmHg ⁢ s ⁢ cm − 3 ,
Δ ⁢ P 1 = 20 ⁢ mmHg ,
x 2 = 100 ⁢ cm 3 ⁢ s − 1 .

For the baseline ideal valve, Ref=0 and S1=1 under this positive pressure difference. Therefore,

Z o ⁢ L = 238.80 ⁢ cm 3 ⁢ s − 1 ,
x ˙ 1 = 630.9 ⁢ mmHg ⁢ s − 1 .

These values illustrate the algebraic evaluation of the state equation and are not sampled from the converged baseline trajectory. In the Python implementation, the signed valve law is encapsulated by aortic_valve_flow.

Within the right-hand-side function, the same balance is transcribed as

Z ⁢ _ ⁢ ao ⁢ _ ⁢ out = self . aortic v ⁢ alve f ⁢ low ⁢ ( dP1 ) ,
dx1 = ( Z a ⁢ o o ⁢ ut − x2 ) / p . C a ⁢ o .

The reverse-flow branch follows from the same law. For Δ⁢P1=−20⁢mmHg and Ref=0.05, the conductance factor is S1=0.05, yielding

Z o ⁢ L = − 11.94 ⁢ cm 3 ⁢ s − 1 .

The corresponding contribution to aortic storage is negative, whereas the contribution −Zo⁢L to x˙12 is positive. The calculation therefore transfers volume from the aortic compartment back to the left ventricle without modifying the governing balance equations.

This example displays the complete correspondence used throughout the model:

c o n s e r v a t i o n → c i r c u i t l a w → s t a t e e q u a t i o n → P y t h o n c o d e

3. Computational Experiments and Illustrative Results

The numerical results are organized around two complementary purposes. First, the baseline condition is examined to establish the numerical consistency of the implementation through long-time integration, cycle-to-cycle convergence, and closed-loop blood-volume conservation. Second, controlled parameter perturbations are used to investigate how changes in physically interpretable coefficients modify the dynamical response of the system. This organization makes explicit the progression from model parameters and state equations to computed pressures, flow rates, ventricular volumes, and pressure–volume loops. The results are not presented as evidence of biomedical novelty, clinical validity, or educational effectiveness, but as a technical demonstration of the framework and of its potential use in guided computational investigations.

All numerical integrations were performed in Python using the solve_ivp routine from SciPy [14]. The baseline calculations employed the explicit adaptive Runge–Kutta method of order 5(4) (RK45), with relative and absolute tolerances of 10−10 and 10−12, respectively. The baseline condition was integrated for 100 cardiac cycles, corresponding to 80⁢s for the prescribed cardiac period tc=0.8⁢s. The solution was stored on a uniform output grid containing 1000 sampling intervals per cycle, for a total of 100001 points including the initial state. This prescribed output grid was used only for storage, cycle-to-cycle comparison, post-processing, and visualization; it must not be confused with the internal integration steps, whose sizes were selected adaptively by the solver.

Cycle-to-cycle convergence was quantified by comparing cycles 99 and 100 on a common phase grid. Hemodynamic metrics were calculated from the final cardiac cycle, whereas the baseline time-series figures display only the last two cycles. Thus, the restricted time interval shown in the figures represents the converged portion of an 80⁢s simulation and not the complete integration interval.

Table 2 documents the baseline parameter set and initial state used in the simulations. With the exception of the reverse-flow coefficient introduced for the signed aortic-valve extension, the numerical values were transcribed from Table 4 of Fernández de Cañete et al. [20], whose closed-loop formulation is based on the model of Avanzolini et al. [18]. The additional coefficient was set to Ref=0 under baseline conditions, thereby recovering an ideal non-return aortic valve.

Table 2
Baseline parameter values and initial state adopted in the simulations. Except for Ref, the numerical values are reproduced from Table 4 of Fernández de Cañete et al. [20]. The pulmonary state descriptions follow the topology and governing equations of the present model.

No parameter re-identification or patient-specific calibration was performed in the present work. The values should therefore be interpreted as a traceable, literature-based reference configuration rather than as measurements from an individual subject or as a newly calibrated physiological data set. Likewise, the initial vector specifies only the starting point of the numerical trajectory; all reported baseline quantities were extracted from the periodic solution obtained after the 100-cycle integration.

The baseline setting Ref=0 is a constitutive modeling choice that recovers a competent, ideal non-return aortic valve within the signed-flow formulation; it is not a fitted physiological parameter. The nonzero value introduced in Section 3.2 is used solely as a controlled computational perturbation for illustrative analysis. It must not be interpreted as a clinically calibrated regurgitation grade or as the regurgitant fraction, which is an output calculated from the cycle-integrated signed aortic flow.

For clarity, the descriptions of x7 and x9 in Table 2 follow directly from the pulmonary-circuit topology and the state equations. The state x7 is the pressure associated with compliance C4, immediately downstream of the pulmonary valve, whereas x9 is the pressure associated with compliance C5, distal to the R6–L3 branch. Accordingly, they represent the proximal pulmonary arterial pressure and the distal pulmonary vascular pressure, respectively.

Finally, under the adopted convention Vl⁢p,L= Vl⁢p,R=0, the states x6 and x12 represent the absolute right- and left-ventricular volumes. No reference-volume offset is therefore added during post-processing or in the calculation of volume-based metrics.

3.1. Baseline simulation

The baseline condition was integrated for 100 cardiac cycles, corresponding to a total simulation time of 80⁢s for tc=0.8⁢s. Quantitative hemodynamic measures were extracted from the final cycle, and only cycles 99 and 100, corresponding to 78.4≤t≤80.0⁢s, are displayed in the baseline time-series figures.

Convergence toward a periodic regime was assessed independently of visual inspection. Let xj(k)⁢(τ) denote state j during cardiac cycle k, expressed on a common phase coordinate 0≤τ≤tc. Cycles 99 and 100 were resampled on the same 1001-point phase grid, and the relative cycle-to-cycle discrepancy for each state was defined as

(24) ε j = max τ ⁡ | x j ( 100 ) ⁢ ( τ ) − x j ( 99 ) ⁢ ( τ ) | max τ ⁡ x j ( 100 ) ⁢ ( τ ) − min τ ⁡ x j ( 100 ) ⁢ ( τ ) , ε max = max 1 ≤ j ≤ 12 ⁡ ε j .

The maximum discrepancy was

ε max = 3.92 × 10 − 8 ,

and occurred for the left-ventricular volume x12. The closed-loop volume invariant defined in Eq. (22) was evaluated throughout the complete 80⁢s trajectory. Its relative numerical drift was quantified as

(25) δ V = max t ⁡ V tot ⁢ ( t ) − min t ⁡ V tot ⁢ ( t ) ⟨ V tot ⁢ ( t ) ⟩ t ,

yielding

δ V = 1.80 × 10 − 14 .

Within the adopted convergence metric and solver tolerances, these values show that the numerical trajectory reached a periodic regime and that the closed-loop blood-volume invariant was preserved to near machine precision. The restricted intervals shown in the figures therefore represent the final converged portion of the simulation rather than its complete duration.

Figure 6 presents the pressure states separately, whereas Figure 7 displays them on a common pressure scale. The aortic pressure x1 oscillates between 68.29 and 113.09⁢mmHg. The distal systemic arterial pressure x3 exhibits a smoother waveform because the intervening resistive–inertial branch R2–L1, together with the vascular compliance C2, attenuates and redistributes the pulsatile ventricular input.

Figure 6
Baseline pressure states over cycles 99 and 100 of the 100-cycle simulation: (a) aortic pressure, x1; (b) distal systemic arterial pressure, x3; (c) distal pulmonary vascular pressure, x9; (d) proximal pulmonary arterial pressure, x7; (e) right-atrial pressure, x5; and (f) left-atrial pressure, x11. Only the final 1.6⁢s interval, 78.4≤t≤80.0⁢s, is displayed; the complete baseline integration extended over 80⁢s. The waveforms therefore represent the final two cycles after the quantified convergence to a periodic regime.
Figure 7
Superposed baseline pressure states during cycles 99 and 100 of the 100-cycle (80⁢s) integration. The common vertical scale makes the separation among systemic, pulmonary, and atrial pressure ranges directly visible, whereas the individual panels in Figure 6 use separate scales to preserve the waveform structure of the lower-pressure compartments.

On the pulmonary side, x7 is the proximal pulmonary arterial pressure associated with C4, immediately downstream of the pulmonary valve, whereas x9 is the distal pulmonary vascular pressure associated with C5, beyond the R6–L3 branch. Their different amplitudes and waveform shapes therefore reflect distinct positions within the pulmonary subnetwork rather than alternative labels for the same pressure. The right- and left-atrial pressures, x5 and x11, remain at substantially lower levels, consistent with their roles as ventricular filling pressures within the adopted closed-loop model.

Figure 8 shows the ventricular-volume states over the final two cardiac cycles. Under the convention Vl⁢p,L=Vl⁢p,R=0, x12 and x6 represent the absolute left- and right-ventricular volumes, respectively. During the final cycle, the left-ventricular end-diastolic and end-systolic volumes are 112.73 and 50.86⁢mL, yielding a stroke volume of 61.88⁢mL and an ejection fraction of 54.89%.

Figure 8
Baseline absolute ventricular-volume states during cycles 99 and 100 of the 100-cycle (80⁢s) integration: (a) left-ventricular volume, x12; and (b) right-ventricular volume, x6. Because the adopted parameterization sets Vl⁢p,L=Vl⁢p,R=0, the plotted states coincide with the absolute chamber volumes; no reference-volume offset is applied in the visualization or in the calculation of volume-based metrics.

The cardiac period is a prescribed model input rather than a simulated output. The adopted value tc=0.8⁢s corresponds to a heart rate (HR) of

HR = 60 t c = 75 ⁢ beats ⁢ min − 1 .

Combining this prescribed rate with the simulated stroke volume gives a cardiac output (CO) of

CO = SV × HR = 4.64 ⁢ L ⁢ min − 1 .

The approximately phase-aligned ventricular-volume excursions primarily reflect the common activation function prescribed for the two ventricles. Closed-loop volume conservation imposes a complementary integral constraint: once a periodic regime has been reached, the net volumes transferred by the right and left sides of the heart over one cardiac cycle must be equal. Otherwise, blood volume would accumulate progressively in either the systemic or pulmonary compartments, contradicting periodicity.

Figures 9 and 10 present the four intercompartmental flow-rate states: systemic arterial flow x2, systemic venous flow x4, pulmonary arterial flow x8, and pulmonary venous flow x10. The arterial flows retain a strongly pulsatile character because they are driven by ventricular ejection through the corresponding proximal vascular compartments. By contrast, the venous waveforms are broader and phase shifted as a consequence of the resistive, inertial, and compliant elements distributed between the arterial and atrial nodes.

Figure 9
Baseline flow-rate signals over cycles 99 and 100: (a) venous systemic flow; (b) venous pulmonary flow; (c) arterial systemic flow; and (d) arterial pulmonary flow. The final two cycles are shown after completion of the 100-cycle integration.
Figure 10
Superposed baseline flow-rate variables over cycles 99 and 100. The common scale highlights the concentrated arterial ejection pulses and the lower-amplitude, temporally distributed venous return.

The small post-ejection oscillations visible in the arterial branches are consistent with the transient response of the coupled inertance–compliance elements retained in the RLC formulation. They should therefore be interpreted as features of the adopted reduced-order dynamics rather than as independently resolved physiological mechanisms. The repetition of the flow waveforms over cycles 99 and 100 is consistent with the quantitative state-space convergence measure reported above and is not inferred solely from their visual overlap.

Figure 11 presents the final-cycle pressure–volume loops constructed from the left- and right-ventricular state pairs (x12,Pv⁢L) and (x6,Pv⁢R), respectively. The intracavitary pressures are calculated from Eqs. (18) and (12), including the elastic contribution and the pressure change across the corresponding myocardial resistance.

Figure 11
Baseline pressure–volume loops over cycle 100 for the left and right ventricles. Intracavitary pressures are computed from the complete constitutive expressions in Eqs. (11) and (15), and ventricular volumes are interpreted as absolute volumes under Vl⁢p,L=Vl⁢p,R=0.

The trajectories provide a state-plane representation of the sequence of ventricular filling, isovolumetric contraction, ejection, and isovolumetric relaxation. Within the reduced-order formulation, the area enclosed by each loop represents the ventricular mechanical work per cardiac cycle in pressure–volume units. The left-ventricular loop reaches the systemic pressure range and encloses a substantially larger area than the right-ventricular loop, reflecting the greater simulated work required to overcome the systemic vascular load.

Both ventricular trajectories return to their initial pressure and volume coordinates at the end of the final cycle. The resulting closed curves are therefore geometrically consistent with the periodic regime established quantitatively by the cycle-to-cycle convergence measure in Eq. (24); their visual closure is not used as an independent convergence criterion.

3.2. Parameter-variation studies

Controlled parameter perturbations provide a direct means of relating selected model coefficients to their constitutive roles and to the resulting global closed-loop response. Because pressures, flow rates, and ventricular volumes evolve as mutually coupled variables, the perturbed solutions are interpreted through the mechanistic sequence

parameter change ⟶ constitutive response ⟶ flow redistribution ⟶ ventricular loading .

This sequence is an interpretive guide rather than a one-way causal decomposition, since every perturbation propagates through the feedback structure of the closed circulation. The periodicity of each perturbed trajectory was assessed using the cycle-to-cycle metric defined in Eq. (24), and all quantitative measures were extracted from the final cardiac cycle after the transient response had decayed.

Three controlled computational experiments were considered:

  • Reduced systemic resistance (Figure 12): the systemic peripheral resistance was set to

R sys = 0.5 ⁢ R sys , 0 ,

corresponding to a 50% reduction relative to the baseline value;

Figure 12
Parameter-variation study with reduced systemic resistance (Rsys×0.5). Baseline signals are plotted in soft gray and the perturbed response is overlaid in navy/gold: (a) aortic pressure; (b) arterial systemic flow; and (c) left-ventricular pressure–volume loop. All panels show the last two cardiac cycles after convergence to a periodic regime.
  • Increased systemic resistance (Figure 13): the systemic peripheral resistance was set to

R sys = 2 ⁢ R sys , 0 ,

corresponding to twice its baseline value;

Figure 13
Parameter-variation study with increased systemic resistance (Rsys×2.0), shown against the baseline: (a) aortic pressure; (b) arterial systemic flow; and (c) left-ventricular pressure–volume loop. The perturbed loop moves upward and to the right as the increased afterload raises arterial pressure and limits ventricular emptying.
  • Modified aortic-valve condition (Figure 14): the reverse-to-forward conductance ratio was set to Ref=0.05, and the aortic-valve resistance was reduced to

R 1 = 0.4 ⁢ R 1 , 0 ,

corresponding to a 60% reduction relative to baseline.

Figure 14
Comparison between the competent-valve baseline and the modified aortic-valve condition, for which Ref=0.05 and the aortic-valve resistance is reduced to 40% of its baseline value. Both cases were integrated for 100 cardiac cycles, and only the final two cycles are shown: (a) aortic pressure; (b) signed aortic-valve flow; and (c) left-ventricular pressure–volume loop. Positive flow represents ventricular ejection into the aorta, whereas the negative portion highlighted below the zero-flow line represents regurgitant flow from the aorta to the left ventricle. During the final cycle, the modified condition produces a forward volume of 75.68⁢mL and a reverse volume of 19.16⁢mL, yielding a regurgitant fraction of 25.31% and an effective cardiac output of 4.24⁢L⁢min−1. The prescribed coefficient Ref is the reverse-to-forward conductance ratio and must not be interpreted as the regurgitant fraction itself.

Except for the parameters explicitly identified above, the baseline configuration is retained in each study. These perturbations are intended as illustrative computational experiments and not as patient-specific parameterizations or clinically calibrated representations of cardiovascular disease.

These parameter changes are used as mechanistic computational experiments with an intended didactic role; they do not represent patient-specific simulations or clinically calibrated grades of disease severity. In particular, Ref, defined in Eq. (13b), is the prescribed ratio of reverse to forward aortic-valve conductance. It is therefore an input coefficient of the valve law and must not be identified with the regurgitant fraction. The latter is an emergent simulation output calculated from the cycle-integrated positive and negative portions of the signed aortic flow according to Eqs. (14) and (15). Consequently, Ref=0.05 does not imply a regurgitant fraction of 5%.

Reducing the systemic peripheral resistance decreases the hydraulic load against which the left ventricle ejects. Relative to baseline, the systolic aortic pressure decreases from 113.09 to 90.75⁢mmHg, while the diastolic pressure decreases from 68.29 to 38.43⁢mmHg. The left-ventricular end-diastolic volume changes only slightly, from 112.73 to 112.08⁢mL, whereas the end-systolic volume decreases markedly, from 50.86 to 34.61⁢mL.

Consequently, the stroke volume increases from 61.88 to 77.47⁢mL. Because the cardiac period remains prescribed at tc=0.8⁢s, corresponding to a fixed heart rate of 75⁢beats⁢min−1, the cardiac output increases proportionally from 4.64 to 5.81⁢L⁢min−1. The greater horizontal extent of the pressure–volume loop is therefore attributable primarily to the lower end-systolic volume and the resulting increase in ventricular emptying. Within the present model, this response is driven by the reduced downstream resistance rather than by an appreciable change in end-diastolic filling..

Doubling the systemic peripheral resistance produces the complementary response. Relative to baseline, the systolic and diastolic aortic pressures increase to 139.22 and 103.63⁢mmHg, respectively. The left-ventricular end-diastolic volume changes only slightly, from 112.73 to approximately 113.30⁢mL, whereas the end-systolic volume increases substantially, from 50.86 to 68.93⁢mL.

The greater hydraulic load opposes ventricular emptying, reducing the stroke volume from 61.88 to 44.37⁢mL. At the same prescribed heart rate of 75⁢beats⁢min−1, the cardiac output consequently decreases from 4.64 to 3.33⁢L⁢min−1. The pressure–volume loop shifts upward and to the right while contracting along the volume axis, indicating higher ventricular pressure generation but a smaller ejected volume. Figures 12 and 13 show that systemic resistance does not merely rescale arterial pressure. Through the closed-loop coupling, it modifies ventricular afterload, end-systolic volume, stroke volume, and forward cardiac output, even though the end-diastolic volume remains nearly unchanged in both perturbation studies.

The aortic-valve experiment probes a mechanism fundamentally different from that of the systemic-resistance perturbations. Under the signed-flow law, Ref>0 assigns a finite reverse conductance to the aortic branch. Consequently, when the aortic-branch driving-pressure difference becomes negative, Zo⁢L<0, reducing aortic storage and increasing left-ventricular volume in accordance with the sign structure of Eq. (21).

Over the final cardiac cycle, the modified condition produces a forward aortic volume of 75.68⁢mL and a reverse volume of 19.16⁢mL. According to Eqs. (14) and (15), the resulting regurgitant fraction is 25.31%, rather than 5%, and the net forward volume is

V net = V fwd − V rev = 56.52 ⁢ mL

per cycle. At the prescribed heart rate of 75⁢beats⁢min−1, this net volume corresponds to an effective cardiac output of 4.24⁢L⁢min−1, below the baseline value of 4.64⁢L⁢min−1. Thus, when reverse aortic flow is permitted, the gross left-ventricular volume excursion and the volume effectively delivered to the systemic circulation are no longer equivalent.

The modified condition also decreases the diastolic aortic pressure from 68.29 to 56.91⁢mmHg and increases the left-ventricular end-diastolic volume from 112.73 to 125.51⁢mL. The lower diastolic pressure reflects the additional reverse-flow pathway from the aortic compartment, whereas the increased end-diastolic volume results from the regurgitant contribution to ventricular filling. These changes account for the rightward displacement and greater horizontal extent of the left-ventricular pressure–volume loop. Part of the volume ejected during the subsequent systole therefore recirculates blood that returned through the aortic valve during diastole rather than contributing to net systemic delivery.

Because both the reverse-to-forward conductance ratio Ref and the aortic-valve resistance are modified, this experiment must be interpreted as a combined aortic-valve perturbation. It is neither a patient-specific simulation nor a calibration of clinical regurgitation severity.

The three parameter-variation studies expose two distinct forms of mechanistic reasoning within the model. The systemic-resistance experiments isolate a single afterload-related parameter perturbation, whereas the aortic-valve experiment requires explicit consideration of flow direction, cycle-integrated transport, and the distinction between gross ventricular ejection and effective systemic output. Parameter variation therefore serves to interrogate the physical consequences of the governing equations rather than as a purely graphical or clinically predictive exercise.

3.3. Consistency with reference physiologicalranges

Although the present article does not claim physiological novelty, it remains useful to verify that the baseline simulation stays within physiologically interpretable resting ranges. Such a comparison helps establish that the model operates in a plausible regime for a simplified closed-loop formulation and further supports its use as an educational example.

Table 3 compares selected baseline model quantities with representative adult resting ranges compiled from standard physiological and cardiovascular-modeling references [7, 9, 17]. Heart rate is a prescribed input defined by the cardiac period, (HR=60/tc), whereas the remaining quantities are derived from the final stabilized cycle. In particular, the baseline simulation yields a mean arterial pressure (MAP) of 83⁢mmHg, a pulse pressure (PP) of 45⁢mmHg, S⁢V≈62⁢mL, E⁢F≈55%, and C⁢O≈4.64⁢L/min, values that are sufficiently coherent for the educational aims of the present work.

Table 3
Baseline consistency check against reference physiological ranges (adult at rest).

The quantities reported in Table 3 are included to document the physiological interpretability of the baseline configuration rather than to establish a clinically calibrated model. Heart rate is not inferred from the simulated trajectory; it is prescribed by the cardiac period (tc=0.8⁢s), which gives HR=75⁢bpm, and is retained in the table to specify the operating condition and calculate cardiac output. The remaining quantities are derived from the final stabilized cycle: mean arterial pressure was estimated as MAP≈Pdiast+13⁢(Psyst−Pdiast), stroke volume as SV=E⁢D⁢V−E⁢S⁢V, and cardiac output as CO=S⁢V×H⁢R.

Taken together, the numerical results demonstrate that the framework generates stable, physically interpretable responses and supports reproducible parameter-variation experiments. These properties establish the technical prerequisites for its proposed use in physics teaching by connecting equations, parameters, simulated signals, and geometric representations within a single computational environment. They do not, by themselves, constitute evidence of learning gains or educational effectiveness.

4. Discussion

The principal contribution of this work is the reorganization of a classical lumped-parameter cardiovascular model as a transparent computational framework in which physical analogies, mathematical formulation, and numerical implementation can be examined within a common problem. In this framework, the electrical analogy is not simply an explanatory metaphor: it provides the constitutive structure from which the state equations are derived, assigns physical meaning to their coefficients, and establishes a traceable correspondence among circuit laws, dynamical variables, and executable code. The pedagogical proposition therefore resides in this architecture rather than in biomedical novelty. Such positioning is consistent with educational approaches that integrate disciplinary mathematics, engineering contexts, and digital computational resources within coherent curricular designs [21]. Because no controlled classroom intervention or formal assessment of learning outcomes was conducted, the claims made here concern the technical and representational coherence of the framework, not its educational efficacy.

Within this scope, the baseline simulation establishes a numerically consistent reference regime rather than merely providing representative waveforms. The 100-cycle integration, the quantified agreement between cycles 99 and 100, and the preservation of the closed-loop volume invariant show that the reported pressure, flow, and volume trajectories belong to a stabilized periodic response rather than to a residual transient. The pressure–volume loops condense this time-domain behavior into a geometric representation of ventricular filling, isovolumetric contraction, ejection, and isovolumetric relaxation. Their left–right asymmetry reflects the distinct ventricular parameterizations and vascular loads of the systemic and pulmonary circuits. In particular, the higher pressure range and larger enclosed area of the left-ventricular loop are consistent with the greater ventricular work required to drive the systemic circulation. More generally, the simulated trajectories show how compliant storage, resistive dissipation, flow inertance, and directional valve laws combine locally to generate the global dynamics of the closed loop.

Beyond establishing this reference regime, the model permits controlled parameter-to-response investigations. The systemic-resistance experiments isolate an afterload mechanism: reducing the resistance facilitates left-ventricular emptying, increases stroke volume and cardiac output, and lowers systemic pressure, whereas increasing it produces the opposite response. The modified aortic-valve experiment probes a different mechanism. Once the aortic branch is expressed through a signed-flow law, reverse flow increases ventricular filling while reducing net systemic delivery, making the ventricular volume excursion distinct from the effective forward output. These experiments therefore connect parameter changes to pressure gradients, redistributed flows, altered ventricular loading, and pressure–volume loop geometry. Their purpose is to expose this causal structure, not to reproduce calibrated disease states or predetermined clinical outcomes.

This interpretability should not be conflated with formal sensitivity, uncertainty, or identifiability analysis. The studies in Section 3.2 apply finite, deliberately selected changes to one or two coefficients so that the consequences of each perturbation remain physically traceable. They neither estimate normalized local derivatives for the complete parameter set nor rank parameter influence over a multidimensional domain. A global sensitivity and uncertainty analysis would require justified parameter ranges or probability distributions, a systematic joint-sampling strategy, and output-based indices capable of resolving nonlinear effects and parameter interactions [22]. The reported studies consequently characterize specific forward responses under controlled perturbations; they do not quantify general uncertainty propagation.

Identifiability addresses a separate inverse question: whether unknown parameters can be inferred uniquely from a specified set of observable outputs. Structural identifiability is determined by the model equations, inputs, initial conditions, and observation map under idealized continuous and noise-free data. Practical identifiability additionally depends on the duration and sampling of the observations, measurement noise, experimental excitation, parameter bounds, and the variables available for measurement. A model may therefore generate numerically consistent and physically interpretable trajectories even when multiple parameter vectors remain compatible with the observed outputs. In the present closed-loop formulation, measurements restricted to aortic pressure or to an aggregate quantity such as cardiac output may be insufficient to distinguish compensatory variations in resistance, compliance, and ventricular elastance. This is a methodological possibility implied by the model structure, not an identifiability result established by the parameter-variation studies. Structural tests, the rank and conditioning of local sensitivity matrices, and profile-likelihood analysis provide complementary diagnostics for investigating such limitations [23].

The adopted parameter values were taken from a literature-based reference configuration rather than inferred from experimental observations. Accordingly, the main analysis assigns no probabilistic uncertainty to them and makes no claim that the complete parameter vector is identifiable. To make the preceding distinctions operational, the Supplementary Material section entitled Technical protocol for local sensitivity and practical-identifiability screening specifies a reproducible local analysis. The protocol applies symmetric ±5% perturbations to six selected parameters, integrates each configuration until a prescribed periodicity criterion is satisfied, and constructs dimensionless waveform-sensitivity matrices for two observation maps: a restricted map containing only aortic pressure and an expanded map combining aortic pressure, proximal pulmonary arterial pressure, and left-ventricular volume. Parameter influence indices, normalized singular-value spectra,

spectral condition numbers, and the right singular vectors associated with the least-informed parameter directions are then used to examine local parameter discrimination under each observation map.

This protocol should be interpreted as a preliminary local screening relevant to practical identifiability, not as a complete solution of the inverse problem. The prescribed ±5% perturbations define a numerical neighborhood and are not experimentally established uncertainty bounds. The analysis neither propagates joint uncertainty over global parameter

domains nor produces confidence intervals or establishes structural identifiability. These extensions involve distinct requirements: global uncertainty quantification requires justified parameter domains and joint sampling; statistical calibration and practical-identifiability analysis require experimental observations and an explicit measurement-error model; and structural identifiability requires analysis of the model–observation structure under ideal noise-free conditions. A comprehensive uncertainty and identifiability program therefore remains beyond the scope of the present work.

The same need for explicit delimitation applies to the physiological resolution of the model. Spatially resolved one-dimensional (1D) and two-dimensional (2D) formulations can represent pulse-wave propagation, variations in vascular geometry, and local flow structures that are unavailable to a 0D description [24, 25, 26]. Patient-specific lumped-parameter formulations may, in turn, incorporate individualized vascular geometries or estimate parameters from clinical measurements [27, 28]. The present formulation relinquishes spatial resolution and individual calibration in exchange for low computational cost and a direct correspondence among circuit elements, governing equations, state variables, and simulated observables. It nevertheless retains the mechanisms required to examine active ventricular pumping, compliant storage, resistive dissipation, flow inertance, valve-mediated switching, and periodic closed-loop dynamics. It thus occupies an intermediate modeling level between elementary Windkessel circuits and spatially resolved or patient-specific cardiovascular simulations [7, 12].

The comparison of the baseline outputs with physiological ranges reported in the literature has a correspondingly limited purpose. It serves as a plausibility check: agreement with broad reference ranges helps exclude grossly inconsistent operating regimes and supports the physical interpretation of the signals generated by the simplified closed-loop configuration. Such agreement does not constitute model validation and establishes neither predictive accuracy against individual data nor the correctness or uniqueness of the parameter set. The baseline condition should therefore be interpreted as a reproducible reference state for computational experiments, not as a virtual patient or a clinically calibrated representation.

The model’s domain of validity is further delimited by its omitted mechanisms. Valve behavior is represented through reduced switching laws; autonomic reflex regulation, respiratory coupling, gas exchange, and metabolic feedback are not included [9]; and the parameters are not calibrated against subject-specific observations. These omissions preclude the use of the present formulation for detailed local hemodynamics, patient-specific prediction, or clinical decision support. Within the proposed teaching framework, however, they remain visible as modeling choices rather than hidden assumptions. They provide concrete points of departure for examining model hierarchy, domains of validity, and the trade-offs among physiological fidelity, interpretability, and computational tractability.

These limitations define two complementary directions for further development. On the technical side, the framework could incorporate physiological regulation, more detailed valve and vascular subsystems, and, where additional discontinuities or time scales warrant them, alternative integration and event-handling strategies. Comparisons with external physiological data could also be introduced using compatible records from open repositories such as PhysioNet [29]. Such comparisons would require explicit definitions of the observable quantities, signal-preprocessing procedures, parameter-estimation criteria, and independent validation protocols; visual agreement with selected waveforms alone would not establish predictive validity.

On the educational side, the computational framework and its Supplementary Material could be developed into a structured instructional intervention with explicit prerequisites, learning objectives, student tasks, instructor guidance, expected deliverables, and assessment instruments. Notebook-based activities and guided computational experiments provide plausible routes for connecting mathematical modeling, numerical simulation, and physical interpretation [30, 2]. This direction may be particularly relevant to physics courses for students in Biology, Pharmacy, and related biomedical fields, where disciplinary context can be incorporated without relinquishing common physical foundations [31]. A subsequent classroom study should determine whether the framework improves conceptual understanding, model-based reasoning, or computational practice through evidence obtained from explicit student activities and assessment procedures [32, 2].

5. Conclusion

This work reorganized a classical closed-loop 0D cardiovascular model as a transparent and reproducible Python framework for higher education. Its contribution lies not in a new physiological formulation, but in establishing an explicit bridge among electrical analogies, state-space representation, and the numerical integration of coupled ordinary differential equations.

The implementation produced stable and physically interpretable periodic responses in pressures, flow rates, ventricular volumes, and pressure–volume loops. The 100-cycle baseline simulation, cycle-to-cycle convergence assessment, closed-loop blood-volume conservation check, and controlled parameter variations establish the numerical consistency and reproducibility of the framework. These results do not, however, constitute physiological validation or evidence of educational effectiveness.

The pedagogical value of the proposal resides in its integrated architecture. Resistance, compliance, inertance, Kirchhoff’s laws, nonlinear valve behavior, state-space formulation, and numerical integration can be examined within a single computational environment. By separating parameter definition, governing equations, integration, post-processing, and visualization, the modular implementation also provides a basis for guided investigations in Computational Physics, Biophysics, Mathematical Modeling, and Numerical Methods.

The formulation deliberately favors interpretability and tractability over physiological completeness. Its omissions-including reflex regulation, detailed valve dynamics, and patient-specific calibration-delimit its domain of validity while exposing fundamental trade-offs in scientific modeling. Because no controlled classroom intervention or formal assessment of learning outcomes was conducted, the educational contribution remains a technically substantiated proposal. The next step is therefore empirical: to implement the framework with explicit learning objectives and assessment instruments and determine whether its physical and computational coherence translates into measurable educationalgains.

Acknowledgments

The author acknowledges financial support from the National Council for Scientific and Technological Development (CNPq, Brazil) and institutional support from the Federal University of Mato Grosso do Sul (UFMS). The author also thanks Mateus Ferraz and Daniel Longo for preliminary discussions and early computational tests.

Data Availability

The complete implementation is available as supplementary material.

References

  • [1] E.A. Veit and V.D. Teodoro, Revista Brasileira de Ensino de Física 24, 87 (2002).
  • [2] J. Alves and R.A. Sauerwein, Revista Brasileira de Ensino de Física 47, e20250009 (2025).
  • [3] J. Qadir, K.L.A. Yau, M.A. Imran and A. Al-Fuqaha, in: 2020 IEEE Frontiers in Education Conference (FIE) (Uppsala, 2020).
  • [4] V. Dolgopolovas and V. Dagienė, Computer Applications in Engineering Education 29, 5 (2021).
  • [5] A. Medeiros and C.F. Medeiros, Revista Brasileira de Ensino de Física 24, 77 (2002).
  • [6] N. Westerhof, J.W. Lankhaar and B.E. Westerhof, Medical & biological engineering & computing 47, 131 (2009).
  • [7] Y. Shi, P. Lawford and R. Hose, BioMedical Engineering OnLine 10, 33 (2011).
  • [8] F. Ježek, T. Kulhánek, K. Kaleckỳ and J. Kofránek, Biocybernetics and Biomedical Engineering 37, 666 (2017).
  • [9] A. Albanese, L. Cheng, M. Ursino and N.W. Chbat, American Journal of Physiology-Heart and Circulatory Physiology 310, H899 (2016).
  • [10] D. Doshi and D. Burkhoff, Journal of cardiac failure 22, 303 (2016).
  • [11] A. Quarteroni and L. Formaggia, Handbook of numerical analysis 12, 3 (2004).
  • [12] S. Zhou, L. Xu, L. Hao, H. Xiao, Y. Yao, L. Qi and Y. Yao, BioMedical Engineering OnLine 18, 41 (2019).
  • [13] R. Johansson, Numerical Python: Scientific Computing and Data Science Applications with NumPy, SciPy and Matplotlib (Apress, Berkeley, 2024), 3 ed.
  • [14] P. Virtanen, R. Gommers, T.E. Oliphant, M. Haberland, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser, J. Bright, et al., Nature Methods 17, 261 (2020).
  • [15] S.F. Lott and D. Phillips, Python Object-Oriented Programming: Build Robust and Maintainable Object-Oriented Python Applications and Libraries (Packt Publishing, Birmingham, 2021), 4 ed.
  • [16] M. Fowler, Refactoring: Improving the Design of Existing Code (Addison-Wesley Professional, Boston, 2018), 2 ed.
  • [17] T.W. Secomb, Comprehensive Physiology 6, 975 (2016).
  • [18] G. Avanzolini, P. Barbini, A. Cappello and G. Cevenini, International journal of bio-medical computing 22, 39 (1988).
  • [19] A. Ferreira, S. Chen, M.A. Simaan, J.R. Boston and J.F. Antaki, in: Proceedings of the 44th IEEE Conference on Decision and Control (Seville, 2005).
  • [20] J. Fernández Cañete, P. Saz-Orozco, D. Moreno-Boza and E. Duran-Venegas, Computers in Biology and Medicine 43, 323 (2013).
  • [21] B. Pepin, R. Biehler and G. Gueudet, International Journal of Research in Undergraduate Mathematics Education 7, 163 (2021).
  • [22] S. Marino, I.B. Hogue, C.J. Ray and D.E. Kirschner, Journal of Theoretical Biology 254, 178 (2008).
  • [23] A. Raue, C. Kreutz, T. Maiwald, J. Bachmann, M. Schilling, U. Klingmüller and J. Timmer, Bioinformatics 25, 1923 (2009).
  • [24] H. Liu, F. Liang, J. Wong, T. Fujiwara, W. Ye, K.I. Tsubota and M. Sugawara, Acta Mechanica Sinica 31, 446 (2015).
  • [25] S. Boujena, O. Kafi and N.E. Khatib, Mathematical Modelling of Natural Phenomena 9, 46 (2014).
  • [26] A.R. Ghigo, J.M. Fullana and P.Y. Lagrée, Journal of Computational Physics 350, 136 (2017).
  • [27] Z. Duanmu, M. Yin, X. Fan, X. Yang and X. Luo, Scientific reports 8, 874 (2018).
  • [28] K.K. Harrod, J.L. Rogers, J.A. Feinstein, A.L. Marsden and D.E. Schiavazzi, Frontiers in physiology 12, 666915 (2021).
  • [29] A.L. Goldberger, L.A. Amaral, L. Glass, J.M. Hausdorff, P.C. Ivanov, R.G. Mark, J.E. Mietus, G.B. Moody, C.K. Peng and H.E. Stanley, Circulation 101, e215 (2000).
  • [30] J. González-Sierra, L.G. Trujillo-Franco and H.F. Abundis-Fong, Computer Applications in Engineering Education 32, e22801 (2024).
  • [31] L.F.S. Coelho, Revista Brasileira de Ensino de Física 24, 47 (2002).
  • [32] D.G.G. Sasaki and V.L.B. Jesus, Revista Brasileira de Ensino de Física 39, e2403 (2017).

*

Correspondence email address: marcus.varanis@ufms.br

Editor-in-Chief:

Publication Dates

  • Publication in this collection
    26 Oct 2026
  • Date of issue
    2026

History

  • Received
    14 May 2026
  • Reviewed
    12 Aug 2026
  • Accepted
    18 Sept 2026
location_on
Sociedade Brasileira de Física - SBF Rua do Matão, travessa R, 187 - Edifício Sede - Cidade Universitária, São Paulo, SP, Brasil, CEP 05508-090, Tel: +55 (11) 3034-0429 - São Paulo - SP - Brazil
E-mail: rbef@sbfisica.org.br, marcellof@unb.br
rss_feed Acompanhe os números deste periódico no seu leitor de RSS
Ir para o topo