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
5f344621
Commit
5f344621
authored
1 month ago
by
Ivan Buntic
Browse files
Options
Downloads
Patches
Plain Diff
[slides][model] Add file paths for code blocks.
parent
499dce89
No related branches found
Branches containing commit
No related tags found
1 merge request
!296
Slides update
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
slides/model.md
+12
-0
12 additions, 0 deletions
slides/model.md
with
12 additions
and
0 deletions
slides/model.md
+
12
−
0
View file @
5f344621
...
@@ -99,6 +99,8 @@ class DiffusionModelLocalResidual
...
@@ -99,6 +99,8 @@ class DiffusionModelLocalResidual
...
...
}
}
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
Inherits from the
`BaseLocalResidual`
, which is chosen depending on the discretization scheme, here
*Box scheme*
.
Inherits from the
`BaseLocalResidual`
, which is chosen depending on the discretization scheme, here
*Box scheme*
.
## Storage term
## Storage term
...
@@ -113,6 +115,7 @@ NumEqVector computeStorage(const Problem& problem,
...
@@ -113,6 +115,7 @@ NumEqVector computeStorage(const Problem& problem,
return
storage
;
return
storage
;
}
}
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
## Flux term
## Flux term
...
@@ -142,6 +145,7 @@ NumEqVector computeFlux(const Problem& problem,
...
@@ -142,6 +145,7 @@ NumEqVector computeFlux(const Problem& problem,
}
}
```
```
</font>
</font>
<span
style=
"font-size: 0.4em; position: relative; top: -60px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
## Flux term
## Flux term
```
cpp
```
cpp
...
@@ -161,6 +165,7 @@ NumEqVector computeFlux(...) const
...
@@ -161,6 +165,7 @@ NumEqVector computeFlux(...) const
...
...
}
}
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
## Flux term
## Flux term
```
cpp
```
cpp
...
@@ -179,6 +184,7 @@ NumEqVector computeFlux(...) const
...
@@ -179,6 +184,7 @@ NumEqVector computeFlux(...) const
return
flux
;
return
flux
;
}
}
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
## `LocalResidual`
## `LocalResidual`
...
@@ -197,6 +203,8 @@ namespace Dumux::Properties {
...
@@ -197,6 +203,8 @@ namespace Dumux::Properties {
//define all properties
//define all properties
}
// end namespace Dumux::Properties
}
// end namespace Dumux::Properties
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
## Model type tag
## Model type tag
The property type tag is an empty struct with the respective name, e.g.
`DiffusionModel`
.
The property type tag is an empty struct with the respective name, e.g.
`DiffusionModel`
.
...
@@ -208,6 +216,7 @@ namespace Dumux::Properties::TTag {
...
@@ -208,6 +216,7 @@ namespace Dumux::Properties::TTag {
struct
DiffusionModel
{};
struct
DiffusionModel
{};
}
// end namespace Dumux::Properties::TTag
}
// end namespace Dumux::Properties::TTag
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
## Defining model properties
## Defining model properties
...
@@ -218,6 +227,7 @@ template<class TypeTag>
...
@@ -218,6 +227,7 @@ template<class TypeTag>
struct
LocalResidual
<
TypeTag
,
TTag
::
DiffusionModel
>
struct
LocalResidual
<
TypeTag
,
TTag
::
DiffusionModel
>
{
using
type
=
DiffusionModelLocalResidual
<
TypeTag
>
;
};
{
using
type
=
DiffusionModelLocalResidual
<
TypeTag
>
;
};
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
## Defining model properties
## Defining model properties
...
@@ -238,6 +248,8 @@ struct ModelTraits<TypeTag, TTag::DiffusionModel>
...
@@ -238,6 +248,8 @@ struct ModelTraits<TypeTag, TTag::DiffusionModel>
};
};
};
};
```
```
<span
style=
"font-size: 0.4em; position: relative; top: -38px; color: gray;"
>
File:
`dumux/examples/diffusion/model.hh`
</span>
## Defining model properties
## Defining model properties
Further model specific properties can be set accordingly by using the model property tag,
Further model specific properties can be set accordingly by using the model property tag,
i.e.
`TTag::DiffusionModel`
i.e.
`TTag::DiffusionModel`
...
...
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