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

Method getResponse

DEVELOPER/core/FrictionModel.cpp:129–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127
128
129int FrictionModel::getResponse(int responseID, Information &info)
130{
131 // each subclass must implement its own stuff
132 switch (responseID) {
133 case 1:
134 info.setDouble(this->getNormalForce());
135 return 0;
136
137 case 2:
138 info.setDouble(this->getVelocity());
139 return 0;
140
141 case 3:
142 info.setDouble(this->getFrictionForce());
143 return 0;
144
145 case 4:
146 info.setDouble(this->getFrictionCoeff());
147 return 0;
148
149 default:
150 return -1;
151 }
152}

Callers

nothing calls this directly

Calls 5

getNormalForceMethod · 0.95
getVelocityMethod · 0.95
setDoubleMethod · 0.45
getFrictionForceMethod · 0.45
getFrictionCoeffMethod · 0.45

Tested by

no test coverage detected