Skip to content
Snippets Groups Projects

Rework force models and central moments transform

Merged Markus Holzer requested to merge holzer/lbmpy:ShiftMatrix into master

This MR provides a complete rework of the force model, so they are functioning in the moment space and the central moment space.

Furthermore, a new implementation for the shift matrix is provided and a rework of the central moment based method.

The central moment transform classes are adapted to be able to work with the changes.

TODOs:

  • Test Fixed Density BC when method has a force model
  • Forward/Backward Transform for D3Q15
  • make cumulants aware of polynomials
  • rework cumulants with force
Edited by Markus Holzer

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Michael Kuron requested review from @kuron and removed review request for @schottenhamml

    requested review from @kuron and removed review request for @schottenhamml

  • Michael Kuron requested review from @schottenhamml and removed review request for @kuron

    requested review from @schottenhamml and removed review request for @kuron

  • Markus Holzer added 2 commits

    added 2 commits

    • f317ef5b - Updated update kernels
    • 87a47bbb - Minor changes and adaption of the readme file

    Compare with previous version

  • Frederik Hennig added 3 commits

    added 3 commits

    • f68761dc - Renamed moment symbol bases
    • 6f4189b0 - Unified moment transform API.
    • afacbe58 - Merge branch 'ShiftMatrix' of i10git.cs.fau.de:holzer/lbmpy into ShiftMatrix

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Michael Kuron added 1 commit

    added 1 commit

    • 9f4067f6 - More testing for force models

    Compare with previous version

  • Michael Kuron resolved all threads

    resolved all threads

    • Resolved by Michael Kuron

      I have added a few test cases, most of which pass. A couple fail, indicating that there are still errors in this merge request.

      Looking at the moments:

      • Simple, Luo, Guo: pass all tests.
      • He: has spurious 1/rho in the moments. The incompressible version even has 1/rho^2, as well as a non-zero mass mode, which is even more wrong. Note that incompressibility does not necessarily mean rho=1!
      • Buick: appears to be identical to Simple. Shouldn't this be kind of an incompressible Guo?
      • EDM: has stress moments that are quadratic in the force. This can't be right. The compressible version also has spurious 1/rho in the stress modes.

      Comparing to the expressions from the original literature:

      • When using an MRT with only a single relaxation time, we do not recover the SRT version of Guo and Buick (Guo however is identical to Schiller in this case). I guess this is because MRT does not relax the conserved moments, while SRT does. It might be fine since our implementation is more generic than the literature, but it would be good if you could also give this some thought, @holzer.
  • Michael Kuron mentioned in merge request !76 (closed)

    mentioned in merge request !76 (closed)

  • Markus Holzer added 2 commits

    added 2 commits

    • f5b679de - Symbolic relaxation rates for all lb methods
    • 0ef8c3d5 - Merge branch 'ShiftMatrix' of i10git.cs.fau.de:holzer/lbmpy into ShiftMatrix

    Compare with previous version

  • Markus Holzer added 2 commits

    added 2 commits

    Compare with previous version

  • The symbolic relaxation rates you pushed earlier broke some of my new tests.

    Edited by Michael Kuron
  • Yes, I will fix this asap. The problem before was that the multiplication with the relaxation matrix introduces 10^-20 terms for some relaxation rates, so we decided to completely transform the relaxation rates to a symbolic representation inside the method which is resolved by subexpressions.

  • Michael Kuron added 1 commit

    added 1 commit

    • 12d8ec9f - Restore force model backwards compatibility

    Compare with previous version

  • Markus Holzer added 2 commits

    added 2 commits

    • 0bf5e03e - Fix some force model test cases
    • 833706e5 - Merge branch 'ShiftMatrix' of i10git.cs.fau.de:holzer/lbmpy into ShiftMatrix

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading