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

Method getResponse

SRC/damage/Mehanny.cpp:297–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297int
298Mehanny::getResponse(int responseID, Information &info)
299{
300 switch (responseID) {
301 case -1:
302 return -1;
303
304 case 1:
305 return info.setDouble( this->getDamage() );
306
307 case 2:
308 return info.setDouble( TrialPlasticDefo );
309
310 case 3:
311 if(info.theVector!=0)
312 {
313 (*(info.theVector))(0) = TrialPosPHC;
314 (*(info.theVector))(1) = TrialSumPosFHC;
315 (*(info.theVector))(2) = TrialNegPHC;
316 (*(info.theVector))(3) = TrialSumNegFHC;
317 }
318 return 0;
319
320 default:
321 return -1;
322 }
323}
324
325
326int

Callers 15

OPS_NDGetResponseFunction · 0.45
OPS_sectionForceFunction · 0.45
OPS_sectionDeformationFunction · 0.45
OPS_sectionStiffnessFunction · 0.45
OPS_sectionFlexibilityFunction · 0.45
OPS_cbdiDisplacementFunction · 0.45
OPS_basicDeformationFunction · 0.45
OPS_basicForceFunction · 0.45
OPS_basicStiffnessFunction · 0.45
sectionForceFunction · 0.45
sectionDeformationFunction · 0.45
sectionStiffnessFunction · 0.45

Calls 2

getDamageMethod · 0.95
setDoubleMethod · 0.45

Tested by 1

OPS_NDGetResponseFunction · 0.36