Skip to content
Snippets Groups Projects
Commit 4d3bb790 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[example][embedded] rerun doc compilation

parent 84a32a7a
No related branches found
No related tags found
1 merge request!3456Cleanup/embedded example
Pipeline #28574 passed
+2
...@@ -13,10 +13,11 @@ __Table of contents__. This description is structured as follows: ...@@ -13,10 +13,11 @@ __Table of contents__. This description is structured as follows:
## Problem set-up ## Problem set-up
In this example we simulate clearance of a substance present in the tissue through the blood. The tissue In this example we simulate clearance of a substance present in the tissue through the blood. The tissue
cube is assigned no-flux/symmetry boundary conditions assuming that identical cubes are mirrored on all sides. cube is assigned no-flux/symmetry boundary conditions assuming that identical cubes are mirrored on all sides.
Therefore the tracer has to cross the vessel wall into the network (vessel lumen). In then get transported Therefore, the tracer has to cross the vessel wall into the network (vessel lumen). It then gets transported
in the blood stream by advection and diffusion. In the network, inlet tracer mole fraction is zero and at in the blood stream by advection and diffusion. In the network, the tracer mole fraction is zero at the inlet
the outlet the mole fraction gradient is zero, making the tracer being transported out by advection only. and at the outlet the mole fraction gradient is zero. Thus, the tracer is transported out of the domain by advection only.
We write out VTK output and the total tracer concentration in the tissue as text file, in every time step. VTK output is written in every time step, and the total tracer concentration in the tissue is written into a text file
along the simulation.
## Network data and blood flow ## Network data and blood flow
The domain consists of a small blood vessel network embedded The domain consists of a small blood vessel network embedded
...@@ -49,7 +50,7 @@ We solve the following coupled, mixed-dimensional PDE system: ...@@ -49,7 +50,7 @@ We solve the following coupled, mixed-dimensional PDE system:
where the subscript T and B denote the tissue and the network (blood flow) compartment, where the subscript T and B denote the tissue and the network (blood flow) compartment,
$`x`$ is the tracer mole fraction, $`\varrho`$ the molar density of the mixture, $`\phi`$ is the porosity, $`x`$ is the tracer mole fraction, $`\varrho`$ the molar density of the mixture, $`\phi`$ is the porosity,
$`A_\mathrm{B}`$ denotes the network (vessel lumen) cross-sectional area, $`\vert P \vert`$ is the cross-sectional perimeter value, $`A_\mathrm{B}`$ denotes the network (vessel lumen) cross-sectional area, $`P`$ denotes the cross-sectional perimeter,
$`D`$ is the free diffusion coefficient, $`D_{\text{app}}`$ apparent diffusion coefficients and $C_M$ a membrane diffusivity factor. $`D`$ is the free diffusion coefficient, $`D_{\text{app}}`$ apparent diffusion coefficients and $C_M$ a membrane diffusivity factor.
Furthermore, isothermal conditions with a homogeneous temperature distribution of constant $`T=37^\circ C`$ are assumed. Furthermore, isothermal conditions with a homogeneous temperature distribution of constant $`T=37^\circ C`$ are assumed.
The 1D network PDE is formulated in terms of the local axial coordinate $`s`$. The 1D network PDE is formulated in terms of the local axial coordinate $`s`$.
...@@ -89,16 +90,16 @@ property system in `properties.hh` where the `Problem` property is specialized f ...@@ -89,16 +90,16 @@ property system in `properties.hh` where the `Problem` property is specialized f
(`NetworkTransportModel` and `TissueTransportModel`). These models are passed in the main function to the assembler. (`NetworkTransportModel` and `TissueTransportModel`). These models are passed in the main function to the assembler.
Secondly, the spatial parameters (`spatialparams.hh`) are classes that specify (possibly) spatially varying parameter. Secondly, the spatial parameters (`spatialparams.hh`) are classes that specify (possibly) spatially varying parameter.
On such parameter is the radius field for the network. In the class `NetworkSpatialParams`, the radius field is One such parameter is the radius field for the network. In the class `NetworkSpatialParams`, the radius field is
read from the grid file `network.dgf` (which is in the very simple, human-readable Dune Grid Format). read from the grid file `network.dgf` (which is in the very simple, human-readable Dune Grid Format).
As for the problem, spatial parameters have to be added to the model by specializing the `SpatialParams` property As for the problem, spatial parameters have to be added to the model by specializing the `SpatialParams` property
for the model in `properties.hh`. for the model in `properties.hh`.
Apart from problem and spatial params, the model (`properties.hh`) also has other configurable parameters. Apart from problem and spatial params, the model (`properties.hh`) also has other configurable parameters.
(In fact most of the inner workings of the assembler can be configured like this.) One example is the grid manager (In fact most of the inner workings of the assembler can be configured like this.) One example is the grid type
used for each model. Dune provides specialized implementations for certain grid types behind a common interface. used for each model. Dune provides specialized implementations for certain grid types behind a common interface.
In this exercise, we use a structured Cartesian grid (`YaspGrid`) for the tissue domain and an embedded network In this exercise, we use a structured Cartesian grid (`YaspGrid`) for the tissue domain and an embedded network
grid manager (`FoamGrid`) for the network. grid (`FoamGrid`) for the network.
With the model configuration through the property system in mind, we can better understand the main program (`main.cc`) With the model configuration through the property system in mind, we can better understand the main program (`main.cc`)
and how the boundary conditions and parameter setting make their way into the assembler. and how the boundary conditions and parameter setting make their way into the assembler.
......
...@@ -13,8 +13,8 @@ conditions and implements the coupling source terms. The file contains two ...@@ -13,8 +13,8 @@ conditions and implements the coupling source terms. The file contains two
problem classes: `TissueTransportProblem` and `NetworkTransportProblem` for the problem classes: `TissueTransportProblem` and `NetworkTransportProblem` for the
respective subdomains. The subdomain problem classes specify boundary and initial respective subdomains. The subdomain problem classes specify boundary and initial
conditions for the subdomains separately. For this setup, we specify boundary fluxes conditions for the subdomains separately. For this setup, we specify boundary fluxes
(Neumann or Robin-type boundary conditions, weakly imposed) called via the `neumann` function (note that despite its name, the function allows you to
--somewhat not general enough--`Neumann` in DuMu<sup>x</sup>. implement both Neumann or Robin-type boundary conditions, weakly imposed).
The subdomain problems are coupled to each other. This is evident from the The subdomain problems are coupled to each other. This is evident from the
coupling manager pointer that is stored in each subdomain problem (and the coupling manager pointer that is stored in each subdomain problem (and the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment