MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / writeStrain3D6

Method writeStrain3D6

SRC/recorder/VTKHDF_Recorder.cpp:2172–2194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2170
2171
2172int 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", &current_Strain3D6Offset, H5T_NATIVE_INT, 1);
2192 current_Strain3D6Offset += numElement;
2193 return res;
2194}
2195
2196int VTKHDF_Recorder::writeVel(void)
2197{

Callers 1

recordMethod · 0.95

Calls 6

extendDatasetMethod · 0.95
extendOffsetDatasetMethod · 0.95
getElementMethod · 0.45
getResponseMethod · 0.45
getDataMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected