93 MY_ERROR(
"Stress object created without specifying a name. Use write(filename) instead of write()");
94 std::ofstream file(
name+
".stress");
96 file <<
field.size() <<
"\n";
100 Eigen::IOFormat fmt(Eigen::FullPrecision, 0,
" ",
"\n",
"",
"",
"");
101 file << std::fixed << std::setprecision(std::numeric_limits<double>::max_digits10);
102 file <<
"Properties=pos:R:3:stress:R:6" << std::endl;
103 for (
auto& stress :
field)
107 file <<
pgrid->coordinates[index].format(fmt)
108 << std::setw(25) << stress(0,0)
109 << std::setw(25) << stress(1,1)
110 << std::setw(25) << stress(2,2)
111 << std::setw(25) << stress(0,1)
112 << std::setw(25) << stress(0,2)
113 << std::setw(25) << stress(1,2)