Skip to content

feat: Adding a fault stability analysis workflow#232

Open
paloma-martinez wants to merge 21 commits intomainfrom
pmartinez/feature/faultStabilityVisu
Open

feat: Adding a fault stability analysis workflow#232
paloma-martinez wants to merge 21 commits intomainfrom
pmartinez/feature/faultStabilityVisu

Conversation

@paloma-martinez
Copy link
Collaborator

This PR will add a post-processing workflow to analyze the fault stability and plot various results.

@paloma-martinez paloma-martinez marked this pull request as ready for review March 5, 2026 10:56
@paloma-martinez paloma-martinez added the test-geos-integration Triggers the testing of geosPythonPackages import and integration in GEOS CI label Mar 5, 2026
Copy link
Contributor

@RomainBaville RomainBaville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the job.
I made some suggestion but I have two additionnal global comment:
There is some caracter in the code that can lead to issues (greek letters, emoticon, arrows). To avoid that, you may change them.
In your code, some warning can be convert to error and the error managment can be updated (raise and not log error, use the CountVerbosityHandler ...)


pvdPath = self.vtuOutputDir / filename

self.logger.info( f"\n💾 Creating PVD collection: {pvdPath}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.logger.info( f"\n💾 Creating PVD collection: {pvdPath}"
self.logger.info( f"💾 Creating PVD collection: {pvdPath}\n"

Copy link
Contributor

@RomainBaville RomainBaville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the job.
I made some suggestion but I have two additionnal global comment:
There is some caracter in the code that can lead to issues (greek letters, emoticon, arrows). To avoid that, you may change them.
In your code, some warning can be convert to error and the error managment can be updated (raise and not log error, use the CountVerbosityHandler ...)

self.outputDir: Path = Path( "FaultStabilityAnalysis/" )

# Mechanical parameters
self.frictionAngle: float = 12 # [degrees]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

12 is very specific usually it is 10 or 30, you may change it

plt.savefig( os.path.join( path, filename ), dpi=300, bbox_inches='tight' )
self.logger.info( f" 📊 Plot saved: {filename}" )
plt.savefig( path / filename, dpi=300, bbox_inches='tight' )
plt.savefig( str( path / filename ), dpi=300, bbox_inches='tight' )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line ducplicate?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing clean up


# Plot 2: Shear Stress
axes[ 1 ].set_xlabel( 'Shear Stress τ [bar]', fontsize=fsize, weight="bold" )
# axes[ 1 ].set_xlabel( 'Shear Stress τ [bar]', fontsize=fsize, weight="bold" )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot a greek letter

Line2D( [ 0 ], [ 0 ], color='gray', linewidth=2.5, linestyle='-', marker='o', label='σ₁ (max)' ),
Line2D( [ 0 ], [ 0 ], color='gray', linewidth=2.0, linestyle='-', marker='s', label='σ₂ (inter)' ),
Line2D( [ 0 ], [ 0 ], color='gray', linewidth=2.5, linestyle='-', marker='v', label='σ₃ (min)' )
Line2D( [ 0 ], [ 0 ], color='gray', linewidth=2.5, linestyle='-', marker='o', label='sigma₁ (max)' ),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sur that the indice is a correct carracter, you may change it here and after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-geos-integration Triggers the testing of geosPythonPackages import and integration in GEOS CI type: feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants