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

Method angleBetweenDeviator

SRC/material/nD/soil/T2Vector.cpp:304–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302
303
304double
305T2Vector::angleBetweenDeviator(const T2Vector & a) const
306{
307 if (deviatorLength() <= LOW_LIMIT || a.deviatorLength() <= LOW_LIMIT) {
308 opserr << "FATAL:T2Vector::angleBetweenDeviator(T2Vector &): vector length <=" << LOW_LIMIT << endln;
309 exit(-1);
310 }
311
312 double angle = (theDeviator && a.theDeviator) / (deviatorLength() * a.deviatorLength());
313 if(angle > 1.) angle = 1.;
314 if(angle < -1.) angle = -1.;
315
316 return acos(angle);
317}
318
319
320int

Callers

nothing calls this directly

Calls 2

exitFunction · 0.85
deviatorLengthMethod · 0.80

Tested by

no test coverage detected