Skip to content
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

LB Boundary force: fix unit conversion and tests #3287

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

RudolfWeeber
Copy link
Contributor

Reference solutions for forces on shear planes and for stokes drag need dynamic viscosity, but LB uses kinetmatic viscosity.
This switches the tests to dynamic viscosity and removes a 1/rho from the unit conversion in the script interface.
Also, a force balance test is added, which does not depend on the density.

Fixes #

Description of changes:

PR Checklist

  • Tests?
    • Interface
    • Core
  • Docs?

Reference solutions for forces on shear planes and for stokes drag need dynamic viscosity, but LB uses kinetmatic viscosity.
This switches the tests to dynamic viscosity and removes a 1/rho from the unit conversion in the script interface.
Also, a force balance test is added, which does not depend on the density.
@RudolfWeeber RudolfWeeber added this to the Espresso 4.1.1 milestone Oct 31, 2019
@RudolfWeeber RudolfWeeber requested a review from fweik October 31, 2019 10:17
@codecov
Copy link

codecov bot commented Oct 31, 2019

Codecov Report

Merging #3287 into python will decrease coverage by <1%.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           python   #3287   +/-   ##
======================================
- Coverage      85%     85%   -1%     
======================================
  Files         534     534           
  Lines       25526   25524    -2     
======================================
- Hits        21950   21948    -2     
  Misses       3576    3576
Impacted Files Coverage Δ
src/script_interface/lbboundaries/LBBoundary.hpp 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e900255...88730c8. Read the comment docs.

testsuite/python/lb_shear.py Outdated Show resolved Hide resolved
@fweik
Copy link
Contributor

fweik commented Oct 31, 2019

bors r+

bors bot added a commit that referenced this pull request Oct 31, 2019
3287: LB Boundary force: fix unit conversion and tests r=fweik a=RudolfWeeber

Reference solutions for forces on shear planes and for stokes drag need dynamic viscosity, but LB uses kinetmatic viscosity.
This switches the tests to dynamic viscosity and removes a 1/rho from the unit conversion in the script interface.
Also, a force balance test is added, which does not depend on the density.

Fixes #

Description of changes:
 - 


PR Checklist
------------
 - [ ] Tests?
   - [ ] Interface
   - [ ] Core 
 - [ ] Docs?


Co-authored-by: Rudolf Weeber <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 31, 2019

Build succeeded

@bors bors bot merged commit 88730c8 into espressomd:python Oct 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants