Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
4d3bb790
Commit
4d3bb790
authored
2 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[example][embedded] rerun doc compilation
parent
84a32a7a
No related branches found
No related tags found
1 merge request
!3456
Cleanup/embedded example
Pipeline
#28574
passed
2 years ago
Stage: check-status
Stage: trigger dumux pipelines
+2
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/embedded_network_1d3d/README.md
+9
-8
9 additions, 8 deletions
examples/embedded_network_1d3d/README.md
examples/embedded_network_1d3d/doc/problem.md
+2
-2
2 additions, 2 deletions
examples/embedded_network_1d3d/doc/problem.md
with
11 additions
and
10 deletions
examples/embedded_network_1d3d/README.md
+
9
−
8
View file @
4d3bb790
...
@@ -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`
$ i
s the cross-sectional perimeter
value
,
$
`A_\mathrm{B}`
$ denotes the network (vessel lumen) cross-sectional area, $
`
P`
$ denote
s 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
On
e
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.
...
...
This diff is collapsed.
Click to expand it.
examples/embedded_network_1d3d/doc/problem.md
+
2
−
2
View file @
4d3bb790
...
@@ -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
--somewha
t
n
ot
general enough--
`Neumann`
in DuMu
<sup>
x
</sup>
.
implemen
t
b
ot
h 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment