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

Method Print

SRC/coordTransformation/CorotCrdTransf3d.cpp:2188–2207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2186
2187
2188void
2189CorotCrdTransf3d::Print(OPS_Stream &s, int flag)
2190{
2191 if (flag == OPS_PRINT_CURRENTSTATE) {
2192 s << "\nCrdTransf: " << this->getTag() << " Type: CorotCrdTransf3d";
2193 s << "\tvAxis: " << vAxis;
2194 s << "\tnodeI Offset: " << nodeIOffset;
2195 s << "\tnodeJ Offset: " << nodeJOffset;
2196 }
2197
2198 if (flag == OPS_PRINT_PRINTMODEL_JSON) {
2199 s << "\t\t\t{\"name\": \"" << this->getTag() << "\", \"type\": \"CorotCrdTransf3d\"";
2200 s << ", \"vecInLocXZPlane\": [" << vAxis(0) << ", " << vAxis(1) << ", " << vAxis(2) << "]";
2201 if (nodeIOffset != 0)
2202 s << ", \"iOffset\": [" << nodeIOffset[0] << ", " << nodeIOffset[1] << ", " << nodeIOffset[2] << "]";
2203 if (nodeJOffset != 0)
2204 s << ", \"jOffset\": [" << nodeJOffset[0] << ", " << nodeJOffset[1] << ", " << nodeJOffset[2] << "]";
2205 s << "}";
2206 }
2207}

Callers 1

OPS_printCrdTransfFunction · 0.45

Calls 1

getTagMethod · 0.45

Tested by

no test coverage detected