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

Method setPressure

DEVELOPER/core/Pressure_Constraint.cpp:136–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void
137Pressure_Constraint::setPressure(double p)
138{
139 if (pval != 0) {
140 pval[0] = p;
141 return;
142 }
143
144 Node* pnode = this->getPressureNode();
145 if (pnode == 0) return;
146 const Vector& vel = pnode->getVel();
147 Vector newvel(vel);
148 newvel.Zero();
149 newvel(0) = p;
150 pnode->setTrialVel(newvel);
151 pnode->commitState();
152}
153
154void
155Pressure_Constraint::setPdot(double pdot)

Callers

nothing calls this directly

Calls 5

getPressureNodeMethod · 0.95
getVelMethod · 0.45
ZeroMethod · 0.45
setTrialVelMethod · 0.45
commitStateMethod · 0.45

Tested by

no test coverage detected