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

Method record

SRC/recorder/VTKHDF_Recorder.cpp:2018–2096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2016
2017
2018int VTKHDF_Recorder::record(int commitTag, double timeStamp)
2019{
2020 H5Fflush(file_id, H5F_SCOPE_GLOBAL);
2021 if (!initDone) {
2022 this->writeMesh();
2023 }
2024
2025 if (deltaT == 0.0 || timeStamp - nextTimeStampToRecord >= -deltaT * relDeltaTTol) {
2026 if (this->writeStep(timeStamp) < 0) {
2027 opserr << "VTKHDF_Recorder::record() - writeStep() failed\n";
2028 return -1;
2029 }
2030
2031 // // displacment
2032 if (outputData.disp) {
2033 // opserr<<"writeDisp"<<endln;
2034 if (this->writeDisp() < 0) {
2035 opserr << "VTKHDF_Recorder::record() - writeDisp() failed\n";
2036 return -1;
2037 }
2038 }
2039
2040 // // velocity
2041 if (outputData.vel) {
2042 // opserr<<"writeVel"<<endln;
2043 if (this->writeVel() < 0) {
2044 opserr << "VTKHDF_Recorder::record() - writeVel() failed\n";
2045 return -1;
2046 }
2047 }
2048
2049 // // acceleration
2050 if (outputData.accel) {
2051 // opserr<<"writeAccel"<<endln;
2052 if (this->writeAccel() < 0) {
2053 opserr << "VTKHDF_Recorder::record() - writeAccel() failed\n";
2054 return -1;
2055 }
2056 }
2057
2058 if (outputData.stress3D6) {
2059 // opserr<<"writeStress3D"<<endln;
2060 if (this->writeStrees3D6() < 0) {
2061 opserr << "VTKHDF_Recorder::record() - writeStress3D() failed\n";
2062 return -1;
2063 }
2064 }
2065
2066 if (outputData.strain3D6) {
2067 // opserr<<"writeStrain3D"<<endln;
2068 if (this->writeStrain3D6() < 0) {
2069 opserr << "VTKHDF_Recorder::record() - writeStrain3D() failed\n";
2070 return -1;
2071 }
2072 }
2073
2074 if (outputData.stress2D3) {
2075 // opserr<<"writeStress2D"<<endln;

Callers

nothing calls this directly

Calls 9

writeMeshMethod · 0.95
writeStepMethod · 0.95
writeDispMethod · 0.95
writeVelMethod · 0.95
writeAccelMethod · 0.95
writeStrees3D6Method · 0.95
writeStrain3D6Method · 0.95
writeStress2D3Method · 0.95
writeStrain2D3Method · 0.95

Tested by

no test coverage detected