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
84bfe3ac
Commit
84bfe3ac
authored
Aug 09, 2021
by
Markus Holzer
Browse files
Fail checks for shift matrix
parent
957923e3
Pipeline
#33619
failed with stages
in 11 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lbmpy/moments.py
View file @
84bfe3ac
...
...
@@ -454,7 +454,13 @@ def set_up_shift_matrix(moments, stencil, velocity_symbols=sp.symbols("u_:3")):
M
=
moment_matrix
(
moments
,
stencil
,
shift_velocity
=
None
)
MN
=
moment_matrix
(
moments
,
stencil
,
shift_velocity
=
velocity_symbols
)
return
sp
.
simplify
(
MN
*
M
.
inv
())
N
=
sp
.
simplify
(
MN
*
M
.
inv
())
assert
N
.
is_lower
,
"Calculating the shift matrix gave not a lower diagonal matrix. Thus it failed"
assert
sum
(
N
.
diagonal
())
==
len
(
stencil
),
"Calculating the shift matrix failed. "
\
"There are entries on the diagonal which are not equal to one"
return
N
def
gram_schmidt
(
moments
,
stencil
,
weights
=
None
):
...
...
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