Report#

Part 1. Boundary conditions#

1a) Which boundary conditions were active around the clay island in the middle of the domain?

Solution: Homogeneous Neumann boundary conditions or \(\kappa\partial c/\partial n = 0\)

1b) Explain where and how Dirichlet boundary conditions (prescribing \(c\)) were imposed. Where in the domain are Dirichlet conditions present, and how were they enforced in the code?

Solution: Dirichlet boundary conditions are imposed in the left of the domain, by the method simulate(). They are enforced through eliminination of degrees of freedom for the relevant nodes. Because the Dirichlet boundary conditions are homogeneous (c[constrained_nodes] = 0), the right hand side vector does not need an additional term.

1c) Is the spill a modeled as a Dirichlet boundary condition, a Neumann boundary condition, or a source term? Motivate your answer

Solution: It is modeled as a Neumann boundary condition. A flux is defined that is integrated over the edge and added to the right hand side vector.

Part 2. Derivation and implementation of the matrices#

The advection/diffusion/reaction equation is given once more below.

\[ \frac{\partial c}{\partial t} = \kappa \nabla\cdot\nabla c - \mathbf{v}\cdot\nabla c - r c \]

2a) The governing equation has four terms. At the end of the derivation of the finite element equations, each of these terms has a corresponding finite element matrix. Two of these matrices have been evaluated with the same finite element function. Which two terms are these? In your answer, give the expression for the terms from the governing equation (e.g. \(\frac{\partial c}{\partial t}\) and \(\kappa\nabla\cdot\nabla c\)).

Solution: \frac{\partial c}{\partial t}\( and \)r c$.

2b) What similarity between these two terms in the governing equation makes that the corresponding matrices are of similar form? Hint: Trace these terms through your derivation, in comparison with the other terms.

Solution: The two terms are similar because neither involves spatial derivatives of the concentration \(c\). Since only the coefficients of the finite element approximation depend on time, the time derivative acts only on those coefficients. The resulting time derivatives can be taken outside the domain integral. The resulting integrals are identical apart from the scalar factor \(r\) in the reaction term.

Part 3. Interpretation of the results#

3a) Describe qualitatively what is the influence of \(r\) on how the contaminant spreads through the domain. Limit your answer to max 2 sentences.

Solution: The reaction term \(rc\) removes contaminant at an exponential rate. A larger \(r\) makes the concentration decay faster therefore downstream peaks lower.

3b) Describe qualitatively what is the influence of \(\kappa\) on how the contaminant spreads through the domain. Limit your answer to max 2 sentences.

Solution: The diffusion coefficient \(\kappa\) controls how quickly the contaminant spreads from regions of higher concentration to regions of lower concentration. Higher \(\kappa\) means lower peaks and more pollutant travling through the lower arm of the channel.

3c) Describe qualitatively what is the influence of the magnitude of \(\mathbf{v}\) on how the contaminant spreads through the domain. Limit your answer to max 2 sentences.

Solution: The magnitude of the velocity field influences how fast the pollutant travels along the channel. Higher velocity results in higher peaks in the main channel.

3d) The evolution of total contaminant mass in the system (see figure) follows an exponential relation for a certain time window. Explain which processes in the simulation make the evolution deviate from this exponential relation in the beginning and at the end of the simulation. Limit your answer to max 3 sentences

Evolution of total mass

Solution: Initially, the total mass increases due to the influx given by the Neumann boundary condition. Near the end of the simulation, mass starts disappearing due to advection when the concentration near the right boundary increases. In between, advection and diffusion terms are conservative, and all changes in total mass are due to the reaction, which gives an exponential decrease.

General feedback

To be provided after grading

How did things go? (Optional)#

Use this space to let us know if you ran into any challenges while working on this GA, and if you have any feedback to report.

By Frans van der Meer, Delft University of Technology. CC BY 4.0, more info on the Credits page of Workbook.