Processing math: 100%
Skip to contents

Developer notes for computing the size integral

In libpspm, the computation of this integral depends on the solver method. For different solvers, the integral is defined as follows:

FMU: I=Ji=i0hiwiui

EBT: I=Ji=i0wiNi, with x0=xb+π0/N0

CM : I=Ji=i0hi(wi+1ui+1+wiui)/2

where i0=argmax(xixlow), hi=xi+1xi, and wi=w(xi).

If interpolation is turned on, hi0=xi0+1xlow, whereas u(xlow) is set to u(xi0) in FMU and calculated by bilinear interpolation in CM (See Figure). Interpolation does not play a role in EBT.

In the CM method, the density of the boundary cohort is obtained from the boundary condition of the PDE: ub=B/g(xb), where B is the input flux of newborns. In the current implementation of the CM method, B must be set to a constant. In future implementations which may allow real-time calculation of B, ub must be calculated recurvisely by solving ub=B(ub)/g(xb), where B(ub)=xmxbf(x)u(x)dx.