Skip to content
Permalink
Browse files

Merge #3148

3148: Test for LB engine r=RudolfWeeber a=christophlohrmann

Fixes #3052 

Description of changes:
 - Test momentum conservation, forces on the particle from ENGINE
 - Test  torques from rotational_friction on GPU
 - disables rotational_friction for CPU on more than one node (behaviour on one node is correct, though)


PR Checklist
------------
 - [x] Tests?
   - [ ] Interface
   - [x] Core 
 - [ ] Docs?


Co-authored-by: Christoph Lohrmann <clohrmann@icp.uni-stuttgart.de>
Co-authored-by: RudolfWeeber <weeber@icp.uni-stuttgart.de>
  • Loading branch information...
3 people committed Sep 10, 2019
2 parents 45a8784 + fc0b1b9 commit e679e45bbbd320abba87da39b331758be4f024f7
Showing with 193 additions and 1,840 deletions.
  1. +5 −0 src/core/rotation.cpp
  2. +0 −1,738 testsuite/python/data/engine_lb_2pt.vtk
  3. +188 −102 testsuite/python/engine_lb.py
@@ -278,6 +278,11 @@ void convert_torques_propagate_omega(const ParticleRange &particles) {

#if defined(ENGINE)
if (p.swim.swimming && lb_lbfluid_get_lattice_switch() != ActiveLB::NONE) {
if (lb_lbfluid_get_lattice_switch() == ActiveLB::CPU && n_nodes > 1 &&
p.swim.rotational_friction != 0.) {
runtimeErrorMsg() << "ENGINE rotational_friction feature with CPU-LB "
"only implemented for one CPU core";
}

auto const dip = p.swim.dipole_length * p.r.calc_director();

0 comments on commit e679e45

Please sign in to comment.
You can’t perform that action at this time.