Commit 40ef02fc authored by MischaD's avatar MischaD
Browse files

Updated Readme

parent 21ff9da8
......@@ -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
......@@ -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])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment