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

Method formTangDispSensitivity

SRC/analysis/integrator/DisplacementControl.cpp:619–744  ·  view source on GitHub ↗

//////////////////////Sensitivity Begin/////////////////////////////////// Added by Abbas obtain the derivative of the tangent displacement (dUhatdh)

Source from the content-addressed store, hash-verified

617//Added by Abbas
618//obtain the derivative of the tangent displacement (dUhatdh)
619 Vector *
620DisplacementControl::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

Callers 2

newStepMethod · 0.95
computeSensitivitiesMethod · 0.95

Calls 15

exitFunction · 0.85
getIDMethod · 0.80
getBMethod · 0.80
getLinearSOEMethod · 0.45
ZeroMethod · 0.45
formTangentMethod · 0.45
setBMethod · 0.45
solveMethod · 0.45
getXMethod · 0.45
getAnalysisModelMethod · 0.45
getDomainPtrMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected