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

Method writeStrain2D3

SRC/recorder/VTKHDF_Recorder.cpp:2123–2145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2121}
2122
2123int 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", &current_Strain2D3Offset, H5T_NATIVE_INT, 1);
2143 current_Strain2D3Offset += numElement;
2144 return res;
2145}
2146
2147int VTKHDF_Recorder::writeStrees3D6(void) {
2148

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