lbmpy merge requestshttps://i10git.cs.fau.de/pycodegen/lbmpy/-/merge_requests2022-01-17T07:58:40+01:00https://i10git.cs.fau.de/pycodegen/lbmpy/-/merge_requests/97Draft: Zero centered PDFs2022-01-17T07:58:40+01:00Markus HolzerDraft: Zero centered PDFsThis MR separates compressible and zero centred PDFs. At the moment only incompressible methods are zero centred and this should be possible for all methods.This MR separates compressible and zero centred PDFs. At the moment only incompressible methods are zero centred and this should be possible for all methods.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/lbmpy/-/merge_requests/98Generalisation of Relaxation rate setter2021-10-27T23:34:18+02:00Markus HolzerGeneralisation of Relaxation rate setterAll methods that have a high number of free relaxation rates have different logic for how the list of relaxation rates is set. First of all, this causes a lot of confusing and unnecessary code and second it is confusing for the user.
In...All methods that have a high number of free relaxation rates have different logic for how the list of relaxation rates is set. First of all, this causes a lot of confusing and unnecessary code and second it is confusing for the user.
In this MR the logic for setting the relaxation rate is generalised and then used in all methods.
- If only one relaxation rate is given by the user it is set as the shear relaxation rate.
- If a relaxation rate for all moments is defined they are just used.
- Otherwise, the conserved moments are relaxed with zero, the next two relaxation rates in the list are used for bulk and shear viscosity and the remaining ones are used to relax a complete group of the same order. If too many relaxation rates are given the list is just cut and the remaining ones have no influence.Markus HolzerMarkus Holzerhttps://i10git.cs.fau.de/pycodegen/lbmpy/-/merge_requests/44Added central moments functionality to lbmpy2021-01-26T07:57:38+01:00Jonas PlewinskiAdded central moments functionality to lbmpyThis merge request will add central moment functionality to lbmpy (shift_matrix, get_central_moments). Remaining TODOs:
- [x] The Demo notebook can not be executed at the moment since the includes are not correct.
- [ ] Integrate centra...This merge request will add central moment functionality to lbmpy (shift_matrix, get_central_moments). Remaining TODOs:
- [x] The Demo notebook can not be executed at the moment since the includes are not correct.
- [ ] Integrate central moments fully into lbmpy. This means something like this should be possible `create_lb_method(..., central_moments=True)`.
- [x] Unit tests for the `get_shift_matrix` function.
- [ ] Physical test case the central moments.Markus HolzerMarkus Holzer