Introduction

In 2016, 320000 new cases and 220000 death of central nervous system tumors in the USA were reported by the University of Washington [1]. The main brain tumors consist of neurogliomas (about 50\(\%\)), pituitary tumors (about 15\(\%\)), meningiomas (about 21\(\%\)), and schwannomas (about 8\(\%\)) [2]. As for diagnosis, most tracers may reach tumors in the body very optionally when there is a rupture from the blood–brain barrier (BBB), where BBB is the site that drugs can be controlled restrictively to pass. So the fracture of the BBB can be examined by magnetic resonance imaging (MRI) and computed tomography (CT), which are two popular diagnostic pointers for brain tumors [3]. For this treatment, surgical operation, radiotherapy, and chemotherapeutics will be combined and against cancers [4].

Gliadel wafer is the first FDA-approved chemotherapy to cure brain tumors in 1996 [5]. The whole weight of this wafer is 200mg, with a thickness of 1mm and a diameter of 14.5mm, which can be inserted into the cavity at the location where the tumor had been partly excised in surgery. In the center of residual brain tumor, the average implantation of eight wafers sustainedly releases carmustine at a dosage of 61.6mg, bypassing the BBB [6, 7]. Before 2010, BCNU (carmustine) wafers were approved as an appurtenance to surgical operation and radiation therapy in sufferers against neurogliomas and recrudescent glioblastoma multiforme [8]. Comparing to systemic chemotherapy, this treatment, which avoids repetitive injections and keeps a high local concentration in the target site, makes an extended survival time [9]. In one clinical test, four patients have been implanted with BCNU wafer to treat glioblastoma multiforme, and the survival time is in the range of 14 to 33 months, which is longer than the average of nearly 15 months as the survival time reported in another clinical test by the European Organisation Research and Treatment of Cancer (EORTC). In order to improve the opportunity of favorable patient results, clinicians sometimes combine BCNU wafers with other radiotherapies and chemotherapies [8], because the experimental tools are difficult to measure drug distribution in tumor sites. However, numerical methods are able to simulate the drug release process from the injection site to the tumors [10].

Simulation researches for this are sharply rising in recent years. Saltzman and Radomsky [11] initially built a one-dimensional model to research the agent distributed and eliminated in the brain when the drug release from a polymer. Fung et al. [12] illustrated the spatial distribution of BCNU, containing the amount and concentration of drugs nearby the polymer implants upon a one-month period in the rat brain. Kalyanasundaram et al. [13] added FEM and construct a two-dimensional (2D) model to predict the agent distribution delivered to a rabbit brain. Wang et al. [14] and Tan et al. [15] updated the abstract model via three-dimensional human brain tumors and added the convection influences which could be significant after surgery. Arifin et al. [6, 7] constructed an ordinary differential equation (ODE) model, which assumed that the concentration is not related to time steps. In summary, all of the preceding studies offered advantageous knowledge for better therapeutics against brain tumors, emphasizing the contribution of mathematical simulation. Sometimes, combining the numerical methods in partial differential equations (PDEs) with the ODE system may describe the systemic model precisely. Actually, ODE is always considered the single variable or parameter, which can show some specific mechanisms, but it may lack the component of the dynamics in the spatial region of the tumor if the PDE is neglected [16].

The purpose of this study is mainly to do the two-dimensional PDE model for pressure in the brain tissue and carmustine releasing from Gliadel® wafers by numerical methods. To simplify the study, the domain of this problem used for modeling brain and tumor should be a bounded one, and it is restricted from \(R^3\) to \(R^2\), which stands for a slice of the brain . The drug release is researched inside the brain slice because the reduction of the dimension will significantly simplify the study to explain some potential phenomena. First method is the FEM, which is a modern computational method that is used for solving problems in the mathematical models. Here, a mass continuity equation, a constitutive equation, and a simple momentum equation in the brain tissue are integrated into a new elliptic equation that contains an unknown variable (pressure in the interstitial fluid) and can be discretized into a system of matrix formulation. In detail, this large system will be subdivided into smaller portions that are called finite elements. This can be attained by a special space discretization in the spatial dimensions, which is performed by the building of a mesh of the model geometry: a finite number of points will be contained in the giving domain for the numerical solution. The form of a boundary value problem finally converts to a system of algebraic equations, and then they are approximated by the unknown function in the domain. Since the practical problems in brain tissue are difficult to obtain accurate solutions, the variational methods will be utilized from the variable calculus to approximate a solution by minimizing an associated error function. After the discretization, the corresponding codes will be written into a flexible and general computer program AFEPack [17]; this package is actually a library of classes for finite element processing. Next, the numerical solution in every discretized point can be displayed by a visual software Open Data Explorer (OpenDX) which is able to handle the complex domains (like the human brain) along with measured or computed data. Afterward, the details of the simulation result will be obtained. Second is the FDM, and this numerical method is a direct way for solving PDE by approximating derivatives with finite differential. In this research, the given conservation equation of the concentration is the standard formulation of the diffusion–convection–reaction equation. After simplifying the equation in the cavity and the computational domain by a regular shape, the modified PDE will be discretized, or subdivided into a finite number of steps, then it is converted into a system of linear equations, and the solution value is approximated by solving the algebraic equations at those discrete points. Subsequently, the relevant codes will be created and compiled with the discretizing equation in MATLAB. Also, the effect of the convection flow is considered in an ODE model, following the former research in the references [6, 7] with some modifications. Moreover, by comparing the experimental data with the numerical results, it is captured that convection is significant and these methods can be utilized on other potential models, such as sustained release microspheres and oral extended release hydrophilic matrix tablets, for the further studies.

Models and methodologies

Mathematical model

The information of the tumor model is from [6]. The geometry of a patient brain tumor was acquired from MRI. This procedure could rebuild the brain geometry precisely of \(+/-\) 3 mm. The volume of the concrete tumor is 12.8 \(cm^3\), with an average radius (R) of this sphere of 14.5 mm. After complete tumor resection, the tumor remains about 60\(\%\) of an open cavity in the center part and the equivalent thickness (L) of the left tumor is around 2.3 mm around the leftover tumor. Afterward, eight wafers will be implanted in the cavity by Surgical cellulose [6, 7]. Figure 1 shows the site of the ventricle and brain tumor in the brain. Figure 2 portrays a simple image performance with a cut section of the brain. \(\partial \Omega _1\), \(\partial \Omega _2\), \(\partial \Omega _3\) are the different domain boundaries. Domain \(\Omega _1\) shows the normal tissue of the brain, domain \(\Omega _2\) delineates the remnant tumor part which is remained from the surgical operation, the portion of the excision cavity is shown in the domain \(\Omega _3\), and in the most inner domain \(\Omega _4\), there are the eight Gliadel wafer implants.

Fig. 1
figure 1

The model geometry of the brain, showing the presence of ventricle (the brown part), tumor (red part), and rest is the normal brain tissue

Fig. 2
figure 2

The model of the tumor in the brain. The region \(\Omega _1-\) the normal tissue, \(\Omega _2-\) the remnant tumor, \(\Omega _3-\) the cavity. The boundary \(\partial \Omega _1-\) the external boundary, \(\partial \Omega _2-\) boundary between residual tumor and brain normal tissues, \(\partial \Omega _3-\) boundary between the cavity and residual tumor. \(\Omega _4\) represents the wafer area. Eight blue lines represent the eight Gliadel wafers in the center of the cavity

Transport equations

In this research, the brain tumor is dealt with as a spatially homogeneous domain, due to the absence of in vivo data to demonstrate the heterogeneous distribution. The mass continuity equation in the interstitial space for the normal tissue can be expressed as:

$$\nabla \cdot \mathrm{v}=\mathrm{F}_\mathrm{bv},$$
(1)

where v is velocity vector in the interstitial space, \(\mathrm{F}_\mathrm{bv}\) represents the change of net fluid flow obtained from capillary in the blood circulation system. It also satisfies Starling’s law:

$$\mathrm{F}_\mathrm{bv}=\mathrm{L}_\mathrm{bv}\frac{\mathrm{S}}{\mathrm{V}}\left[ \mathrm{p}_\mathrm{bv}-\mathrm{p}_\mathrm{in}-\sigma _\mathrm{T}\left( \pi _\mathrm{bv}-\pi _\mathrm{in}\right) \right] ,$$
(2)

Here, \(\mathrm{L}_\mathrm{bv}\) is the hydraulic conductivity from the vascular wall, S is the vascular surface area, and V is the parallel volume in the normal tissue. \(\mathrm{p}_\mathrm{bv}\) and \(\mathrm{p}_\mathrm{in}\) are the pressure in the blood vessel and interstitial space, respectively. \(\pi _\mathrm{bv}\) is the osmotic pressure in the vascular space, and \(\pi _\mathrm{in}\) is the interstitial space osmotic pressures. \(\sigma _\mathrm{T}\) is the coefficient of osmosis reflection for the plasma proteins [18]. In the brain, due to the absence of lymphatic vessels by functional operation, the fluid loss in the lymphatic system can be neglected [19].

Both the normal tissue and brain tumor are regarded as a porous medium that satisfies Darcy’s law, because of drug transportation scale is not always shorter than the distance among the capillaries [20, 21].

The expression form of mathematical equation about this phenomenon is:

$$\begin{aligned} \rho \left( \frac{\partial \mathrm{v}}{\partial \mathrm{t}}+\mathrm{v} \cdot \nabla \mathrm{v}\right) =-\nabla \mathrm{p}_\mathrm{in}+\mu \nabla ^{2} \mathrm{v}+\frac{\mu }{\mathrm{K}} \mathrm{v}, \end{aligned}$$
(3)

where \(\rho\) and \(\mu\) are the interstitial space density and interstitial space viscosity, respectively. K is the normal tissue permeability , and t is time [22].

The velocity in the interstitial fluid could be further rewrite by the direct proportion of pressure gradient because of the Darcy’s law [6, 7, 14, 23]:

$$\mathrm{v}=-\frac{\mathrm{K}}{\mu }\nabla \mathrm{p}_\mathrm{in},$$
(4)

then a steady equation can be solved [24] by combining Eqs. (1), (2) and (4):

