← Back to team overview

yade-users team mailing list archive

Re: [Question #697433]: Instantiating a new FlowEngine after removing does not work

 

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

Robert Caulk proposed the following answer:
Although looking at source [1] this may not be an issue anymore. What
you should try is to set flow.updateTriangulation=True each time you
remove a body. i.e. you should be able to delete particles without
reinstancing a new FlowEngine. As far as I can tell the
setPositionsBuffer is already updated every step and accounts for
deleted bodies, and then it is used for triangulation when a triangulate
flag is set.

[1]https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/pfv/FlowEngine.ipp.in
[2]https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/pfv/FlowEngine.ipp.in#L497

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