-
Notifications
You must be signed in to change notification settings - Fork 126
Post-processing methods for bearing analysis results #1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post-processing methods for bearing analysis results #1234
Conversation
…play for ThrustPad
…anization in ThrustPad
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1234 +/- ##
==========================================
- Coverage 83.25% 81.72% -1.53%
==========================================
Files 42 42
Lines 12120 12452 +332
==========================================
+ Hits 10090 10177 +87
- Misses 2030 2275 +245
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Overview
This PR implements a suite of post-processing methods for bearing analysis visualization and result inspection. These methods provide users with immediate access to simulation results without requiring re-execution.
Implementation
Modified Classes
TiltingPadThrustPadPlainJournalNew Methods
1.
show_results()Displays formatted tables with key simulation results including:
Supports both single and multiple frequency results.
2.
plot_results(show_plots=False, freq_index=0)Generates comprehensive visualizations for pressure and temperature fields:
Returns: Dictionary of Plotly figure objects for flexible post-processing.
3.
show_coefficients_comparison()Displays a comparison table of dynamic coefficients across all analyzed frequencies. Particularly useful for multi-frequency analyses to quickly identify trends and variations in bearing behavior at different operating speeds.
4.
show_execution_time()Reports the total simulation execution time.
5.
show_optimization_convergence(by='index')Displays the optimization residual history for each frequency, showing:
Valuable for debugging convergence issues and understanding the optimization process.
Helper Method
record_optimization_residual(residual_value, iteration=None)- tracks optimization progress during the solve process.Usage Examples
1. Initial Setup
2. Display Results
Output:
3. Plot Pressure and Temperature Fields
Figure:
4. Check Optimization Convergence
The equilibrium position is determined through an optimization process. To check convergence:
Output:
Plot:
5. Compare Coefficients at Multiple Frequencies
Output:
6. Check Execution Time
Output:
Implementation Details
Methods Summary
show_results()plot_results()show_coefficients_comparison()show_execution_time()show_optimization_convergence()