can't update velGrad value in a periodic cell
Hello,
I'm having trouble resetting to zero some of O.cell.velGrad coefficients in a periodic cell. I assign new values through O.cell.nextVelGrad as yade's documention specifies it, but when the value I want to assign is zero velGrad doesn't change.
Besides O.cell.
Is there something I'm missing?
Thanks in advance,
I'm using Yade 2018.02b, here is my MWE and output:
O.periodic = True
O.bodies.
O.cell.
print O.cell.velGrad, O.cell.
for i in range(3): O.cell.
O.step()
print O.cell.velGrad, O.cell.
for i in range(3): O.cell.
O.step()
print O.cell.velGrad, O.cell.
for i in range(3): O.cell.
O.step()
print O.cell.velGrad, O.cell.
############
Output:
Matrix3(0,0,0, 0,0,0, 0,0,0) False
Matrix3(-1,0,0, 0,-1,0, 0,0,-1) False
Matrix3(-2,0,0, 0,-2,0, 0,0,-2) False
Matrix3(-2,0,0, 0,-2,0, 0,0,-2) False
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: