Flip Y to get local coordinate element nodes in correct order for abaqus.

Bump version to dev.03
This commit is contained in:
jonjenssen 2023-12-18 00:48:25 +01:00 committed by jonjenssen
parent e67f09a4ff
commit 4aa5a38d63
3 changed files with 10 additions and 3 deletions

View File

@ -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;

View File

@ -687,8 +687,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 ) );
}
}

View File

@ -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")