Why is there no cell size in the example Periodic triaxial test

Asked by Zhicheng Gao

Hi,
I read the example Periodic triaxial test[1], but I have a question, why does the period boundary not set the dimension of the cell, that is, why did not use O.cell.hSize to set the size of cell ? Doesn't the periodic boundary need to set the size of the cell ?

[1]https://gitlab.com/yade-dev/trunk/blob/master/doc/sphinx/tutorial/06-periodic-triaxial-test.py

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Zhicheng Gao
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hi,

O.cell has default size (1,1,1), so you don't need to set size explicitly if the default value is suitable.
###
O.periodic = True
print(O.cell.size)
###

Cheers
Jan

Revision history for this message
Zhicheng Gao (zhichenggao) said :
#2

Thanks, that solved my question