yade-users team mailing list archive
Mailing list archive
Re: [Question #679516]: How to get the Volume in the simulation with periodic boundary condition?
Question #679516 on Yade changed:
Status: Open => Answered
Jan Stránský proposed the following answer:
> when I output the position of all the particle (by state.pos) and
observed it in paraview, it become strange.
export not b.state.pos, but O.cell.wrap(b.state.pos), see . state.pos
may have arbitrary value in space, likely outside the periodic cell.
O.cell.wrap shifts the positions to be something like cuboid.
> But I want it to like a cuboid, because I want to calculate the stress
inside and the unevenness of the boundary cause lots of troubles.
you can compute stress as getStress()  or PeriTriaxController.stress
. The "boundary" (once more, no boundary exist) is irrelevant here.
You received this question notification because your team yade-users is
an answer contact for Yade.