-
Notifications
You must be signed in to change notification settings - Fork 141
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
FEAT: enable harmonic force #5440
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (85.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #5440 +/- ##
==========================================
- Coverage 84.84% 79.16% -5.69%
==========================================
Files 158 158
Lines 61865 61884 +19
==========================================
- Hits 52489 48989 -3500
- Misses 9376 12895 +3519 |
if not self.is3d and self.geometry_mode == "about Z" or self.solution_type == "TransientAPhiFormulation": | ||
if force_type == 0 and calculate_force == "Transient": | ||
calculate_force = "Harmonic" | ||
self.logger.warning( | ||
"Object-Based Transient Force calculation is not supported for " | ||
"non-rotational transient solutions. Only Harmonic Force will be calculated." | ||
) | ||
if not self.is3d and self.geometry_mode == "about Z": | ||
if use_number_of_cycles_from_stop_time or use_number_of_cycles_for_stop_time: | ||
self.logger.warning( | ||
" ``number_of_cycles_from_stop_time´´ and ``number_of_cycles_for_stop_time´´" | ||
"are not available for TransientZ." | ||
) | ||
use_number_of_cycles_from_stop_time = False | ||
use_number_of_cycles_for_stop_time = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@anur7 this part is very confusing. I'd simplify it. I also add an extra check on 2d and transient because use_number_of_cycles_from_stop_time and use_number_of_cycles_for_stop_time can be True in 3d Transient and Transient Aphi designs.
But this part has to be reviewed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gmalinve if I'm not wrong the Maxwell project used in UT contains only a transient 3d design. To increase the code coverage we need also a 2d design for testing.
@anur7 I pushed a change to fix the failing test but there are some parts in the method that need to be reviewed and simplified. |
# Conflicts: # src/ansys/aedt/core/maxwell.py # tests/system/solvers/test_00_analyze.py
… test 06 from test 07
With this new PR: