yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23791
Re: [Question #692420]: Select bodies under post2d.extractor function
Question #692420 on Yade changed:
https://answers.launchpad.net/yade/+question/692420
Status: Open => Needs information
Jan Stránský requested more information:
Hello,
> I was only able to think of two ways
it is actually one way, see below
> but seems like lambda expressions cannot take conditional statements.
it can:
extractVelocity=lambda b: flattener.normal(b,b.state.vel) if -0.15< b.state.pos[2] <= 0.15 else None
Please provide a MWE [1], something like a few predefined spheres with
predefined positions and velocities and describe expected result.
cheers
Jan
[1] https://www.yade-dem.org/wiki/Howtoask
--
You received this question notification because your team yade-users is
an answer contact for Yade.