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

Method getPdot

DEVELOPER/core/Pressure_Constraint.cpp:195–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195double
196Pressure_Constraint::getPdot(int last)
197{
198 if (pval != 0) {
199 return pval[1];
200 }
201
202 Domain* theDomain = this->getDomain();
203 if(theDomain == 0) {
204 opserr<<"WARNING: domain has not been set";
205 opserr<<" -- Pressure_Constraint::getPressureNode\n";
206 return 0;
207 }
208
209 Node* pNode = theDomain->getNode(pTag);
210 if(pNode == 0) return 0.0;
211 const Vector& accel = pNode->getAccel();
212 if(last == 1) {
213 if(accel.Size()==0) return 0.0;
214 return accel(0);
215 }
216 return 0.0;
217}
218
219const ID&
220Pressure_Constraint::getFluidElements()

Callers

nothing calls this directly

Calls 4

getDomainMethod · 0.45
getNodeMethod · 0.45
getAccelMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected