Skip to content

Commit

Permalink
WIP: Sort out boundaries with pull scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
RudolfWeeber committed Aug 22, 2023
1 parent 50bfd3a commit fc1903e
Show file tree
Hide file tree
Showing 62 changed files with 5,701 additions and 14,533 deletions.
14 changes: 7 additions & 7 deletions maintainer/walberla_kernels/generate_lb_kernels.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import lbmpy.enums

import lbmpy_walberla
import lbmpy_espresso
import lbmpy_walberla.additional_data_handler

import lees_edwards
import relaxation_rates
Expand Down Expand Up @@ -184,17 +184,17 @@ def paramlist(parameters, keys):
)

# boundary conditions
ubb_dynamic = lbmpy_espresso.UBB(
lambda *args: None, dim=3, data_type=config.data_type.default_factory())
ubb_data_handler = lbmpy_espresso.BounceBackSlipVelocityUBB(
method.stencil, ubb_dynamic)

ubb = lbmpy.boundaries.boundaryconditions.UBB(
lambda *args: None, dim=3, data_type=config.data_type.default_factory(), adapt_velocity_to_force=True)
ubb_data_handler = lbmpy_walberla.additional_data_handler.default_additional_data_handler(
ubb, method, fields["pdfs"], target=target)
for _, target_suffix in paramlist(parameters, ("GPU", "CPU")):
lbmpy_walberla.generate_boundary(
ctx, f"Dynamic_UBB_{precision_suffix}{target_suffix}", ubb_dynamic,
ctx, f"Dynamic_UBB_{precision_suffix}{target_suffix}", ubb,
method, additional_data_handler=ubb_data_handler,
streaming_pattern="pull", target=target)

# replace Walberla-specific real_t by float/double.
with open(f"Dynamic_UBB_{precision_suffix}{target_suffix}.h", "r+") as f:
content = f.read()
f.seek(0)
Expand Down
81 changes: 0 additions & 81 deletions maintainer/walberla_kernels/lbmpy_espresso.py

This file was deleted.

This file was deleted.

Loading

0 comments on commit fc1903e

Please sign in to comment.