mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2527 Mohr circle: Make friction-cohesion line for negative principals
This commit is contained in:
parent
23ab74c34d
commit
f7ba9133fe
@ -263,14 +263,15 @@ void RiuMohrsCirclePlot::redrawEnvelope()
|
|||||||
double x = m_cohesion/tanFrictionAngle;
|
double x = m_cohesion/tanFrictionAngle;
|
||||||
if (m_principal1 < 0)
|
if (m_principal1 < 0)
|
||||||
{
|
{
|
||||||
xVals.push_back(-x);
|
xVals.push_back(x);
|
||||||
|
xVals.push_back(m_principal3*1.1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
xVals.push_back(x);
|
xVals.push_back(-x);
|
||||||
|
xVals.push_back(m_principal1*1.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
xVals.push_back(m_principal1*1.1);
|
|
||||||
|
|
||||||
yVals.push_back(0);
|
yVals.push_back(0);
|
||||||
yVals.push_back((x + cvf::Math::abs(m_principal1) * 1.1) * tanFrictionAngle);
|
yVals.push_back((x + cvf::Math::abs(m_principal1) * 1.1) * tanFrictionAngle);
|
||||||
|
Loading…
Reference in New Issue
Block a user