Tutorials › Quantitative Systems Pharmacology (QSP) › Boundary and Initial Conditions for Tissue Models

Spatial and Agent-Based Approaches · Tutorial 218 of 799

Boundary and Initial Conditions for Tissue Models

You will learn to assign initial concentrations and translate fixed-concentration, specified-flux, and finite-exchange tissue interfaces into consistent diffusion boundary conditions.

Advanced 12 min read

What You'll Learn

  • Distinguish an initial condition from a boundary condition in a diffusion model.
  • Write Dirichlet, Neumann, and Robin conditions using outward flux conventions.
  • Represent an impermeable tissue surface and check what it implies for concentration gradients.
  • Formulate finite exchange with an external compartment and check the sign and units of flux.
  • Check boundary-condition compatibility with the initial concentration profile.
  • Diagnose common physical and mathematical errors in choosing boundary conditions.

Why Diffusion Models Need Conditions at the Boundary

A diffusion equation describes how concentration changes inside a spatial domain, but it does not by itself say what concentration enters the calculation or what happens where tissue meets its surroundings. Those details are supplied by an initial condition and boundary conditions. They are not interchangeable: the initial condition specifies the state throughout the tissue at the starting time, while boundary conditions specify how the tissue interacts with its surroundings over time.

Consider a fixed tissue region \(\Omega\), with position \(\mathbf{x}\), time \(t\), concentration \(c(\mathbf{x},t)\), and constant, isotropic diffusion coefficient \(D>0\). For this tutorial, assume diffusion is the only process changing concentration in the tissue. The model is

$$ \frac{\partial c}{\partial t}=D\nabla^2 c,\qquad \mathbf{x}\in\Omega,\quad t>0. $$

Here \(D\) has units of length squared per time, and \(c\) has units of amount per volume. The diffusive flux vector, defined as amount crossing unit area per unit time, is \(\mathbf{J}=-D\nabla c\). On a smooth part of the boundary, let \(\mathbf{n}\) be the outward unit normal and define outward flux as \(J_{\mathrm{out}}=\mathbf{J}\cdot\mathbf{n}=-D\,\partial c/\partial n\). Positive outward flux means material leaves the tissue; negative outward flux means it enters.

Definition: An initial condition specifies \(c(\mathbf{x},0)=c_0(\mathbf{x})\) at every point in the tissue. A boundary condition specifies a concentration, flux, or relationship between them on the boundary \(\partial\Omega\) for \(t>0\). Together with the diffusion equation, they define a particular diffusion problem.

Initial Conditions: What Is Present at the Start?

An initial concentration profile \(c_0(\mathbf{x})\) may be uniform or spatially varying. It should be specified over the entire modeled tissue, have physically meaningful units, and ordinarily be nonnegative for a concentration. A single initial value is sufficient only for a well-mixed model or a spatial model with an explicitly uniform initial state. In a tissue model, the profile can encode gradients created before the modeled time begins.

Initial values also need to fit the model's boundary conditions if a smooth solution is expected immediately. For example, if a boundary is held at a fixed concentration from \(t=0\), the initial concentration at that boundary should equal the imposed value. If a no-flux condition holds from \(t=0\), the initial normal gradient should be zero there. When these conditions do not match, the model may still be interpreted with a less regular solution, but it can have a sharp transient near the boundary at the start. This mismatch is a warning to check whether the specified initial state and boundary process are physically consistent.

Worked Example: Initial Profile in an Impermeable Slab

A one-dimensional tissue slab occupies \(0\leq x\leq L\), where \(L=0.10\) cm. Suppose \(D=2.0\times10^{-6}\) cm\(^2\)/s, and the initial concentration is \(c_0(x)=0.40+0.10\cos(\pi x/L)\) mg/cm\(^3\). Both slab faces are impermeable. Check the initial values and compatibility with the boundary conditions.

At the left face, \(c_0(0)=0.40+0.10=0.50\) mg/cm\(^3\). At the right face, \(c_0(L)=0.40-0.10=0.30\) mg/cm\(^3\). The entire profile lies between these values and is nonnegative.

The derivative is \(\partial c_0/\partial x=-(0.10\pi/L)\sin(\pi x/L)\) mg/cm\(^4\). At both \(x=0\) and \(x=L\), the sine is zero, so the normal concentration gradient is zero at each face. Thus the profile is compatible with no flux at both boundaries. The profile is not uniform, but diffusion can redistribute concentration within the slab while the impermeable faces prevent material crossing them.

Three Standard Boundary Conditions

A boundary condition is selected to represent the physical interface, not merely because it is mathematically convenient. The three common forms below describe distinct assumptions about what is controlled at that interface.

ConditionMathematical formTypical interpretation
Dirichlet\(c=c_b\)Surface concentration is prescribed, often by a large, well-mixed reservoir.
Neumann\(-D\,\partial c/\partial n=q_b\)Outward flux is prescribed; impermeability is the special case \(q_b=0\).
Robin\(-D\,\partial c/\partial n=P(c-c_{\mathrm{ext}})\)Flux depends on the difference between tissue-surface and external concentrations.

In this table, \(c_b\) is the specified boundary concentration, \(q_b\) is a specified outward flux, \(P\) is an exchange coefficient, and \(c_{\mathrm{ext}}\) is the concentration on the external side. In the stated Robin form, \(P\) has units of length per time when both concentrations use the same units. The two sides of every flux condition must have units of amount per area per time.

A Dirichlet condition fixes the boundary concentration, not the flux: the flux is determined by the solution's gradient. A Neumann condition fixes the flux, not the boundary concentration. In particular, impermeability means \(J_{\mathrm{out}}=0\), and, for \(D>0\), is equivalent to \(\partial c/\partial n=0\). It does not mean that concentration itself is zero.

Worked Example: Fixed Concentrations at the Faces of a Slab

A slab extends from \(x=0\) to \(L=0.10\) cm. Its surfaces are maintained by large reservoirs at 0.80 and 0.20 mg/cm\(^3\), respectively. Write the boundary conditions and check an illustrative initial profile \(c_0(x)=0.80-6x+0.10\sin(\pi x/L)\) mg/cm\(^3\), with \(x\) measured in cm.

The reservoir assumptions lead to Dirichlet conditions: \(c(0,t)=0.80\) mg/cm\(^3\) and \(c(L,t)=0.20\) mg/cm\(^3\), for \(t>0\). The initial profile gives \(c_0(0)=0.80\) mg/cm\(^3\) and \(c_0(0.10)=0.80-0.60+0=0.20\) mg/cm\(^3\). It therefore matches both imposed surface concentrations at \(t=0\). The sine term allows an interior profile that is not simply the straight line joining the two boundary values.

These conditions do not assert that the flux at either face is zero. If the concentration inside is lower than the left reservoir concentration, diffusion may carry material inward there; the actual flux is determined by the evolving concentration gradient.

Robin Conditions: Finite Exchange Across an Interface

A tissue boundary is often neither perfectly impermeable nor held exactly at the external concentration. A finite-resistance interface can be represented by a transfer law: outward flux is proportional to the difference between the tissue-surface concentration \(c_s\) and the external concentration \(c_{\mathrm{ext}}\). With permeability or transfer coefficient \(P>0\), this law is \(J_{\mathrm{out}}=P(c_s-c_{\mathrm{ext}})\). Combining it with Fick's law gives the Robin condition \(-D\,\partial c/\partial n=P(c_s-c_{\mathrm{ext}})\).

The sign matters. If \(c_s>c_{\mathrm{ext}}\), the predicted outward flux is positive and material leaves the tissue. If \(c_s<c_{\mathrm{ext}}\), the flux is negative and material enters. This simple form assumes the external concentration is known at the boundary and that the exchange coefficient is constant. If the external compartment changes over time, \(c_{\mathrm{ext}}\) must instead be supplied as a time-dependent boundary quantity or modeled as another state.

Justification: For a tissue with no internal sources, conservation gives the rate of change of its total amount as the negative of the net outward boundary flux:
$$ \frac{d}{dt}\int_{\Omega} c\,dV =-\int_{\partial\Omega}J_{\mathrm{out}}\,dA. $$

Thus a no-flux boundary contributes nothing to the total-amount balance. A positive Robin flux removes material from the tissue, while a negative Robin flux adds material. This integral balance is a useful sign check when translating an interface description into a boundary condition.

Worked Example: Finite Exchange With an External Compartment

At a tissue surface, suppose \(D=2.0\times10^{-6}\) cm\(^2\)/s, \(P=5.0\times10^{-4}\) cm/s, the surface concentration is \(c_s=0.30\) mg/cm\(^3\), and the external concentration is \(c_{\mathrm{ext}}=0.10\) mg/cm\(^3\). Calculate the outward flux and the corresponding normal concentration derivative.

The Robin law gives \(J_{\mathrm{out}}=P(c_s-c_{\mathrm{ext}})\). Substitution yields \(J_{\mathrm{out}}=(5.0\times10^{-4}\ \mathrm{cm/s})(0.30-0.10\ \mathrm{mg/cm^3})=1.0\times10^{-4}\) mg/cm\(^2\)/s. The flux is positive, consistent with net loss from tissue because the tissue surface concentration exceeds the external concentration.

Using \(J_{\mathrm{out}}=-D\,\partial c/\partial n\), the derivative is \(\partial c/\partial n=-J_{\mathrm{out}}/D=-(1.0\times10^{-4})/(2.0\times10^{-6})=-50\) mg/cm\(^4\). The negative outward derivative is consistent with concentration decreasing toward the external side. Both the flux and derivative have the expected dimensions.

Choosing and Checking the Conditions

For a diffusion problem, specify the initial profile over the tissue and give enough boundary information to define what happens on every part of its surface. Different boundary pieces can use different conditions: one face can be impermeable, another can exchange with an external compartment, and another can be held at a fixed concentration. At edges where boundary pieces meet, the model typically applies the conditions on their respective faces; idealized corner points do not have a unique outward normal.

A quick diagnostic is to ask what physical quantity the boundary assumption controls. If the surface concentration is clamped by a sufficiently large reservoir, Dirichlet is a reasonable idealization. If a known supply or loss rate is imposed, Neumann specifies that flux. If exchange has finite resistance and depends on a concentration difference, Robin is the appropriate form. These are not interchangeable numerical labels: choosing one changes how much material may enter or leave.

  • Check the sign: define the outward normal and use it consistently. A positive outward flux must reduce tissue amount.
  • Check units: concentration, flux, diffusion coefficient, and transfer coefficient must be dimensionally compatible.
  • Check the initial boundary values: where a condition applies from \(t=0\), compare it with the initial surface concentration or gradient.
  • Check mass balance: no-flux surfaces should not contribute to net tissue loss or gain.

A common mistake is to set \(c=0\) at an impermeable boundary. That is a Dirichlet condition imposing zero surface concentration, not a no-flux condition. The correction is to set \(-D\,\partial c/\partial n=0\), or equivalently \(\partial c/\partial n=0\) for positive \(D\). A second frequent mistake is to use a Robin law with the concentration difference reversed while retaining the outward-flux convention; this can make material flow from high concentration toward still higher concentration. Substituting a simple case with \(c_s>c_{\mathrm{ext}}\) should give positive outward flux.

Each boundary model is an idealization. A fixed-concentration boundary assumes the adjoining reservoir can maintain its concentration; a prescribed-flux boundary assumes the flux is known independently of the tissue concentration; and the stated Robin law assumes a linear, instantaneous exchange relationship. If the interface or external compartment does not satisfy those assumptions, a different representation may be needed. The practical priority is to state the physical assumption explicitly before translating it into mathematics.

Check Your Understanding

For each question, first decide what the boundary or initial statement means physically. Solutions follow the questions.

  1. A tissue face is impermeable and \(D>0\). What condition applies to its normal concentration gradient?
  2. At an exchanging boundary, \(P=3.0\times10^{-4}\) cm/s, \(c_s=0.15\) mg/cm\(^3\), and \(c_{\mathrm{ext}}=0.25\) mg/cm\(^3\). What is the outward flux, and which way does material move?
  3. A boundary is maintained at 0.40 mg/cm\(^3\) beginning at \(t=0\), but the initial tissue profile equals 0.30 mg/cm\(^3\) at that surface. What compatibility issue should be noted?
  4. Does a Neumann condition of zero flux require the boundary concentration to be zero? Explain.

Solutions. (1) Impermeability means \(-D\,\partial c/\partial n=0\); since \(D>0\), \(\partial c/\partial n=0\). (2) \(J_{\mathrm{out}}=(3.0\times10^{-4})(0.15-0.25)=-3.0\times10^{-5}\) mg/cm\(^2\)/s. The negative outward flux means material enters the tissue. (3) The initial surface value does not match the imposed Dirichlet value. A smooth solution at the initial instant may fail the compatibility condition, so the sharp initial adjustment should be considered when interpreting or implementing the model. (4) No. Zero Neumann flux specifies a zero normal gradient; the boundary concentration can be nonzero.

Clinical Biostats