| 2145 | } |
| 2146 | |
| 2147 | int VTKHDF_Recorder::writeStrees3D6(void) { |
| 2148 | |
| 2149 | std::vector<double> stressData(numElement * 6, 0.0); |
| 2150 | for (auto i: theEleTags) { |
| 2151 | Element *theEle = theDomain->getElement(i); |
| 2152 | int MappedIndex = theEleMapping[i]; |
| 2153 | if (stress3D6Responses[MappedIndex]==0) { |
| 2154 | continue; |
| 2155 | } |
| 2156 | stress3D6Responses[MappedIndex]->getResponse(); |
| 2157 | Information &info = stress3D6Responses[MappedIndex]->getInformation(); |
| 2158 | const Vector &stress = info.getData(); |
| 2159 | for (int j = 0; j < 6; j++) { |
| 2160 | stressData[6 * MappedIndex + j] = stress(j); |
| 2161 | } |
| 2162 | } |
| 2163 | |
| 2164 | int res = 0; |
| 2165 | res += this->extendDataset(cell_data_group, "stress3D6", stressData.data(), H5T_NATIVE_DOUBLE, numElement, 6); |
| 2166 | res += this->extendOffsetDataset(cell_data_offsets_group, "stress3D6", ¤t_Stress3D6Offset, H5T_NATIVE_INT, 1); |
| 2167 | current_Stress3D6Offset += numElement; |
| 2168 | return res; |
| 2169 | } |
| 2170 | |
| 2171 | |
| 2172 | int VTKHDF_Recorder::writeStrain3D6(void) { |
no test coverage detected