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

Method setPdot

DEVELOPER/core/Pressure_Constraint.cpp:154–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void
155Pressure_Constraint::setPdot(double pdot)
156{
157 if (pval != 0) {
158 pval[1] = pdot;
159 return;
160 }
161
162 Node* pnode = this->getPressureNode();
163 if (pnode == 0) return;
164 const Vector& accel = pnode->getAccel();
165 Vector newaccel(accel);
166 newaccel.Zero();
167 newaccel(0) = pdot;
168 pnode->setTrialAccel(newaccel);
169 pnode->commitState();
170}
171
172double
173Pressure_Constraint::getPressure(int last)

Callers

nothing calls this directly

Calls 5

getPressureNodeMethod · 0.95
getAccelMethod · 0.45
ZeroMethod · 0.45
setTrialAccelMethod · 0.45
commitStateMethod · 0.45

Tested by

no test coverage detected