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

Method applyLoadSensitivity

SRC/domain/pattern/LoadPattern.cpp:969–1005  ·  view source on GitHub ↗

AddingSensitivity:BEGIN ////////////////////////////////////

Source from the content-addressed store, hash-verified

967
968// AddingSensitivity:BEGIN ////////////////////////////////////
969void
970LoadPattern::applyLoadSensitivity(double pseudoTime)
971{
972 // P*dfactor/dh
973 if (theSeries != 0 && isConstant != 0) {
974 loadFactor = theSeries->getFactorSensitivity(pseudoTime);
975 loadFactor *= scaleFactor;
976 }
977
978 NodalLoad *nodLoad;
979 NodalLoadIter &theNodalIter = this->getNodalLoads();
980 while ((nodLoad = theNodalIter()) != 0)
981 nodLoad->applyLoad(loadFactor);
982
983 // factor*dP/dh
984 if (theSeries != 0 && isConstant != 0) {
985 loadFactor = theSeries->getFactor(pseudoTime);
986 loadFactor *= scaleFactor;
987 }
988
989 NodalLoadIter &theNodalIter2 = this->getNodalLoads();
990 while ((nodLoad = theNodalIter2()) != 0)
991 nodLoad->applyLoadSensitivity(loadFactor);
992
993 // Don't include element loads and sp constraints for now
994 /*
995 ElementalLoad *eleLoad;
996 ElementalLoadIter &theElementalIter = this->getElementalLoads();
997 while ((eleLoad = theElementalIter()) != 0)
998 eleLoad->applyLoad(loadFactor);
999
1000 SP_Constraint *sp;
1001 SP_ConstraintIter &theIter = this->getSPs();
1002 while ((sp = theIter()) != 0)
1003 sp->applyConstraint(loadFactor);
1004 */
1005}
1006
1007int
1008LoadPattern::setParameter(const char **argv, int argc, Parameter &param)

Callers

nothing calls this directly

Calls 3

getFactorSensitivityMethod · 0.45
applyLoadMethod · 0.45
getFactorMethod · 0.45

Tested by

no test coverage detected