Fig 1.
Flowchart of the semantics-based automated model composition method.
The left column illustrates the general approach in the integration of bond graph models in CellML using SemGen, and the right column shows the same procedure specific to the ADAN circulation model. In both approaches, the bond graph models are created based on template models (1), and annotated using the SemGen Annotator (2). Later, depending on whether the system has similar larger compartments or any symmetry, the SemGen merger tool joins the modules in a number of steps (3). The amounts for the symbolic model parameters are allocated from a CellML file containing the annotated parameters and their values (4). In stage (3): HN: Head and Neck, H: Heart, RA: Right Arm, LA: Left Arm, T: Trunk, RL: Right Leg, LL: Left Leg.
Table 1.
Vessel properties description.
Fig 2.
Bond graph representation of a non-branching vessel.
C, R and I components show the mechanical properties of a vessel segment.
Fig 3.
Required bond graph template modules for the vessels in the ADAN open-loop model.
Depending on the type and location of a vessel, three template modules can be proposed: (A) initial segment; (B) intermediate segment; (C) terminal segment; (D) the schematic of the segments connections. Sf and {Se1,Se2} are sources of flow and pressure in bond graphs which are cardiac output and venous pressure in the ADAN open-loop model [25]. The components in green boxes are the added sections to the original bond graph configuration of Fig 2.
Fig 4.
Conservation equations at the terminal junctions in two bond graph modules.
Equal flows at 1 : v junction and equal potentials at 0 : u junction. The sum of potentials equals to the inward potential in the 1 : v junctions and the sum of flows equals to the outward flow in the 0 : u junctions.
Fig 5.
Conservation equations at the terminal junctions in two coupled bond graph modules.
vB in B is added to the conservation equation at 0 : uA* junction in A and uA* in A is added to the conservation equation at 1 : vB junction in B. Each terminal junction’s v or u in each module is added to the other module’s conservation equation, representing the addition of a bond.
Fig 6.
Bond graph modular connection of the vessel models.
v in the initial junction of the following module will be mapped to vx at the terminal junction of its preceding module. In the same way, u at the terminal junction of each module will be mapped to ux at the initial junction of its following module. vx and ux are auxiliary variables.
Fig 7.
The template bond graph module for intermediate vessels in our version of the ADAN open-loop model.
The number of vx variables depends on the maximum number of branches occurring in any segment. Here, four auxiliary variables corresponding to four branches are demonstrated.
Fig 8.
Lumped modules in the ADAN open-loop model.
These lumped modules will be connected in the final step using the SemGen merger tool to produce the whole ADAN open-loop model.
Fig 9.
Vessels network in the ADAN open-loop model.
The blue dashed shapes delineate the segments in each lumped module. The three bond graph templates of Fig 3 are shown in blue boxes for three exemplar segments. The segments network is adopted from [25].
Fig 10.
The SemGen merger tool visualisation for two modules.
The model of left ventricle output flow (LV.cellml) is merged with the model of the ascending aorta (ascending_aorta_C0.cellml). Time (t) and the amount of the flow (vLV) in the LV.cellml module are mapped to the time (t) and the source of flow (Sfin) variables in the ascending_aorta_C0.cellml module. The grey lines show the internal dependencies between the variables in each module and the orange and blue lines show the links between the modules.
Fig 11.
Comparison between the flows obtained from the ADAN open-loop model and our version of the model.
(A) Flow in the abdominal aorta; (B) flow in the radial artery; (C) flow in the vertebral artery; (D) flow in the femoral artery. The normalised root mean square errors (NRMSE) are represented as percentages.
Fig 12.
Comparison between the pressures obtained from the ADAN open-loop model and our version of the model.
(A) Pressure in the abdominal aorta; (B) pressure in the radial artery; (C) pressure in the vertebral artery; (D) pressure in the femoral artery. The normalised root mean square errors (NRMSE) are represented as percentages.