To assign fiber orientation throughout the myocardium according to the rules R1–R6 above, the LDRB algorithm takes four functions as inputs, representing the desired α and β angles within the septum (s) and the ventricular walls (w). The angles α and β are in degrees and
d is the transmural depth normalized from 0 to 1.
If non-linear interpolation functions are desired, these functions need to satisfy α
w(0) = α
s(0) = −α
s(1)
modulo 180° and β
w(0) = β
s(0) = −β
s(1)
modulo 180°. These conditions ensure that the coordinate systems used for assigning fiber orientation on the endocardium of Ω will be appropriately oriented, regardless of whether orientations are parametrized in the LV or RV wall.
The LDRB algorithm also requires the definition of the following surfaces in order to assign Dirichlet boundary conditions:
∂Ωapex: the apex of the ventricles
∂Ωbase: the base of the ventricles
∂Ωepi: the epicardial surface of the ventricles
∂Ωlv: the endocardial surface of the LV
∂Ωrv: the endocardial surface of the RV
For most studies, the surface ∂Ω
base can be extracted by taking a cutting plane at the apicobasal junction, and the surface ∂Ω
apex can be extracted by finding the point lying closest to the ventricular apex of Ω. The surfaces ∂Ω
epi, ∂Ω
lv, and ∂Ω
rv can then be extracted by choosing an arbitrary point on the epicardium, LV endocardium, and RV endocardium, then iteratively expanding from these three points along the surface of Ω until intersection with ∂Ω
base.