| 402 | |
| 403 | |
| 404 | void |
| 405 | LoadPattern::applyLoad(double pseudoTime) |
| 406 | { |
| 407 | // first determine the load factor |
| 408 | if (theSeries != 0 && isConstant != 0) { |
| 409 | loadFactor = theSeries->getFactor(pseudoTime); |
| 410 | loadFactor *= scaleFactor; |
| 411 | } |
| 412 | |
| 413 | NodalLoad *nodLoad; |
| 414 | NodalLoadIter &theNodalIter = this->getNodalLoads(); |
| 415 | |
| 416 | while ((nodLoad = theNodalIter()) != 0) |
| 417 | nodLoad->applyLoad(loadFactor); |
| 418 | |
| 419 | ElementalLoad *eleLoad; |
| 420 | ElementalLoadIter &theElementalIter = this->getElementalLoads(); |
| 421 | while ((eleLoad = theElementalIter()) != 0) |
| 422 | eleLoad->applyLoad(loadFactor); |
| 423 | |
| 424 | SP_Constraint *sp; |
| 425 | SP_ConstraintIter &theIter = this->getSPs(); |
| 426 | while ((sp = theIter()) != 0) |
| 427 | sp->applyConstraint(loadFactor); |
| 428 | } |
| 429 | |
| 430 | void |
| 431 | LoadPattern::setLoadConstant(void) |
no test coverage detected