mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fault Reactivation: extract density, youngs modulus and poissons number geo mech model.
This commit is contained in:
@@ -321,6 +321,7 @@ std::pair<bool, std::string>
|
||||
RifInpExportTools::printHeading( stream, "Material, name=" + mat.name );
|
||||
RifInpExportTools::printHeading( stream, "Density" );
|
||||
RifInpExportTools::printNumber( stream, mat.density );
|
||||
|
||||
RifInpExportTools::printHeading( stream, "Elastic" );
|
||||
RifInpExportTools::printNumbers( stream, { mat.youngsModulus, mat.poissonNumber } );
|
||||
|
||||
@@ -555,6 +556,8 @@ bool RifFaultReactivationModelExporter::writePropertyToFile( const RigFaultReact
|
||||
|
||||
const std::vector<cvf::Vec3d>& nodes = grid->globalNodes();
|
||||
const std::vector<double> values = dataAccess.propertyValues( part, property, outputTimeStep );
|
||||
if ( values.size() != nodes.size() ) return false;
|
||||
|
||||
for ( size_t i = 0; i < nodes.size(); i++ )
|
||||
{
|
||||
std::string line = partName + "." + std::to_string( i + 1 ) + ", " + additionalData + std::to_string( values[i] );
|
||||
|
||||
Reference in New Issue
Block a user