Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lbmpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Markus Holzer
lbmpy
Commits
0c2b44e8
Commit
0c2b44e8
authored
6 years ago
by
Christoph Rettinger
Browse files
Options
Downloads
Patches
Plain Diff
Added reference to MRT
parent
833e54b4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lbmpy/methods/creationfunctions.py
+9
-0
9 additions, 0 deletions
lbmpy/methods/creationfunctions.py
with
9 additions
and
0 deletions
lbmpy/methods/creationfunctions.py
+
9
−
0
View file @
0c2b44e8
...
@@ -396,6 +396,15 @@ def create_mrt_orthogonal(stencil, relaxation_rate_getter=None, maxwellian_momen
...
@@ -396,6 +396,15 @@ def create_mrt_orthogonal(stencil, relaxation_rate_getter=None, maxwellian_momen
[
x
*
y
*
z
]
[
x
*
y
*
z
]
]
]
elif
stencils_have_same_entries
(
stencil
,
get_stencil
(
"
D3Q19
"
)):
elif
stencils_have_same_entries
(
stencil
,
get_stencil
(
"
D3Q19
"
)):
# This MRT variant mentioned in the dissertation of Ulf Schiller
# "Thermal fluctuations and boundary conditions in the lattice Boltzmann method" (2008), p. 24ff
# There are some typos in the moment matrix on p.27
# The here implemented ordering of the moments is however different from that reference (Eq. 2.61-2.63)
# The moments are weighted-orthogonal (Eq. 2.58)
# Further references:
# Duenweg, B., Schiller, U. D., & Ladd, A. J. (2007). Statistical mechanics of the fluctuating lattice Boltzmann equation. Physical Review E, 76(3)
# Chun, B., & Ladd, A. J. (2007). Interpolated boundary condition for lattice Boltzmann simulations of flows in narrow gaps. Physical review E, 75(6)
sq
=
x
**
2
+
y
**
2
+
z
**
2
sq
=
x
**
2
+
y
**
2
+
z
**
2
nested_moments
=
[
nested_moments
=
[
[
one
,
x
,
y
,
z
],
# [0, 3, 5, 7]
[
one
,
x
,
y
,
z
],
# [0, 3, 5, 7]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment