UM-PEPL / HallThruster.jl

An open-source fluid Hall thruster code
Other
18 stars 10 forks source link

Ue avg fix #121

Closed DecBrick closed 7 months ago

DecBrick commented 7 months ago

Theory on the non-uniform spacing weights can be found here: https://www.overleaf.com/read/ngjghgsndcmw#2da337

This commit should fix the weights on the smoothing step on line 57/62 (old/this commit) of electronenergy to correctly handle non-uniform grids.

I will update with a comment tomorrow, but as of this post this commit has passed the unit tests but I haven't tested performance/on a variety of simulations. Performance shouldn't be significantly changed speed wise as the number of calculations is small/might go down however, an additional array has been created that will increase memory usage.

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 87.37%. Comparing base (9b9247a) to head (8dde7da).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121/graphs/tree.svg?width=650&height=150&src=pr&token=ADOlTglgOb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) ```diff @@ Coverage Diff @@ ## main #121 +/- ## ========================================== + Coverage 87.22% 87.37% +0.15% ========================================== Files 36 36 Lines 2058 2083 +25 ========================================== + Hits 1795 1820 +25 Misses 263 263 ``` | [Files](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [src/simulation/electronenergy.jl](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL3NpbXVsYXRpb24vZWxlY3Ryb25lbmVyZ3kuamw=) | `96.62% <100.00%> (ø)` | | | [src/simulation/geometry.jl](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL3NpbXVsYXRpb24vZ2VvbWV0cnkuamw=) | `96.77% <100.00%> (+1.18%)` | :arrow_up: | | [src/simulation/simulation.jl](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-c3JjL3NpbXVsYXRpb24vc2ltdWxhdGlvbi5qbA==) | `90.34% <100.00%> (ø)` | | ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None). Last update [9b9247a...8dde7da](https://app.codecov.io/gh/UM-PEPL/HallThruster.jl/pull/121?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None).