MoDeNa
1.0
Software framework facilitating sequential multi-scale modelling
|
Moves foam into a periodic box. More...
Functions | |
def | main (filenameIn, filenameOut, xmin, ymin, zmin, dx, dy, dz, render) |
Main function for manipulation with RVE. More... | |
Moves foam into a periodic box.
Takes the representative volume element and moves it into a box with periodic boundary conditions.
def FoamConstruction.periodicBox.main | ( | filenameIn, | |
filenameOut, | |||
xmin, | |||
ymin, | |||
zmin, | |||
dx, | |||
dy, | |||
dz, | |||
render | |||
) |
Main function for manipulation with RVE.
Uses VTK to create foam in box with periodic boundary conditions. Divides the foam to 27 parts and reflects them over boundaries.
[in] | filenameIn | file name of foam with all closed cells |
[in] | filenameOut | file name of foam fully inside the box |
[in] | xmin | origin x coordinate |
[in] | ymin | origin y coordinate |
[in] | zmin | origin z coordinate |
[in] | dx | size of foam in x |
[in] | dy | size of foam in y |
[in] | dz | size of foam in z |
Definition at line 28 of file periodicBox.py.