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

Method getDampingBetaFactor

DEVELOPER/core/DOF_Group.cpp:979–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977
978
979double
980DOF_Group::getDampingBetaFactor(int mode, double ratio, double wn)
981{
982 // to return 2.0 * ratio * wn * phi(mode)' * M * v
983 double beta = 0;
984 const Matrix & mass = myNode->getMass();
985 const Matrix & eigenVectors = myNode->getEigenvectors();
986 const Vector & vel = myNode->getTrialVel();
987 int numDOF = eigenVectors.noRows();
988 int numMode = eigenVectors.noCols();
989 Vector Mv = mass * vel;
990 if (mode < numMode) {
991 for (int i = 0; i < numDOF; i++)
992 beta += 2.0 * ratio * wn * eigenVectors(i, mode) * Mv(i);
993 }
994 return beta;
995}
996
997const Vector &
998DOF_Group::getDampingBetaForce(int mode, double beta)

Callers

nothing calls this directly

Calls 2

noRowsMethod · 0.45
noColsMethod · 0.45

Tested by

no test coverage detected