$$\begin{aligned} \nabla ^{2}{\mathrm{p}_\mathrm{in}}=\frac{\mu }{\mathrm{K}}\mathrm{L}_\mathrm{bv} \frac{\mathrm{S}}{\mathrm{V}}{\mathrm{p}_\mathrm{in}}-\frac{\mu }{\mathrm{K}}\mathrm{L}_{\mathrm{bv}} \frac{\mathrm{S}}{\mathrm{V}}[\mathrm{P}_\mathrm{bv}-\sigma _\mathrm{T}(\pi _\mathrm{bv}-\pi _\mathrm{in})]. \end{aligned}$$
(5)

The dimensionless modalities of mass continuity and motion equations could be shown to:

$$\begin{aligned} \tilde{\nabla } \cdot \tilde{\mathrm{v}}= \tilde{\mathrm{F}}_{\mathrm{bv}}, \end{aligned}$$
(6)
$$\begin{aligned} \frac{\partial \tilde{\mathrm{v}}}{\partial \tau }+ \tilde{\mathrm{v}} \cdot \tilde{\nabla } \tilde{\mathrm{v}}=-\frac{(\mathrm{p}_\mathrm{v}-\mathrm{p}_\mathrm{o})}{\rho \mathrm{v}_\mathrm{c}^{2}}\tilde{\nabla }\tilde{\mathrm{p}_\mathrm{in}}+\frac{1}{\mathrm{Re}}\tilde{\nabla }^{2}\tilde{\mathrm{v}}-\frac{1}{\mathrm{Re}}(\frac{\mathrm{L}^{2}_\mathrm{b}}{\mathrm{K}})\tilde{\mathrm{v}}, \end{aligned}$$
(7)

where \(\widetilde{\nabla }=\mathrm{L}_\mathrm{br}\nabla\) and \(\mathrm{L}_\mathrm{br}\) is the brain average radius. \(\tilde{\mathrm{v}}=\mathrm {v} / \mathrm{v}_{\mathrm{c}},\) here \(\mathrm{v}_{\mathrm {c}}\) is the scalar velocity in the interstitial space, i.e. \(1 \times 10^{-7}\) m/s in the brain tissue. \(\mathrm{p}_\mathrm{v}\) and \(\mathrm{p}_\mathrm{o}\) are the pressure from ventricle part and normal tissue domain, respectively, and \(\widetilde{\mathrm{p}}_\mathrm{in}=\left( \mathrm{p}_\mathrm{in}-\mathrm{p}_{0}\right) /\left( \mathrm{p}_\mathrm{v}-\mathrm{p}_{0}\right)\) is the dimensionless pressure [7]. \(\tau\) is the dimensionless time, and the form of \(\mathrm {Re}=\rho \mathrm{L}_\mathrm{b} \mathrm{v}_\mathrm{c} \mu ^{-1}\) is Reynolds number.

In the normal tissue, drugs could be divided into two various forms as free (F) and bound (B). Moreover, brain normal tissue is constituted by three compartments: cell membrane(CM), extracellular/interstitial space (ES), and intracellular space (IS). Only drugs in free form could cross through the CM into the interior space [25]. The drug transport among three compartments is graphically depicted in Fig. 3.

Fig. 3
figure 3

The situation for drug transport in ES, CM, and IS

The drug concentration in both two forms can be described by:

$$\begin{aligned} \begin{array}{l}F=\alpha F_{E S}+\beta F_{I S}+(1-\alpha -\beta ) F_{C M} \\ B=\alpha B_{E S}+\beta B_{I S}+(1-\alpha -\beta ) B_{C M}, \end{array} \end{aligned}$$
(8)

Here, \(\alpha\) is the extracellular spaces volume fraction, and \(\beta\) is the cell interior volume fraction. Due to there is no elimination or bound effect between drugs and proteins on cytomembrane, \(B_{CM}\), the equivalent agent concentration in bounded state, is assumed to be 0 [25].

In extracellular space, the availability of the free drug is related to drug transport by diffusion, convection, metabolism, and local proteins binding. Then the drug concentration equation could be demonstrated by:

$$\begin{aligned} \frac{\partial F}{\partial t}=\alpha D_{E S} \nabla ^{2} F_{E S}-\nabla \cdot \left( {v} F_{E S}\right) -\alpha \left( k_{bbb}+k_{e}\right) F_{E S}-\beta k_{e} F_{I S}-\frac{\partial B}{\partial t}, \end{aligned}$$
(9)

where \(D_{ES}\) is agent diffusivity in the extracellular space, t is time, \(k_{bbb}\) is the elimination constant for agent passing the BBB, \(k_{e}\) is the elimination velocity because of reactions by enzymatic and non-enzymatic processes. By presuming the linear relationship of free and bound drugs concentration [6, 7, 26], and the equivalence of free drugs among ES, CM, and IS, \((P_{IS-ES}=F_{IS} / F_{ES}; P_{CM-ES}=F_{CM} / F_{ES}\)) [11, 22, 27], the agent concentration equation is the simplified form as follow:

$$\begin{aligned} \frac{\partial F_{ES}}{\partial t}=D^{*} \nabla ^{2} F_{ES}-{v}^{*} \cdot \nabla F_{ES}-k^{*} F_{ES}, \end{aligned}$$
(10)

