| 2121 | } |
| 2122 | |
| 2123 | int VTKHDF_Recorder::writeStrain2D3(void) { |
| 2124 | |
| 2125 | std::vector<double> strainData(numElement * 3, 0.0); |
| 2126 | for (auto i: theEleTags) { |
| 2127 | Element *theEle = theDomain->getElement(i); |
| 2128 | int MappedIndex = theEleMapping[i]; |
| 2129 | if (strain2D3Responses[MappedIndex] == 0) { |
| 2130 | continue; |
| 2131 | } |
| 2132 | strain2D3Responses[MappedIndex]->getResponse(); |
| 2133 | Information &info = strain2D3Responses[MappedIndex]->getInformation(); |
| 2134 | const Vector &strain = info.getData(); |
| 2135 | for (int j = 0; j < 3; j++) { |
| 2136 | strainData[3 * MappedIndex + j] = strain(j); |
| 2137 | } |
| 2138 | } |
| 2139 | |
| 2140 | int res = 0; |
| 2141 | res += this->extendDataset(cell_data_group, "strain2D3", strainData.data(), H5T_NATIVE_DOUBLE, numElement, 3); |
| 2142 | res += this->extendOffsetDataset(cell_data_offsets_group, "strain2D3", ¤t_Strain2D3Offset, H5T_NATIVE_INT, 1); |
| 2143 | current_Strain2D3Offset += numElement; |
| 2144 | return res; |
| 2145 | } |
| 2146 | |
| 2147 | int VTKHDF_Recorder::writeStrees3D6(void) { |
| 2148 |
no test coverage detected