-
-
Notifications
You must be signed in to change notification settings - Fork 563
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
#782 add harmonic mean #783
Conversation
Codecov Report
@@ Coverage Diff @@
## master #783 +/- ##
==========================================
+ Coverage 98.44% 98.45% +<.01%
==========================================
Files 179 179
Lines 9896 9945 +49
==========================================
+ Hits 9742 9791 +49
Misses 154 154
Continue to review full report at Codecov.
|
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.
Cheers @rtimms , looks good to me
\\beta = \\frac{\\Delta x_1}{\\Delta x_2 + \\Delta x_1} | ||
|
||
accounts for the difference in the control volume widths. This is the | ||
definiton from [1]. |
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.
is this the same definition as the Recktenwald paper?
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.
yeah, just in slightly different notation. Could remove this ref if you think it's cleaner to just provide one
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.
just saying it's the same but with different notation would be fine (you can add that commit with [ci skip] if you don't want to wait for the tests)
Description
Adds the harmonic mean to the finite element method. This is then used in
process_binary_operators
so that fluxes are computed using the harmonic mean of the diffusivity (or conductivity etc.)Fixes #782
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ flake8
$ python run-tests.py --unit
$ cd docs
and then$ make clean; make html
You can run all three at once, using
$ python run-tests.py --quick
.Further checks: