![]() |
Allium
0.1.0
|
Input and output routines. More...
Functions | |
| void | allium::write_txt (std::string filename, std::vector< LocalVector< double >> columns) |
| Write a set of columns into a text file. More... | |
| void | allium::write_vtk (std::string filename, const PetscMesh< double, 2 > &mesh) |
Input and output routines.
| void allium::write_txt | ( | std::string | filename, |
| std::vector< LocalVector< double >> | columns | ||
| ) |
Write a set of columns into a text file.
The numbers of each row are written as ASCII encoded text, separated by spaces. Each row is terminated by a new-line character.
The generated file can be loaded into Numpy using the numpy.loadtxt method of plotted using the Gnuplot plot command.
| void allium::write_vtk | ( | std::string | filename, |
| const PetscMesh< double, 2 > & | mesh | ||
| ) |
Write the mesh values into a VTK file.