Skip to content
Snippets Groups Projects
Closed Wrong momentum density calculation for compressible methods with forces.
  • View options
  • Wrong momentum density calculation for compressible methods with forces.

  • View options
  • Closed Issue created by Helen Schottenhamml

    In conservedquantitycomputation.py (line 210f) the calculation of the momentum density uses the macroscopic velocity shift

    mom_density_eq_coll = apply_force_model_shift('macroscopic_velocity_shift', dim, mom_density_eq_coll,
                                                  self._forceModel, self._compressible)

    which defaults to . When using this momentum density to calculcate the velocity (as it is done in all generated lattice models in waLBerla), we divide by the density again, resulting in the overall velocity equation , which is obviously wrong.

    Affected are all lbmpy simulations that work directly on the momentum denisty, and all waLBerla simulations that use generated lattice models and calculate the velocity at some point (in particular, the VTK output will be slightly off).

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading