Additional refactoring for POR-Bar result handling

* Always use element-nodal for POR calculations
* Add RigFemAddressDefines
Add special handling for "POR-Bar" result, always use element_nodal

* 9362 Show unit text "sg" when normalized by hydrostatic pressure
This commit is contained in:
Magne Sjaastad authored and GitHub committed 2023-08-23 13:29:54 +02:00
1 parent 4b12f82583
commit bb293539d5
25 files changed
+203 -88

No files matched your search

@@ -21,6 +21,7 @@
#include "RiaApplication.h"
#include "RiaPreferencesGeoMech.h"
#include "RigFemAddressDefines.h"
#include "RigWellPath.h"
#include "RigWellPathGeometryTools.h"
@@ -476,7 +477,12 @@ bool RimWellIASettings::updateResInsightParameters()
}
}
double ppValue = dataAccess.interpolatedResultValue( "POR-Bar", "", RigFemResultPosEnum::RIG_NODAL, position, 0, 0 );
double ppValue = dataAccess.interpolatedResultValue( QString::fromStdString( RigFemAddressDefines::porBar() ),
"",
RigFemResultPosEnum::RIG_NODAL,
position,
0,
0 );
if ( std::isfinite( ppValue ) )
{
initialStress->addParameter( "PP", ppValue * 100000.0 );