#2527 Mohr Circle: Use cohersion and friction angle from case

This commit is contained in:
Rebecca Cox 2018-02-26 13:39:13 +01:00
parent f7ba9133fe
commit bed95a105e
3 changed files with 22 additions and 0 deletions

View File

@ -383,6 +383,22 @@ void RimGeoMechCase::addElementPropertyFiles(const std::vector<caf::FilePath>& f
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RimGeoMechCase::cohesion() const
{
return m_cohesion;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RimGeoMechCase::frictionAngleDeg() const
{
return m_frictionAngleDeg;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -71,6 +71,9 @@ public:
void addElementPropertyFiles(const std::vector<caf::FilePath>& filenames);
double cohesion() const;
double frictionAngleDeg() const;
// Fields:
caf::PdmChildArrayField<RimGeoMechView*> geoMechViews;

View File

@ -311,6 +311,9 @@ void RiuMohrsCirclePlot::queryDataAndUpdatePlot(RimGeoMechView* geoMechView, siz
CVF_ASSERT(geoMechView);
RigFemPartResultsCollection* resultCollection = geoMechView->geoMechCase()->geoMechData()->femPartResults();
setCohesion(geoMechView->geoMechCase()->cohesion());
setFrictionAngle(geoMechView->geoMechCase()->frictionAngleDeg());
int frameIdx = geoMechView->currentTimeStep();