| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Extract the force/moment assembly (everything after the circulation solve) from solve! into a standalone exported calc_forces!(solver, body_aero). solve! is now solve_base! + calc_forces!; behavior is unchanged. This lets a frozen circulation be mapped to forces without re-running the nonlinear gamma solve. Make calc_forces! allocation-free for the per-step hot path: - preallocate panel_area_dist buffer (was zeros(T, n) each call) - preallocate unrefined_count_dist buffer (was zeros(Int, n) each call) - rewrite _compute_reference_velocity_from_distribution to drop its ones()/T.() copies Add a function-barrier zero-alloc test for calc_forces!. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is 92.00000% with 2 lines in your changes missing coverage. Please review.
📢 Thoughts on this report? Let us know! |
Sorry, something went wrong.
* Split calc_forces! out of solve! and make it zero-alloc Extract the force/moment assembly (everything after the circulation solve) from solve! into a standalone exported calc_forces!(solver, body_aero). solve! is now solve_base! + calc_forces!; behavior is unchanged. This lets a frozen circulation be mapped to forces without re-running the nonlinear gamma solve. Make calc_forces! allocation-free for the per-step hot path: - preallocate panel_area_dist buffer (was zeros(T, n) each call) - preallocate unrefined_count_dist buffer (was zeros(Int, n) each call) - rewrite _compute_reference_velocity_from_distribution to drop its ones()/T.() copies Add a function-barrier zero-alloc test for calc_forces!. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * Fix plotting 3d polars --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
| Back | FazBrowse Home | New Git URL |
What
Extract the force/moment assembly (everything after the circulation solve) from solve! into a standalone exported calc_forces!(solver, body_aero). solve! is now solve_base! + calc_forces!, with behavior unchanged.
This creates a clean seam: a frozen circulation can be mapped to forces via calc_forces! without re-running the nonlinear gamma solve. It's the backend kernel for an upcoming geometry → forces aero interface in SymbolicAWEModels.jl.
Zero-alloc
calc_forces! is the per-step hot path, so it's now allocation-free:
Added a function-barrier zero-alloc test for calc_forces!.
Verification
Full solver suite green, behavior-preserving:
🤖 Generated with Claude Code