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
40ef02fc
Commit
40ef02fc
authored
Sep 03, 2019
by
MischaD
Browse files
Updated Readme
parent
21ff9da8
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
40ef02fc
...
...
@@ -17,6 +17,7 @@ Assignmentlist not yet implemented !
## Usage:
```
Python
from lbmweights import Lattice
lattice = Lattice(dimension=2, order=4, shell_list=[1,2,4])
weights = lattice.calculate_weights()
lattice = Lattice(dimension=2, order=4, shell_list=[1, 2, 4])
lattice.calculate_weights(boundary="inf")
c_s_sq, weights, velocities = lattice.velocity_set()
```
\ No newline at end of file
cli.py
View file @
40ef02fc
...
...
@@ -18,7 +18,7 @@ def lbmweights(dimension, order, shells, seed):
shell_list
=
[
int
(
x
)
for
x
in
re
.
findall
(
u
"\d+"
,
shells
)]
l
=
Lattice
(
dimension
=
dimension
,
order
=
order
,
shell_list
=
shell_list
,
seed
=
seed
)
weights_polynomials
=
l
.
calculate_polynomials
()
#
weights = l.calculate_weights(boundary="inf")
weights
=
l
.
calculate_weights
(
boundary
=
"inf"
)
c_s_sq
,
weights
,
velocities
=
l
.
velocity_set
()
print
(
weights
)
print
(
velocities
[
0
])
...
...
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