Add well angles in degrees, not radians.

This commit is contained in:
jonjenssen 2022-01-31 14:49:01 +01:00 committed by Magne Sjaastad
parent 8c27a0f656
commit abd4e80b48

View File

@ -47,6 +47,8 @@
#include "cafPdmUiFilePathEditor.h"
#include "cafPdmUiTableViewEditor.h"
#include "cvfMath.h"
#include <QDebug>
#include <QFileInfo>
@ -495,8 +497,8 @@ bool RimWellIASettings::updateResInsightParameters()
auto angles = RigWellPathGeometryTools::calculateAzimuthAndInclinationAtMd( ( m_startMD + m_endMD ) / 2.0,
wellPath()->wellPathGeometry() );
initialStress->addParameter( "azimuth_well", angles.first );
initialStress->addParameter( "inclination_well", angles.second );
initialStress->addParameter( "azimuth_well", cvf::Math::toDegrees( angles.first ) );
initialStress->addParameter( "inclination_well", cvf::Math::toDegrees( angles.second ) );
m_parametersRI.push_back( initialStress );