Skip to content

Commit

Permalink
LE
Browse files Browse the repository at this point in the history
  • Loading branch information
RudolfWeeber committed Mar 4, 2024
1 parent e528771 commit 5c27f04
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,14 @@ class LBWalberlaImpl : public LBWalberlaBase {

void integrate_pull_scheme() {
auto const &blocks = get_lattice().get_blocks();
integrate_reset_force(blocks);
// Handle boundaries
integrate_boundaries(blocks);
// LB stream
integrate_stream(blocks);
// LB collide
integrate_collide(blocks);
// Refresh ghost layers
integrate_reset_force(blocks);
ghost_communication_pdfs();
}

Expand Down
8 changes: 0 additions & 8 deletions testsuite/python/lb_lees_edwards_particle_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ def lb_node(idx): return lbf[fold_index(idx, lbf.shape)]

return unshifted_nodes, shifted_nodes, unshifted_weights, shifted_weights

# print(le_aware_lb_nodes_around_pos(np.array((0.5,9.99999,0)),mock_lbf,0.51,0,1))
# exit()


@utx.skipIfMissingFeatures("WALBERLA")
Expand Down Expand Up @@ -336,15 +334,9 @@ def test_momentum_conservation(self):
system.integrator.run(1)
initial_mom = np.copy(system.analysis.linear_momentum())
for i in range(100):
before = (p.pos_folded,p.v,lbf.get_interpolated_velocity(pos=p.pos_folded))
system.integrator.run(1)
after = (p.pos_folded,p.v,lbf.get_interpolated_velocity(pos=p.pos_folded))
np.testing.assert_allclose(-np.copy(p.f), np.copy(np.sum(lbf[:,:,:].last_applied_force,axis=(0,1,2))),atol=1E-9)
print("b", before)
print("a",after)
current_mom = np.copy(system.analysis.linear_momentum())
print("m" ,(initial_mom-current_mom)[1:])
print()
np.testing.assert_allclose(initial_mom[1:], current_mom[1:], atol=2E-7)


Expand Down

0 comments on commit 5c27f04

Please sign in to comment.