Support importing stress, too

This commit is contained in:
jonjenssen 2023-12-18 23:50:15 +01:00 committed by jonjenssen
parent 858c1227bc
commit 850b1a1894

View File

@ -302,8 +302,23 @@ RigElementType RifInpReader::read( std::istream&
else if ( prevline.starts_with( "*INITIAL" ) )
{
auto label = parseLabel( prevline, "type" );
if ( label == "RATIO" ) propertyName = "VOIDR";
resultType = RigFemResultPosEnum::RIG_NODAL;
if ( label == "RATIO" )
{
propertyName = "VOIDR";
resultType = RigFemResultPosEnum::RIG_NODAL;
}
else if ( label == "STRESS" )
{
includeEntries.push_back( RifInpIncludeEntry( "STRESS_TOP", RigFemResultPosEnum::RIG_ELEMENT, stepId, filename, 1 ) );
includeEntries.push_back( RifInpIncludeEntry( "DEPTH_TOP", RigFemResultPosEnum::RIG_ELEMENT, stepId, filename, 2 ) );
includeEntries.push_back( RifInpIncludeEntry( "STRESS_BOTTOM", RigFemResultPosEnum::RIG_ELEMENT, stepId, filename, 3 ) );
includeEntries.push_back( RifInpIncludeEntry( "DEPTH_BOTTOM", RigFemResultPosEnum::RIG_ELEMENT, stepId, filename, 4 ) );
includeEntries.push_back(
RifInpIncludeEntry( "LATERAL_STRESS_X", RigFemResultPosEnum::RIG_ELEMENT, stepId, filename, 5 ) );
propertyName = "LATERAL_STRESS_Y";
columnIndex = 6;
}
}
if ( propertyName.empty() )
{