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
c8c7139f
Commit
c8c7139f
authored
Feb 09, 2017
by
Martin Bauer
Browse files
Bugfixes
parent
132e715c
Changes
2
Hide whitespace changes
Inline
Side-by-side
methods/momentbased.py
View file @
c8c7139f
...
...
@@ -104,7 +104,7 @@ class MomentBasedLbMethod(AbstractLbMethod):
raise
NotImplementedError
(
"Shear moments seem to be not relaxed separately - "
"Can not determine their relaxation rate automatically"
)
def
getEquilibrium
(
self
,
conservedQuantityEquations
=
None
,
includeForceTerms
=
Tru
e
):
def
getEquilibrium
(
self
,
conservedQuantityEquations
=
None
,
includeForceTerms
=
Fals
e
):
D
=
sp
.
eye
(
len
(
self
.
relaxationRates
))
return
self
.
_getCollisionRuleWithRelaxationMatrix
(
D
,
conservedQuantityEquations
=
conservedQuantityEquations
,
includeForceTerms
=
includeForceTerms
)
...
...
moments.py
View file @
c8c7139f
...
...
@@ -184,8 +184,8 @@ def polynomialToExponentRepresentation(polynomial, dim=3):
Example:
>>> x , y, z = MOMENT_SYMBOLS
>>> polynomialToExponentRepresentation(1 + (42 * x**2 * y**2 * z) )
[(1, (0, 0, 0)), (42, (2, 2, 1))]
>>>
set(
polynomialToExponentRepresentation(1 + (42 * x**2 * y**2 * z) )
) == {(42, (2, 2, 1)), (1, (0, 0, 0))}
True
"""
assert
dim
<=
3
x
,
y
,
z
=
MOMENT_SYMBOLS
...
...
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