... | ... | @@ -14,6 +14,7 @@ within the `mpp` namespace. This method return an object of the type `VtuPlot`, |
|
|
You can use this to add as many data to the plot as you like, given that all Vectors operate on the same Mesh:
|
|
|
|
|
|
> `mpp::plot("NameOfPlot") << vec1 << vec2;`
|
|
|
|
|
|
> `mpp::plot("NameOfPlot") << vec3;`
|
|
|
|
|
|
To create a file, you can either use the `save_plot` command
|
... | ... | @@ -28,4 +29,19 @@ which creates a file with the name `NameOfPlot`. |
|
|
|
|
|
Of course, these commands can all be done in one line:
|
|
|
|
|
|
> `mpp::plot("NameOfPlot") << vec1 << vec2 << mpp::endp;` |
|
|
\ No newline at end of file |
|
|
> `mpp::plot("NameOfPlot") << vec1 << vec2 << mpp::endp;`
|
|
|
|
|
|
## Using macros
|
|
|
The commands detailed above are abbreviated in some macros:
|
|
|
|
|
|
- The command
|
|
|
|
|
|
> `plot_vector(vec);`
|
|
|
|
|
|
creates a .vtu file named **vec.vtu** containing the data of `vec`.
|
|
|
|
|
|
- The command
|
|
|
|
|
|
> `plot_deformed(vec, displacement);`
|
|
|
|
|
|
again creates a .vtu file named **vec.vtu** containing the data of `vec`, but distorts the underlying mesh with the displacement vector. |
|
|
\ No newline at end of file |