Reply To: Particlulate Flow
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Particlulate Flow › Reply To: Particlulate Flow
April 3, 2023 at 1:23 pm
#7353
jan
Participant
Dear Henderson,
yes, it should work like that, but if you’re using the ParticleManager
, you also have to update the external acceleration stored there. Apparently this is not easy in OpenLB 1.5 because it’s a private variable. In the future release you’ll update it like this: particleManager.setExternalAcceleration(accExt);
. This function is missing in 1.5. As a workaround, if waiting for the next release is not an option, you could make the variable _externalAcceleration
public in src/olb/particles/particlemanager.h and then modify it directly or write a simple setter function yourself.
Best regards,
Jan