A DuMu<sup>X</sup> model is an implementation of a **mathematical model**, generally given by partial differential equations, by using **discretization** schemes.
A DuMu<sup>X</sup> model is an implementation of a discretized **mathematical model**, generally given by partial differential equations.
@@ -157,14 +157,13 @@ Implementation takes place in the dedicated function `computeFlux`:
...
@@ -157,14 +157,13 @@ Implementation takes place in the dedicated function `computeFlux`:
);
);
}
}
...
...
}
}
```
```
## Flux term
## Flux term
Implementation takes place in the dedicated function `computeFlux`:
```cpp
```cpp
NumEqVectorcomputeFlux(...)const
NumEqVectorcomputeFlux(...)const
{
{
...
...
NumEqVectorflux;
NumEqVectorflux;
...
@@ -174,13 +173,12 @@ Implementation takes place in the dedicated function `computeFlux`:
...
@@ -174,13 +173,12 @@ Implementation takes place in the dedicated function `computeFlux`:
)*scvf.area();
)*scvf.area();
returnflux;
returnflux;
}
}
```
```
## Local Residual
## Local Residual
A *local residual* implements the discretized mathematical model.
A **local residual** implements the discretized mathematical model.
For its implementation different model-specific properties have to be set
For its implementation different model-specific properties have to be set
...
@@ -197,12 +195,12 @@ struct DiffusionModel {};
...
@@ -197,12 +195,12 @@ struct DiffusionModel {};
}// end namespace Dumux::Properties::TTag
}// end namespace Dumux::Properties::TTag
```
```
## Model properties
## Model properties
By specializing properties for the type tag `DiffusionModel`, every other class that knows about the type tag (this will be for example the assembler or the problem), can extract the type information that we specify here.
We can set nodel properties for the `DiffusionModel` type tag
All properties are defined within the namespace `Dumux::Properties`
All properties are defined within the namespace `Dumux::Properties`