-
Notifications
You must be signed in to change notification settings - Fork 46
Spatially variable robin bug fixes #446
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
Spatially variable robin bug fixes #446
Conversation
…warning if RobinBoundaryCondition is constructed with 0 stiffness and 0 damping
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #446 +/- ##
==========================================
+ Coverage 67.42% 67.45% +0.02%
==========================================
Files 169 170 +1
Lines 34142 34173 +31
Branches 5727 5736 +9
==========================================
+ Hits 23021 23050 +29
- Misses 10983 10985 +2
Partials 138 138 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Pull Request Overview
This PR fixes issues with spatially variable Robin boundary conditions by updating XML element names and correcting point matching when mesh scaling is applied.
- Replace deprecated
<Robin_vtp_file_path>XML element with<Spatial_values_file_path>for better consistency - Add warning for Robin boundary conditions with both zero stiffness and damping values
- Fix point matching bug by accounting for mesh scale factor when comparing VTP coordinates
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/cases/ustruct/spatially_variable_robin/solver.xml | Updates XML element name for spatial Robin BC file path |
| tests/cases/struct/spatially_variable_robin/solver.xml | Updates XML element name for spatial Robin BC file path |
| Code/Source/solver/read_files.cpp | Changes parameter reference from robin_vtp_file_path to spatial_values_file_path |
| Code/Source/solver/RobinBoundaryCondition.h | Moves uniform constructor from inline to separate implementation |
| Code/Source/solver/RobinBoundaryCondition.cpp | Implements uniform constructor with zero-value warning |
| Code/Source/solver/Parameters.h | Removes deprecated robin_vtp_file_path parameter |
| Code/Source/solver/Parameters.cpp | Removes deprecated robin_vtp_file_path parameter initialization |
| Code/Source/solver/BoundaryCondition.h | Adds mesh_scale_factor parameter to find_vtp_point_index method |
| Code/Source/solver/BoundaryCondition.cpp | Implements mesh scaling fix in point matching logic |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…ryCondition for logging output, initialize logger earlier so that it is available when reading files.
|
@ktbolt Did you want to see any other changes to this? If not, could you submit an approving review and we can merge it? |
|
@aabrown100-git I think |
|
@ktbolt yeah I was a little reluctant to do that but I couldn't think of another way for |
|
@aabrown100-git I did not give much thought to logging, just wanted to have a way to write to the Just declare |
…lifiers as necessary
|
@ktbolt I tried implementing Instead, I went with
Let me know what you think! |
|
@aabrown100-git That'll work ! Note that |
|
@ktbolt okay great! Anything else you'd like to see changed? |
|
@aabrown100-git No more changes, great work ! Adding new objects brings up some issues that we will need to address in future, very useful to get us on track. |
|
@ktbolt sounds good! Could you submit an approving review, and I can merge this when the checks pass. |
Current situation
Resolves #444
Release Notes
<Robin_vtp_file_path>xml element with<Spatial_values_file_path>for providing path to spatially variable Robin boundary condition .vtp file.RobinBoundaryConditionconstructor if both stiffness and damping are 0.mesh_scale_factoris not 1.Testing
Modifies struct/spatially_variable_robin and ustruct/spatially_variable_robin tests with new xml format.
Code of Conduct & Contributing Guidelines