AddingSensitivity:BEGIN ////////////////////////////////////
| 967 | |
| 968 | // AddingSensitivity:BEGIN //////////////////////////////////// |
| 969 | void |
| 970 | LoadPattern::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 | |
| 1007 | int |
| 1008 | LoadPattern::setParameter(const char **argv, int argc, Parameter ¶m) |
nothing calls this directly
no test coverage detected