Skip to content

Commit

Permalink
Flip Y to get local coordinate element nodes in correct order for aba…
Browse files Browse the repository at this point in the history
…qus.

Bump version to dev.03
  • Loading branch information
jonjenssen committed Dec 17, 2023
1 parent f767efd commit 5a87f5b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void RigFaultReactivationModelGenerator::setupLocalCoordinateTransform()
{
auto [xNormal, yNormal] = modelLocalNormalsXY();

yNormal = -1.0 * yNormal;
// yNormal = yNormal * -1.0;

m_localCoordTransform = cvf::Mat4d::fromCoordSystemAxes( &xNormal, &yNormal, &cvf::Vec3d::Z_AXIS );
cvf::Vec3d center = m_startPosition * -1.0;
Expand Down
9 changes: 8 additions & 1 deletion ApplicationLibCode/ReservoirDataModel/RigGriddedPart3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,15 @@ void RigGriddedPart3d::generateLocalNodes( const cvf::Mat4d transform )
{
m_localNodes.clear();

// need to flip the Y axis for the element corners to be in an acceptable order for abaqus and the IJK numbering algorithm in resinsight
cvf::Vec3d xAxis = { 1.0, 0.0, 0.0 };
cvf::Vec3d yAxis = { 0.0, -1.0, 0.0 };
cvf::Vec3d zAxis = { 0.0, 0.0, 1.0 };
cvf::Mat4d flipY = cvf::Mat4d::fromCoordSystemAxes( &xAxis, &yAxis, &zAxis );

for ( auto& node : m_nodes )
{
m_localNodes.push_back( node.getTransformedPoint( transform ) );
auto tn = node.getTransformedPoint( transform );
m_localNodes.push_back( tn.getTransformedPoint( flipY ) );
}
}
2 changes: 1 addition & 1 deletion ResInsightVersion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set(RESINSIGHT_VERSION_TEXT "-dev")
# Must be unique and increasing within one combination of major/minor/patch version
# The uniqueness of this text is independent of RESINSIGHT_VERSION_TEXT
# Format of text must be ".xx"
set(RESINSIGHT_DEV_VERSION ".02")
set(RESINSIGHT_DEV_VERSION ".03")

# https://github.com/CRAVA/crava/tree/master/libs/nrlib
set(NRLIB_GITHUB_SHA "ba35d4359882f1c6f5e9dc30eb95fe52af50fd6f")
Expand Down

0 comments on commit 5a87f5b

Please sign in to comment.