|
|
Here is a little self-contained example on how to integrate quantities in post-processing. Note that GetDP can only integrate quantities on their domain of definition (specified in the function space). To integrate on arbitrary regions you can use, e.g., `Plugin(Integrate)` in [http://gmsh.info Gmsh].
|
|
|
|
|
|
== post_integral.pro ==
|
|
|
`post_integral.pro`
|
|
|
|
|
|
```cpp
|
|
|
Group {
|
... | ... | @@ -92,7 +92,7 @@ PostOperation{ |
|
|
}
|
|
|
```
|
|
|
|
|
|
== post_integral.geo ==
|
|
|
`post_integral.geo`
|
|
|
|
|
|
```cpp
|
|
|
s=1;
|
... | ... | |