Allows you do define multiple visualizers with various visualization objects and writes them at once (including a *pvd file)
More...
#include <PostProcess.h>
|
| PostProcess ()=default |
| default ctor More...
|
|
| PostProcess (std::string resultDir) |
| Ctor that sets the result directory. More...
|
|
void | ResultDirectory (std::string resultDir) |
| Setter for the result directory. More...
|
|
std::string | ResultDirectory () const |
| Getter for the result directory. More...
|
|
void | DefineVisualizer (std::string name, Visualizer &&visualizer) |
| Moves a visualizer into the PostProcess. More...
|
|
void | DefineVisualizer (std::string name, Group< CellInterface > cells, const HandlerInterface &handler) |
| Constructs a visualizer into the PostProcess. More...
|
|
void | Add (std::string name, DofType dof) |
| Adds a dof visualization. More...
|
|
void | Add (std::string name, std::function< Eigen::VectorXd(const CellIpData &)> cellFunction, std::string cellFunctionName) |
| Add a cell data function that should be visualized. More...
|
|
void | Add (std::string name, std::function< double(const CellIpData &)> cellFunction, std::string cellFunctionName) |
| Add a cell data function that should be visualized. More...
|
|
void | Add (std::string name, std::function< Eigen::VectorXd(Eigen::VectorXd)> pointFunction, std::string pointFunctionName) |
| Visualize a function y = f(x) over a collection of cells. More...
|
|
void | Plot (double t, bool asBinary=true) |
| Writes one result file per defined visualizer and adds this result file to [visualizerName].pvd. More...
|
|
Allows you do define multiple visualizers with various visualization objects and writes them at once (including a *pvd file)
NuTo::Visualize::PostProcess::PostProcess |
( |
| ) |
|
|
default |
PostProcess::PostProcess |
( |
std::string |
resultDir | ) |
|
Ctor that sets the result directory.
- Parameters
-
resultDir | Result directory. |
void PostProcess::Add |
( |
std::string |
name, |
|
|
DofType |
dof |
|
) |
| |
Adds a dof visualization.
- Parameters
-
name | Name of an existing visualizer. |
dof | DofType to visualize. |
void PostProcess::Add |
( |
std::string |
name, |
|
|
std::function< Eigen::VectorXd(const CellIpData &)> |
cellFunction, |
|
|
std::string |
cellFunctionName |
|
) |
| |
Add a cell data function that should be visualized.
- Parameters
-
name | Name of an existint visualizer. |
cellFunction | Function that is passed to the cell for evaluation. |
cellFunctionName | Name to be used in the resulting output file for the data array. |
void PostProcess::Add |
( |
std::string |
name, |
|
|
std::function< double(const CellIpData &)> |
cellFunction, |
|
|
std::string |
cellFunctionName |
|
) |
| |
Add a cell data function that should be visualized.
- Parameters
-
name | Name of an existint visualizer. |
cellFunction | Function that is passed to the cell for evaluation. |
cellFunctionName | Name to be used in the resulting output file for the data array. |
void PostProcess::Add |
( |
std::string |
name, |
|
|
std::function< Eigen::VectorXd(Eigen::VectorXd)> |
pointFunction, |
|
|
std::string |
pointFunctionName |
|
) |
| |
Visualize a function y = f(x) over a collection of cells.
- Parameters
-
name | Name of an existint visualizer. |
pointFunction | Function taking the coordinates as an Eigen vector and returning an Eigen vector |
pointFunctionName | Name to be used in the resulting output file for the data array. |
void PostProcess::DefineVisualizer |
( |
std::string |
name, |
|
|
Visualizer && |
visualizer |
|
) |
| |
Moves a visualizer into the PostProcess.
- Parameters
-
name | Unique (new) visualizer name. |
visualizer | (Unnamed) visualizer. |
Constructs a visualizer into the PostProcess.
- Parameters
-
name | Unique (new) visualizer name. |
cells | Group of cells you want to visualize. |
handler | Implementation of the HandlerInterface. |
void PostProcess::Plot |
( |
double |
t, |
|
|
bool |
asBinary = true |
|
) |
| |
Writes one result file per defined visualizer and adds this result file to [visualizerName].pvd.
- Parameters
-
t | Global time for the pvd file |
asBinary | True for output as binary vtu file. False for output as ASCII. |
void PostProcess::ResultDirectory |
( |
std::string |
resultDir | ) |
|
Setter for the result directory.
- Parameters
-
resultDir | Result directory. |
std::string PostProcess::ResultDirectory |
( |
| ) |
const |
Getter for the result directory.
- Returns
- Result directory.
The documentation for this class was generated from the following files: