| 2170 | |
| 2171 | |
| 2172 | int VTKHDF_Recorder::writeStrain3D6(void) { |
| 2173 | |
| 2174 | std::vector<double> strainData(numElement * 6, 0.0); |
| 2175 | for (auto i: theEleTags) { |
| 2176 | Element *theEle = theDomain->getElement(i); |
| 2177 | int MappedIndex = theEleMapping[i]; |
| 2178 | if (strain3D6Responses[MappedIndex] == 0) { |
| 2179 | continue; |
| 2180 | } |
| 2181 | strain3D6Responses[MappedIndex]->getResponse(); |
| 2182 | Information &info = strain3D6Responses[MappedIndex]->getInformation(); |
| 2183 | const Vector &strain = info.getData(); |
| 2184 | for (int j = 0; j < 6; j++) { |
| 2185 | strainData[6 * MappedIndex + j] = strain(j); |
| 2186 | } |
| 2187 | } |
| 2188 | |
| 2189 | int res = 0; |
| 2190 | res += this->extendDataset(cell_data_group, "strain3D6", strainData.data(), H5T_NATIVE_DOUBLE, numElement, 6); |
| 2191 | res += this->extendOffsetDataset(cell_data_offsets_group, "strain3D6", ¤t_Strain3D6Offset, H5T_NATIVE_INT, 1); |
| 2192 | current_Strain3D6Offset += numElement; |
| 2193 | return res; |
| 2194 | } |
| 2195 | |
| 2196 | int VTKHDF_Recorder::writeVel(void) |
| 2197 | { |
no test coverage detected