Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Holzer
lbmpy
Commits
a22fd4a2
Commit
a22fd4a2
authored
Jun 23, 2022
by
Markus Holzer
Browse files
Fix numbers
parent
8f90b576
Pipeline
#41005
passed with stages
in 119 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lbmpy/methods/creationfunctions.py
View file @
a22fd4a2
...
...
@@ -658,11 +658,11 @@ def _get_relaxation_info_dict(relaxation_rates, nested_moments, dim):
for
group
in
nested_moments
:
for
moment
in
group
:
if
get_order
(
moment
)
<=
1
:
result
[
moment
]
=
0.0
result
[
moment
]
=
sp
.
Integer
(
0
)
elif
is_shear_moment
(
moment
,
dim
):
result
[
moment
]
=
relaxation_rates
[
0
]
else
:
result
[
moment
]
=
1.0
result
[
moment
]
=
sp
.
Integer
(
1
)
# if relaxation rate for each moment is specified they are all used
if
len
(
relaxation_rates
)
==
number_of_moments
:
...
...
@@ -687,7 +687,7 @@ def _get_relaxation_info_dict(relaxation_rates, nested_moments, dim):
next_rr
=
False
for
moment
in
group
:
if
get_order
(
moment
)
<=
1
:
result
[
moment
]
=
0.0
result
[
moment
]
=
sp
.
Integer
(
0
)
elif
is_shear_moment
(
moment
,
dim
):
result
[
moment
]
=
shear_rr
elif
is_bulk_moment
(
moment
,
dim
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment