OpenSees Node:setR() - row, col index out of range

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
WENQIAN
Posts: 1
Joined: Fri Mar 01, 2024 12:20 am

OpenSees Node:setR() - row, col index out of range

Post by WENQIAN » Fri Mar 01, 2024 12:30 am

Hello everyone in the community, I encountered this error when calculating the rotational seismic motion in the RZ direction in the model of a skew bridge. The model considers abutment collision and beamcontact3D elements. I found this error on the official website, but I am a bit confused about how to solve the problem between beamContact3D and degrees of freedom. Could you please help me take a look?


Node:setR() - row, col index out of range

int
01182 Node::setR(int row, int col, double Value)
01183 {
01184 // ensure R had been set
01185 if (R == 0) {
01186 opserr << "Node:setR() - R has not been initialised\n";
01187 return -1;
01188 }
01189
01190 // ensure row, col in range (matrix assignment will catch this - extra work)
01191 if (row < 0 || row > numberDOF || col < 0 || col > R->noCols()) {
01192 opserr << "Node:setR() - row, col index out of range\n";
01193 return -1;
01194 }
01195
01196 // do the assignment
01197 (*R)(row,col) = Value;
01198 return 0;
01199 }

Post Reply