[FluidDynamics] Refactor old compute_drag_process to compute flow forces & moments in body-fitted & embedded fluid formulations#14210
Open
juancamarotti wants to merge 17 commits intomasterfrom
Open
Conversation
Contributor
Author
|
Hi @rubenzorrilla, let's not forget this :) Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors the existing
compute_drag_process.pyto support the computation of flow forces and moments instead of only flow forces (before wrongly called drag force). The new implementation works consistently for both body-fitted and embedded fluid formulations by relying on the existing flow force utilities in theFluidDynamicsApplication.The previous drag-only functionality is preserved for backward compatibility through a deprecated wrapper, while the underlying implementation has been generalized to compute the full force and moment vectors about a user-defined reference point.
Additionally, a new Python process,
compute_aerodynamic_coefficients_process.py,has been introduced. This process reuses the existing force and moment computation utilities and post-processes the results to output aerodynamic force and moment coefficients, based on user-provided reference area, reference chord, and dynamic pressure.Main changes
@rubenzorrilla