Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mischa Dombrowski
lbmweights
Commits
29bb1276
Commit
29bb1276
authored
Sep 22, 2019
by
mischa
Browse files
Stability Heatmap
parent
93a1473a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lbmweights/mrt_moments.py
View file @
29bb1276
...
...
@@ -126,7 +126,7 @@ def get_v37_moments():
print
(
calc_weights
)
print
(
actual_weights
)
assert
(
np
.
array
(
calc_weights
)
-
actual_weights
<=
1e-15
).
all
()
selected_moments
=
gram_schmidt
(
selected_moments
,
lattice
.
velocities
,
lattice
.
weights
)
#
selected_moments = gram_schmidt(selected_moments, lattice.velocities, lattice.weights)
M
=
sp
.
Matrix
(
get_moments_of_continuous_maxwellian_equilibrium
(
moments
=
selected_moments
,
dim
=
2
,
order
=
4
,
c_s_sq
=
lattice
.
c_s_sq
))
pprint
(
m
.
inv
()
*
M
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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