Function puma::export_vtk(Workspace *, std::string, char, bool, int)

Function Documentation

bool puma::export_vtk(Workspace *work, std::string fileName, char fileType = 'b', bool unstructured = false, int numThreads = 0)

Exports a puma::Workspace to a vtk file, a common visualization file (works in Paraview)

Parameters
  • work – Pointer to a puma::Workspace to be exported,

  • fileName – std::string containing the location and filename for export, Ex: /home/jsmith/Desktop/myWorkspace.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.