//////////////////////Sensitivity Begin/////////////////////////////////// Added by Abbas obtain the derivative of the tangent displacement (dUhatdh)
| 617 | //Added by Abbas |
| 618 | //obtain the derivative of the tangent displacement (dUhatdh) |
| 619 | Vector * |
| 620 | DisplacementControl::formTangDispSensitivity(Vector *dUhatdh,int gradNumber) |
| 621 | { |
| 622 | // opserr<<"DisplacementControl:; formTangDispsensitivity:::::::::::Start"<<endln; |
| 623 | LinearSOE *theLinSOE = this->getLinearSOE(); |
| 624 | dUhatdh->Zero(); |
| 625 | dphatdh->Zero(); |
| 626 | // opserr<<"DisplacementControl::dUhatdh is "<<*dUhatdh<<endln;// |
| 627 | |
| 628 | // To get the structural stiffness Matrix using the full general system of equations |
| 629 | //............................................................... |
| 630 | // this->formTangent(); |
| 631 | // Matrix K(size,size); |
| 632 | // K.Zero(); |
| 633 | // K=this->ActivateSensitivity(); |
| 634 | // // to print K to the screen |
| 635 | //.......................... |
| 636 | /* |
| 637 | opserr<<"the tangent printed from the DisplacementControl.cpp"<<endln; |
| 638 | for(int i=0;i<size;i++) |
| 639 | { |
| 640 | for(int j=0;j<size;j++) |
| 641 | { |
| 642 | opserr<<K(i,j)<<" "; |
| 643 | |
| 644 | } |
| 645 | opserr<<endln; |
| 646 | |
| 647 | } |
| 648 | */ |
| 649 | // ................................................................ |
| 650 | |
| 651 | // form dKdh |
| 652 | |
| 653 | // Matrix dKdh(size,size); |
| 654 | // dKdh.Zero(); |
| 655 | // dKdh=this->getdKdh(); |
| 656 | // |
| 657 | // To print dKdh to the Screen |
| 658 | //................................................................ |
| 659 | |
| 660 | // opserr<<"dKdh from the DisplacementControl.cpp"<<endln; |
| 661 | // for(int i=0;i<size;i++) |
| 662 | // { |
| 663 | // for(int j=0;j<size;j++) |
| 664 | // { |
| 665 | // opserr<<dKdh(i,j)<<" "; |
| 666 | |
| 667 | // } |
| 668 | // opserr<<endln; |
| 669 | // } |
| 670 | |
| 671 | //............................................................... |
| 672 | |
| 673 | |
| 674 | // form dKdh*deltaUhat |
| 675 | // dUhatdh->addMatrixVector(0.0,dKdh,*deltaUhat,-1.0); |
| 676 |
no test coverage detected