Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
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-course
Commits
108b2364
Commit
108b2364
authored
1 year ago
by
Martin Schneider
Browse files
Options
Downloads
Patches
Plain Diff
[ex][model] Fix typos
parent
4b82289c
No related branches found
No related tags found
1 merge request
!167
[ex][model] Minor improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exercises/exercise-model/README.md
+5
-5
5 additions, 5 deletions
exercises/exercise-model/README.md
with
5 additions
and
5 deletions
exercises/exercise-model/README.md
+
5
−
5
View file @
108b2364
...
@@ -81,7 +81,7 @@ const auto imageFileName = getParam<std::string>("ImageFile");
...
@@ -81,7 +81,7 @@ const auto imageFileName = getParam<std::string>("ImageFile");
const
auto
imageData
=
NetPBMReader
::
readPGM
(
imageFileName
);
const
auto
imageData
=
NetPBMReader
::
readPGM
(
imageFileName
);
```
```
### 3.1: Make
T
est type tag inherit properties from model type tag
### 3.1: Make
t
est type tag inherit properties from model type tag
:arrow_right: Include the header
`model.hh`
:arrow_right: Include the header
`model.hh`
:arrow_right: To use the new model for this test case, make
:arrow_right: To use the new model for this test case, make
...
@@ -137,7 +137,7 @@ You can get the conductance $K$ via the problem interface `conductance`.
...
@@ -137,7 +137,7 @@ You can get the conductance $K$ via the problem interface `conductance`.
:arrow_right: Compare the
`main.cc`
with the
`main.cc`
of the diffusion example. Notice that we
:arrow_right: Compare the
`main.cc`
with the
`main.cc`
of the diffusion example. Notice that we
use a Newton solver as we want to solve nonlinear equations.
use a Newton solver as we want to solve nonlinear equations.
As the DuMux assembler uses numeric differentation to approximate the Jacobian matrix, you do not have to implement
As the DuMux assembler uses numeric different
i
ation to approximate the Jacobian matrix, you do not have to implement
the derivatives of your residual by hand and implement them. This greatly simplifies implementing
the derivatives of your residual by hand and implement them. This greatly simplifies implementing
nonlinear equations.
nonlinear equations.
...
@@ -155,7 +155,7 @@ __The final result should look like this:__
...
@@ -155,7 +155,7 @@ __The final result should look like this:__
<figure>
<figure>
<center>
<center>
<img
src=
"../extradoc/exercisemodel_mri_denoise.gif"
alt=
"denoising"
/>
<img
src=
"../extradoc/exercisemodel_mri_denoise.gif"
alt=
"denoising"
/>
<figcaption>
<b>
Fig.1
</b>
- Denosing o
g
MRI image using nonlinear diffusion model.
</figcaption>
<figcaption>
<b>
Fig.1
</b>
- Denosing o
f
MRI image using nonlinear diffusion model.
</figcaption>
</center>
</center>
</figure>
</figure>
...
@@ -192,7 +192,7 @@ struct VolumeVariables<TypeTag, TTag::NonlinearDiffusionModel>
...
@@ -192,7 +192,7 @@ struct VolumeVariables<TypeTag, TTag::NonlinearDiffusionModel>
};
};
```
```
y
ou can now use the interface
`imageIntensity`
in your local residual instead of the generic
`priVar`
interface.
Y
ou can now use the interface
`imageIntensity`
in your local residual instead of the generic
`priVar`
interface.
In order to simplify the implementation of your custom volume variables, you can
In order to simplify the implementation of your custom volume variables, you can
also inherit from
`BasicVolumeVariables`
and only implement the additional interface.
also inherit from
`BasicVolumeVariables`
and only implement the additional interface.
...
@@ -202,7 +202,7 @@ To this end, we typically add an `Indices` struct to the `ModelTraits` in which
...
@@ -202,7 +202,7 @@ To this end, we typically add an `Indices` struct to the `ModelTraits` in which
and equation indices are named (e.g.
`static constexpr int imageIntensityIdx = 0;`
).
and equation indices are named (e.g.
`static constexpr int imageIntensityIdx = 0;`
).
The model traits can be passed to the volume variables class via the Traits class.
The model traits can be passed to the volume variables class via the Traits class.
:arrow_right: Have a look a the solution
t
o the exercise to see how this is usually implemented.
:arrow_right: Have a look a
t
the solution o
f
the exercise to see how this is usually implemented.
Names indices allow to address the entries of the local residual vector or the primary variables vector.
Names indices allow to address the entries of the local residual vector or the primary variables vector.
You will see names indices in every DuMux model.
You will see names indices in every DuMux model.
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