Here, \(\alpha ^{*}=\alpha \left( 1+K_{ES}\right) +\beta P_{IS-ES}\left( 1+K_{IS}\right) +(1-\alpha -\beta ) P_{C M-E S}\) is a parameter value that reflects the agent capacities of local binding and cell membrane partitioning, \(\mathrm{v}^{*}=\mathrm{v}/\alpha ^{*}\) is the apparent velocity in the extracellular space, and \(D^{*}=(\alpha /\alpha ^{*})D_{ES}\) is the agent apparent diffusion coefficient in brain tissue. \(k^{*}=\left[ a k_{bbb}+(a+\beta )k_{e}+F_{v}\right] /\alpha ^{*}\) is the apparent elimination constant [7, 27].

In the cavity, carmustine is in the interstitial fluid for transport. Diffusion and convection can influence without any limitations due to the local binding with proteins and cell membrane partitioning can be ignored. Therefore, the diffusion–convection–reaction equation of drug distribution in the extracellular space can be described by the following:

$$\begin{aligned} \frac{\partial F_{\mathrm {ES}}}{\partial t}=D_{\mathrm {ES}} \nabla ^{2} F_{\mathrm {ES}}-{v} \cdot \nabla F_{\mathrm {ES}}-k_{\mathrm {c}} F_{\mathrm {ES}}, \end{aligned}$$
(11)

where v is the velocity vector in the extracellular space and could be calculated by the Eq. (4) [6], and \(k_{c}\) is the elimination parameter in the open cavity [28].

Parameters

Summarized in two tables, Tables 1 and 2 provide the equation parameter values related to the brain tissue, and anticancer drugs [29]. In human brain, the entire flow speed of interstitial fluid is approximately \(5.83\times 10^{-6}\) kg/s [30, 31]. The initial concentration is assumed to be 0.05 \(kg/m^{3}\) due to the ratio of dosage of carmustine in each wafer to the volume of the cavity by surgically removed.

Table 1 Parameters in the brain tissues
Table 2 Parameter values about carmustine

Numerical methods

The method on interstitial pressure

The mathematical model about the \({p_{in}}\) distribution in the brain is based on AFEPack and FEM, Aiming at the Eq. (5), discretization is necessary by using the Ritz-Galerkin method. A simple picture about the boundary and domain can be showed by Fig. 4.

Fig. 4
figure 4

The model of the ventricle. The region \(\Omega _1-\) the normal tissue, The region \(\Omega _{ven}-\) the ventricle surface, The boundary \(\partial \Omega _1-\) the external boundary, \(\partial \Omega _{ven}-\) boundary on the ventricle part

Here we let

$$u={\mathrm{p}_\mathrm{in}},$$
$$a_{1}=\frac{\mu }{\mathrm{K}}\mathrm{L}_\mathrm{bv} \frac{\mathrm{S}}{\mathrm{V}},$$
$$b_{1}=\frac{\mu }{\mathrm{K}}\mathrm{L}_\mathrm{bv} \frac{\mathrm{S}}{\mathrm{V}}[\mathrm{P}_\mathrm{bv}-\sigma _\mathrm{T}(\pi _\mathrm{bv}-\pi _\mathrm{in})],$$

then Eq. (5) can be written as follow:

$$\begin{aligned} \nabla ^{2}{u}=a_{1}{u}-b_{1} \quad \text {in} \quad \Omega _{1}, \end{aligned}$$
(12)
$$\begin{aligned} \begin{array}{lll} u(x,y)=1447.4 \quad \text {on} \quad \partial \Omega _{ven}, \end{array} \end{aligned}$$
(13)
$$\begin{aligned} \begin{array}{lll} u(x,y)=657.9 \quad \text{ on } \partial \Omega _{1}, \end{array} \end{aligned}$$
(14)

where \(\Omega _{1}\) is the open boundary about the normal brain, with a piecewise and smooth boundary \(\partial \Omega _{1}\), \(\overline{\Omega }=\Omega _{1}\cup \partial \Omega _{1}\).

If U \(\in\) \(H^{1}(\Omega _{1}) \times H^{1}(\Omega _{1})\) is a vector in 2D, then

$$\begin{aligned}\iint _{\Omega _{1}} {\text {div}} \ U d {x} d {y}=\iint _{\Omega _{1}} \nabla \cdot U d {x} d {y}=\int _{\partial \Omega _{1}} U \cdot \mathrm{n} d r,\\ \end{aligned}$$
(15)

where \(H^{1}(\Omega _{1})\) a Hilbert space, n is the unit normal vector which points at the boundary \(\partial \Omega _{1}\), and dr is a line element.

Let \(U=v \nabla u=\left[ v \frac{\partial u}{\partial x}, v \frac{\partial u}{\partial y}\right] ^{T}\), then

$$\begin{aligned} \iint _{\Omega _{1}} \nabla \cdot \mathrm{U} d x d y&=\iint _{\Omega _{1}}(v \Delta u + \nabla u \cdot \nabla v) d x d y \\&=\int _{\partial \Omega _{1}} \mathrm{U} \cdot \mathrm{n} d r \\&=\int _{\partial \Omega _{1}} v \nabla u \cdot \mathrm{n} d r=\int _{\partial \Omega _{1}} v \frac{\partial u}{\partial n} d r, \end{aligned}$$
(16)

where \(\mathrm{n}=(n_{x}, n_{y})(n_{x}^{2}+n_{y}^{2}=1)\) is the unit normal vector, then \(\frac{\partial u}{\partial n}=\nabla u \cdot \mathrm{n}=n_{x} \frac{\partial u}{\partial x}+n_{y} \frac{\partial u}{\partial y}\).

The format of a linear elliptic PDE in second order is

$$\begin{aligned} A(x, y) u_{x x}&+2 B(x, y) u_{x y}+C(x, y) u_{y y}+D(x, y) u_{x}+E(x, y) u_{y} \\ &+F(x, y)+G(x, y) u=0 \end{aligned}$$
(17)

the discriminant of this equation is \(B^{2}-AC<0\). The format of a self-adjoint elliptic PDE in second order is

$$\begin{aligned} -\nabla \cdot (m(x, y) \nabla u)+n(x, y) u=F(x, y), \end{aligned}$$
(18)

let \(u(x, y) \in H^{2}(\Omega _{1})\), \(v(x, y) \in H^{1}(\Omega _{1})\), then

$$\begin{aligned} \iint _{\Omega _{1}} v \Delta u d x d y=\int _{\partial \Omega _{1}} v \frac{\partial u}{\partial n} d r-\iint _{\Omega _{1}} \nabla u \cdot \nabla v d x d y. \end{aligned}$$
(19)

Transforming the equation and adding an arbitrary test function v(xy) \(\in H^{1}(\Omega _{1})\), then

$$\begin{aligned} \iint _{\Omega _{1}}(-\nabla ^{2}u)+a_{1}u) v d x d y=\iint _{\Omega _{1}} b_{1} v d x d y, \end{aligned}$$
(20)

and utilizing the integration by parts then the equation will be as follow:

$$\begin{aligned} \iint _{\Omega _{1}}(\nabla u \cdot \nabla v+a_{1} u v) d x d y-\int _{\partial \Omega _{1}} v u_{n} d r. \end{aligned}$$
(21)

The weak form of this is

$$\begin{aligned}\begin{aligned} \iint _{\Omega _{1}}( \nabla u \cdot \nabla v+a_{1} u v) d x d y=&\iint _{\Omega _{1}} b_{1} v d x d y \\ &+\int _{\partial \Omega _{N}} g(x,y) v(x, y) d r \quad \\&\quad for \ \forall v(x, y) \in H^{1}(\Omega _{1}), \end{aligned}\end{aligned}$$
(22)

here, \(\partial \Omega _{N}\) is called as Neumann boundary condition.

The solution space of the above equations is

$$\begin{aligned}\begin{aligned} V=&\left\{ v(x, y), ~for~ v(x, y)=0, ~and ~ (x, y) \in \partial \Omega _{D},\right.\\&\left. ~for~ v(x, y) \in H^{1}(\Omega _{1})\right\} , \end{aligned}\end{aligned}$$
(23)

here \(\partial \Omega _{D}\) is Dirichlet boundary condition.

Then, the definition of the bilinear format is

$$\begin{aligned} B(u, v)=\iint _{\Omega _{1}}(\nabla u \cdot \nabla v+a_{1} u v) d x d y, \end{aligned}$$
(24)

and the linear form is

$$\begin{aligned} L(v)=\iint _{\Omega _{1}} b_{1} v d x d y. \end{aligned}$$
(25)

A basis function of the piecewise linear functions in \(H^{1}(\Omega _{1})\) can be defined as

