← Back to team overview

yade-users team mailing list archive

Re: [Question #683336]: Yade-OpenFoam-coupling delete the particles outside the fluid cells

 

Question #683336 on Yade changed:
https://answers.launchpad.net/yade/+question/683336

    Status: Open => Answered

Deepak proposed the following answer:
Hello,

Yes it is possible, although what kind of boundary conditions are used in the fluid problem? 
One way to do this would be to add a PyRunner function. 

In the function :

* check for particles that has lost the cohesion, exclude these ids. 
* reset the fluidCoupling.setNumParticles, with the number of cohesive bonds, 
*  put the ids of the particles you want in fluidCoupling.setIdList 

The PyRunner should be set before the fluidCoupling engine, let me know
if this works.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.