Function puma::export_bin(puma::MatVec3<double> *, std::string)

Function Documentation

bool puma::export_bin(puma::MatVec3<double> *matrix, std::string fileName)

Exports a puma::MatVec3<double> to a binary file (with extension .puma). This data structure looks confusing, but it’s simply a 3D matrix with a 3D vector at each location. Example: Velocity vector in (x,y,z) at all locations in 3D Matrix.

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

  • fileName – std::string containing the location and filename for export, Ex: /home/jsmith/Desktop/myMatrix.puma

Returns

bool True if output was successful, False if an error occured.