Function puma::export_vtk(puma::MatVec3<double> *, std::string, char, bool, int)
Defined in File export_vtk.h
Function Documentation
-
bool puma::export_vtk(puma::MatVec3<double> *matrix, std::string fileName, char fileType = 'b', bool unstructured = false, int numThreads = 0)
Exports a puma::Matrix of vector values to a vtk file, a common visualization file (works in Paraview)
- Parameters
matrix – Pointer to a puma::Matrix to be exported,
fileName – std::string containing the location and filename for export, Ex: /home/jsmith/Desktop/myMatrix.vtk
fileType – char specifying if output should be binary, ‘b’, or ASCII, ‘a’. Defaulted to binary.
unstructured – boolean specifying if we want an unstructured grid (for export to Code Aster), Defaulted to 0, meaning structured points
numThreads – Integer value, number of threads to be used in calculation. If 0 is put, it defaults to the max number of processors
- Returns
bool True if output was successful, False if an error occured.