MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
FoamConstruction.periodicBox Namespace Reference

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...
 

Detailed Description

Moves foam into a periodic box.

Author
Pavel Ferkl

Takes the representative volume element and moves it into a box with periodic boundary conditions.

Function Documentation

◆ main()

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.

Parameters
[in]filenameInfile name of foam with all closed cells
[in]filenameOutfile name of foam fully inside the box
[in]xminorigin x coordinate
[in]yminorigin y coordinate
[in]zminorigin z coordinate
[in]dxsize of foam in x
[in]dysize of foam in y
[in]dzsize of foam in z

Definition at line 28 of file periodicBox.py.