-
Notifications
You must be signed in to change notification settings - Fork 1
Changing core radius fraction to default 0.05 and adjusting for machi… #155
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ def __init__( | |
| max_iterations: int = 5000, | ||
| allowed_error: float = 1e-6, | ||
| relaxation_factor: float = 0.01, | ||
| core_radius_fraction: float = 1e-20, | ||
| core_radius_fraction: float = 0.05, # Following Damiani et al. (2019) https://docs.nrel.gov/docs/fy19osti/72777.pdf | ||
|
||
| gamma_loop_type: str = "base", | ||
| gamma_initial_distribution_type: str = "elliptical", | ||
| is_only_f_and_gamma_output: bool = 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.
The change from exact equality comparison (
== 0) to a tolerance-based comparison (< 1e-12 * epsilon) is good practice for floating-point arithmetic. However, similar exact equality comparisons exist in other methods of the same file that should also be updated for consistency:velocity_3D_bound_vortexmethod:elif jit_norm(r1Xr0) / jit_norm(r0) == 0:velocity_3D_trailing_vortexmethod:elif jit_norm(r1Xr0) / jit_norm(r0) == 0:These methods have similar logic for checking if a point is on the filament and should use the same tolerance-based comparison approach.