51 if (path.size() > 0) {
64 out <<
"VARIABLES = \"X\", \"Y\", \"Z\"";
65 for (
size_t d = 0; d < datanames.size(); d++)
66 out <<
", \"" << datanames[d] <<
"\"";
69 out <<
"ZONE NODES=" <<
nofNodes <<
", ELEMENTS=" <<
nofCells <<
", DATAPACKING=POINT, ZONETYPE=FEBRICK" <<
endl;
70 for (
size_t n = 0;
n < nodes.size();
n++) {
73 for (
size_t d = 0; d < datanames.size(); d++)
78 for (
size_t c = 0;
c < cells.size();
c++) {
std::string getFileExtension() override
std::shared_ptr< T > SPtr
#define UBLOG(level, logtext)
std::string writeOctsWithNodeData(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleUInt8 > &cells, std::vector< std::string > &datanames, std::vector< std::vector< double > > &nodedata) override
std::string writeOctsU(const std::string &filename, std::vector< UbTupleFloat3 > &nodes, std::vector< UbTupleUInt8 > &cells)
bool makeDirectory(const std::string &dir)
std::string getTimeStamp()
std::string getPathFromString(const std::string &fileStringWithPath)