Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RudolfWeeber
lbmpy
Commits
d5b93299
Commit
d5b93299
authored
Aug 12, 2019
by
Michael Kuron
Browse files
Magic block offset symbols for Walberla
parent
693f5bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lbmpy/fluctuatinglb.py
View file @
d5b93299
...
...
@@ -22,6 +22,8 @@ def add_fluctuations_to_collision_rule(collision_rule, temperature=None, varianc
method
=
collision_rule
.
method
if
not
variances
:
variances
=
fluctuating_variance_from_temperature
(
method
,
temperature
,
c_s_sq
)
if
block_offsets
==
'walberla'
:
block_offsets
=
tuple
(
TypedSymbol
(
"block_offset_{}"
.
format
(
i
),
np
.
uint32
)
for
i
in
range
(
3
))
rng_symbol_gen
=
random_symbol
(
collision_rule
.
subexpressions
,
seed
,
rng_node
=
rng_node
,
dim
=
method
.
dim
,
offsets
=
block_offsets
)
...
...
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