$$\begin{aligned} \psi _i (x_{j})=\left\{ \begin{array}{cc} 1 ,&{} \text{ when } i=j; \\ 0 ,&{} \text{ otherwise } . \end{array}\right. \end{aligned}$$
(26)

Then

$$\begin{aligned} \psi _i \in V_h, ~~ U = \sum _{i=1}^N u_i \psi _i, ~~u_i ~~\text {are unknown scalars}, \end{aligned}$$
(27)

where \(V_{h}=\left\{ v(x, y)\right.\) is continuous in \(\Omega _{1}\) and piecewise linear over each non-overlapping triangles \(\left. \left. v(x, y)\right| _{\partial \Omega _{1}}=0\right\}\).

$$\begin{aligned} v = \sum _{i=1}^N v_i \psi _i, \end{aligned}$$
(28)

then

$$\begin{aligned} B\left(\sum _{j=1}^N \left(U_{j} \psi _{j}, \psi _{i}\right)\right)=L(\psi _{i}), ~j = 1,\dots ,N, \end{aligned}$$
(29)

that is

$$\begin{aligned} \sum _{i=1}^N [(\nabla \psi _i, \nabla \psi _j ) + (a_{1}\psi _i, \psi _j)]u_i = (b_{1},\psi _j), ~j = 1,\dots ,N. \end{aligned}$$
(30)

The method on concentration

The simulation of the concentration in cavity is supported by MATLAB via second-order FDM, and each term about discretization of the government equation is gained by the Euler method, first upwind scheme and second-order explicit scheme. Cavity is regarded as a square with length \(r_{c}\) is 8.7 mm. The agent concentration will be negligible in the \(\Omega _{1}\), \(\Omega _{2}\), \(\Omega _{3}\) at the initial condition.

Firstly we let

$$u=F_{ES},$$
$$a=D_{ES},$$
$$b=\mathrm {v},$$
$$c=k_{c}$$

the next step is to choose integers \(n=64\) to define step size \(h=(x_{n}-x_{1})/n\), where \(x_{n}\) and \(x_{1}\) are the end point and start point of given interval in x axis, respectively, and do the same as in y axis. k is time step size.

The Eq. (11) can be expressed by:

$$\begin{aligned} \frac{\partial u}{\partial t}=a\left(\frac{\partial ^{2}u}{\partial x^{2}}+\frac{\partial ^{2}u}{\partial y^{2}}\right)-b(u_{x}+u_{y})-cu, \end{aligned}$$
(31)
$$\begin{aligned} \\ {}&\frac{\partial u}{\partial t}(x_{l},y_{m},t_{n})=\frac{1}{k}\left(u^{n+1}_{l,m}-u^{n}_{l,m}\right), \end{aligned}$$
(32)
$$\begin{aligned}&a\left(\frac{\partial ^{2}u}{\partial x^{2}}+\frac{\partial ^{2}u}{\partial y^{2}}\right)(x_{l},y_{m},t_{n})\\&\quad= \ \frac{a}{h^{2}}\left(u^{n}_{l-1,m}-2u^{n}_{l,m}+u^{n}_{l+1,m}+u^{n}_{l,m-1}-2u^{n}_{l,m}+u^{n}_{l,m+1}\right)\\&\quad= \ \frac{a}{h^{2}}\left(-4u^{n}_{l,m}+u^{n}_{l-1,m}+u^{n}_{l+1,m}+u^{n}_{l,m-1}+u^{n}_{l,m+1}\right), \end{aligned}$$
(33)
$$\begin{aligned} -b(u_{x}+u_{y})(x_{l},y_{m},t_{n})=-\frac{b}{h}\left(u^{n}_{l,m}-u^{n}_{l-1,m}+u^{n}_{l,m}-u^{n}_{l,m-1}\right), \end{aligned}$$
(34)
$$\begin{aligned} \begin{aligned} -cu=-cu^{n}_{l,m}, \end{aligned} \end{aligned}$$
(35)
$$\begin{aligned} u^{n+1}_{l,m}=& \ u^{n}_{l,m}-cku^{n}_{l,m}+\frac{ak}{h^{2}}\left(-4u^{n}_{l,m}+u^{n}_{l-1,m}+u^{n}_{l+1,m}+u^{n}_{l,m-1}+u^{n}_{l,m+1}\right)\\&-\frac{bk}{h}\left(u^{n}_{l,m}-u^{n}_{l-1,m}+u^{n}_{l,m}-u^{n}_{l,m-1}\right)\\=& \ \left(1-ck-\frac{4ak}{h^{2}}-\frac{2bk}{h}\right)u^{n}_{l,m}+\left(\frac{ak}{h^{2}}+\frac{bk}{h}\right)\left(u^{n}_{l-1,m}+u^{n}_{l,m-1}\right)\\&+\frac{ak}{h^{2}}\left(u^{n}_{l+1,m}+u^{n}_{l,m+1}\right).\\& \text {(explicit scheme)} \end{aligned}$$
(36)
$$\begin{aligned} u^{n}_{l,m}=& \ \left(1+ck+\frac{4ak}{h^{2}}+\frac{2bk}{h}\right)u^{n+1}_{l,m}-\left(\frac{ak}{h^{2}}+\frac{bk}{h}\right)\left(u^{n+1}_{l-1,m}+u^{n+1}_{l,m-1}\right)\\&-\frac{ak}{h^{2}}\left(u^{n+1}_{l+1,m}+u^{n+1}_{l,m+1}\right). \\&\text {(implicit scheme)} \end{aligned}$$
(37)

Boundary condition

The ventricle surface pressure and normal brain tissue pressure are chosen as 1447.4 Pa [33] and 657.9 Pa [36], respectively. All variables among the \(\partial \Omega _{1}\), \(\partial \Omega _{2}\), \(\partial \Omega _{3}\) are presumed to be continuous.

Results and discussion

Numerical results of \(\mathrm{p}_\mathrm{in}\) distributed in the brain

Figure 5 displays the 2D distribution of the interstitial pressure around the ventricle to the whole brain, the high pressure is red surrounding the ventricle, which diffuses to the external environment of the brain. This is a steady situation in tumor, due to the simplification of \(\mathbf {v}\) is not relevant with t in Eq. (4). In order to show the numerical convergence, a relatively dense mesh will be assumed as the analytic solution (after four times refinement), then by comparing the coarse mesh and the assumptive true solution, the L2-error and L1-error can be obtained by comparing the next mesh with the above one with their convergence rate. The refinements of mesh grids are shown in Fig. 6, and the meshes are more and more smooth because of the increase of elements, with the error in Table 3.

Fig. 5
figure 5

The steady state of \(\mathrm{p}_\mathrm{in}\) contour on the surface of the brain

Fig. 6
figure 6

Four successively refined mesh, with (a) 12028 elements, (b) 48112 elements, (c) 192448 elements, (d) 769792 elements

Table 3 The error and the convergence rate

Numerical results of drug distribution in the cavity

Equation (9) has a dimensionless format, which could be transformed as

$$\begin{aligned} \frac{\partial \Gamma }{\partial \tau }=\widetilde{\nabla }^{2} \Gamma -{\text {Pe}}_{\mathrm {c}} \widetilde{{v}} \cdot \widetilde{\nabla } \Gamma -\Gamma , \end{aligned}$$
(38)

where \(\Gamma =F_{ES} / F_{\mathrm {ES,eff}}\) is dimensionless agent concentration normalized to the effective therapy of concentration, \(\tau =tk_{c}\) is the time in dimensionless form of the agent elimination due to degradation into the cavity, \(L_{c}(=1\) cm) is the length scale of the cavity size, \(\widetilde{\mathrm{v}}={\mathrm{v}}/{\mathrm{v}}_\mathrm{c}\) is the dimensionless extracellular space velocity. In this simulation, \({\mathrm{v}}=8\times 10^{-7}\)  m/s is volume-averaged velocity. P\(e_{c}={\mathrm{v}}_{c}L_{c}/D_{ES}=2\) is a Peclet number that observes the significance of convection influence diffusion into the open cavity [6, 7]. \(\xi _{c}=x_{c}/L_{c}\) is distance from cavity interface (\(x_{c}\)) normalized to the cavity size length scale (\(L_{c}\)).

Combining with the assumption in Subsection 2.4 and the concentration on boundary \(\partial \Omega _{3}\) which is regarded to be 0, Fig. 7 reveals the numerical results of the dimensionless concentration \(\Gamma\) against to the dimensionless distance \(\xi _{c}\). There are two significant messages which can be shown by the following pictures. Firstly, the carmustine concentration reaches effective therapeutic conditions (\(\Gamma >1\)) nearly before 120h. After that, the drug dimensionless concentration decreases below the effective concentration (\(\Gamma <1\)). Next, the loss of carmustine concentration in the cavity is mainly by the diffusion. Due to the coefficient of convection term v is assumed to be the average one, the influence of convection is showed by the concentration that shifts in the upper right corner. The domain is assumed to be a regular geometry, which shows the numerical results in this mesh after discretizing. The direction of the upper right means a specific trend primarily affected by the combination of diffusion, convection and reaction in this 2D plane. It depends on the establishment of the coordinate system and the drug placement in the initial time., and the penetration to remnant tumor is limited, even at the start time when carmustine concentration is high in the cavity. The details of this are discussed in next section.

Fig. 7
figure 7

The contour dimensionless concentration on the cavity surface in six different times. (a) 0 hour, (b) 8 hour, (c) 24 hour, (d) 48 hour, (e) 72 hour, (f) 120 hour. x, y are both the dimensionless distance \(\xi _{c}\) in two directions. The changes of \(\Gamma\) are revealed by the color bar

Approximately 120h is the period of the carmustine releasing in vivo; As for Gliadel wafers in the interstitial fluid, the period of complete degradation of this wafer is from 42 to 56 days, and the metabolic elimination studies have shown that the products of carmustine degradation are excreted mainly by urine [35], which is nearly anastomotic in the above simulation.

The reason that the FEM is not utilized on this diffusion–convection–reaction equation is that when the influence of convection is far greater than that of diffusion, it will bring many difficulties to the numerical solution, such as numerical oscillation and numerical excessive diffusion. Hence, to maintain the stability of the final results, FDM seems a satisfactory way to simulate the process. On the whole, the two numerical methods are feasible to estimate the different conditions in the brain tissue and to simulate the approximate results in the different parameters.

Drug penetration to the remnant tumor

To consider the influence of convection flow precisely, the hypothetical lines I, II, III will represent three different directions of convection flow. The diffusion permeates from cavity to remnant tumor because of the changes of concentration, which is on account of the gradient of the concentration. As a consequence, the convection flow inline I cooperates with diffusion, thereby enhancing the penetration. Along with II is the place where convection is neglectable due to it is vertical to the cavity surface. As for line III, convection restricts the effect of diffusion. Hence, in this region, the permeation is suppressed [7]. (see Fig. 8)

Fig. 8
figure 8

The direction of three different lines to show the convection flow

One simple preceding equation is analyzed under the assumption of quasi-steady conditions, which can be studied by:

$$\begin{aligned} 0=\frac{d^{2} \Gamma _{t}}{d \xi ^{2}}-{\text {Pe}}_{t}\left( \frac{v_{x}}{ \mathrm{v}_{c}}\right) \frac{d \Gamma _{t}}{d \xi }-\Gamma _{t}, \end{aligned}$$
(39)

where \(\Gamma _{\mathrm {t}}=F_{ES} / F_{\mathrm {c}}\) is the dimensionless agent concentration uniformized to the interfacial surface between the open cavity and remnant tumor, \(\left( F_{c}\right)\) and \(\xi =x / L_{t}\) is the dimensionless distance from the interfacial surface between the open cavity and remnant tumor (x) uniformized to the length scale of the diffusion/reaction \(L_{t}\)(\(L_{t}=\sqrt{D^{*}/k^{*}}=0.3\) mm). \(Pe_{t}\) is the Peclet number which observes the significance of convection effect on diffusion in the tumor tissue. For carmustine, \(Pe_{t}\) is 0.06. \(\mathrm{v}_{c}=1\times 10^{-7}\) (m/s) is the characteristic velocity in both remnant tumor and nearby normal tissue.

The boundary conditions contain: (i) the agent concentration is 1 at the beginning of penetration in the cavity/remnant interfacial surface \(\left( \Gamma _{\mathrm {t}}=1 ~\text{ for } ~\xi =0\right)\), (ii) the agent concentration is nearly 0 at infinite site \(\left( \Gamma _{\mathrm {t}}=0 ~\text{ for } ~\xi =\infty \right)\). Hence, for the velocity (\(v_{x}\)) is an unchanged parameter, the form of solution can be expressed by following:

$$\begin{aligned} \Gamma _{t}=e^{({p-\sqrt{1+p^{2}}) \xi }}, \end{aligned}$$
(40)

where \(p=v_{x}/2\sqrt{k^{*}D^{*}}\). p reflects the importance of convection influencing carmustine penetration [6, 7].

Figure 9 compares the numerical solutions about \(\Gamma _{\mathrm {t}}\) versus the penetration distance (x/L, here L is 2.3 mm, which represents the thickness of the remnant tumor, ). For line I \((p=0.12)\), convection can stretch the distance of penetration enhancing drug penetration, compared with the pure diffusion and reaction. It seems to be the opposite for line III \((p=-0.18)\), where the penetration could be repressed by convection due to the concentration is nearly 0 at the end of the boundary. Along line II \((p=0.02)\), the penetration is mainly influenced by diffusion or reaction [7]. Nonetheless, the convection effect slightly on the concentration profiles, which means that carmustine transport is dominated by diffusion. However, the numerical results are not totally accurate because the assumption of the tumor is infinite. In the normal tumor, there will be a boundary \(\partial \Omega _{2}\) to control the decreasing concentration.

Fig. 9
figure 9

The carmustine penetration among line I, (i.e. data 1), line II, (i.e. data 2), line III, (i.e. data 3). The concentration is from 0 to above 0.4 along line I, for line II, the concentration is below the 0.4, and it is nearly 0 when \(\xi\) is closed to 1 due to the inhibiting effect of convection

In dimensionless analysis, the value of relevant parameters, like \(\Gamma _{\mathrm {t}}\) and \(\xi\), are strictly set to be between 0 and 1 for the purpose of obtaining the more intuitive picture. Otherwise, it would not be linear. In order to show the two-dimensional simulation in the remnant tumor, it is assumed that there is a steady concentration on the boundary between cavity and remnant tumor which is a semiannular region, and the inner part is the cavity. Because of the Peclet number \(Pe_{t}\) = 0.06 in remnant tumor is much less than the \(Pe_{c}\) = 2 [6], the convection in this result is not as obvious as former study, the prominent part is the diffusion term which can be showed by Fig. 10.

Fig. 10
figure 10

The change from boundary between the cavity and remnant tumor to the outer tumor layer with \(\tau\) from 0 to 2.5

Combining with the simulation in the Fig. 7, it is almost certainly that the drug will release to a specific direction due to the influence of diffusion convection and reaction. In the actual administration of the drug, it may produce a better effect by following the integrate direction.

The convection affected by two drugs in monkey brain

In the previous research, the site of the drug was gained by scanning the coronal plane and the concentration was estimated from the edge of the polymer implant at different days [25]. it may reduce the influence of drug penetration by convection because the fluid flow is from the ventricle to the outer boundary of the brain. Also, all tests here were proceeded in normal tissue. Figure 11 shows the concentration of two drugs in numerical data calculated by Eq. (40) comparing with the experimental statistics which are gained from monkey brain [25]. Y is the dimensionless concentration in the normal tissue, and \(\mathrm{X}=x_{n}/L_{n}\) represents the dimensionless distance from the surface of the polymer pellet in the normal brain. where \(L_{n}=0.3mm\) is the diffusion/reaction length scale. In Fig. 11(a), as p is between 0.8 and 2.2, the convection would exist in the monkey brain [6]. The penetration of carmustine is heightening on day 7 and day 14 (\(p=2.2\)), and it is not obvious on day 30 (\(p=0.8\)). This may be influenced by the vanishment of the edema or the rate of drug penetration is retarded. For Fig. 11(b), \(p^{'}\) is the importance of convection influencing paclitaxel penetration with the fitted value from 0.5 to 0.3, the penetration of paclitaxel in day 1 (\(p^{'}=-0.5\)) is more enhanced than the data in day 3 and day 5 (\(p^{'}=0.3\)), this may advice that the velocity of paclitaxel penetration is larger than carmustine, or it is influenced rarely by the edema. In the numerical solution, the more enhanced penetration will be obtained if the p or \(p^{'}\) is larger.

Fig. 11
figure 11

(a) carmustine. (b) paclitaxel. The numerical models of penetration of two drugs compared with the experimental statistics, respectively. The Y represents the dimensionless concentration in the normal tissue, and the X represents the dimensionless distance from the surface of the polymer pellet

Conclusion

This study explores the concrete simulation (pressure, concentration) in the brain tumor, which demonstrates that numerical methods are effective ways to combine with the process of drug release and provides a mechanistic explanation for clinical tests. Although diffusion is the dominant transportation way, the influence of the convection is significant, especially in the remnant tumor after surgery due to the concentration moves to a nearly fixed direction. Besides, these simulation results can be regarded as a guide for remedy optimization and dynamic analysis of other drugs (paclitaxel) for tumor treatment. Moreover, the mathematical model may have a wide application on drug release in multiple dosage forms, such as long sustained release microspheres, oral extended release hydrophilic matrix tablets, hydrogel, and sustained release topical rings.