Skip to content
Snippets Groups Projects
Commit 5f344621 authored by Ivan Buntic's avatar Ivan Buntic
Browse files

[slides][model] Add file paths for code blocks.

parent 499dce89
No related branches found
No related tags found
1 merge request!296Slides update
...@@ -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`
......
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