use GenGeo to construct a regular structured packing as loading platen
Hi everyone,
I'm trying to use GenGeo to construct a shear cell composed of three layers: the lower and upper layers are loading platens and the middle one is the granular packing to be sheared. I wish the loading platens have a regular structure or at least densely packed. But now GenGeo always gives me two randomly and loosely packed loading platens. What can I do? The script is pretty much like the 2D shear case provided in the Example folder. I also found addPlane (or addLine) in the script is not necessary, isn't it?
from GenGeo import Vector3, BoxWithPlanes3D, CircMNTable3D, InsertGenerator3D, Plane
# Define domain:
length = 20.0; width = 16.0; height = 20.0
platen = 2.0
minPoint = Vector3(
maxPoint = Vector3(
minRadius = 0.3
maxRadius = 0.5
mntable = CircMNTable3D (
minPoint = minPoint,
maxPoint = maxPoint,
gridSize = 2.5*maxRadius,
numGroups = 3
)
platenSph = InsertGenerator3D (
minRadius = minRadius,
maxRadius = minRadius,
insertFails = 5000,
maxIterations = 5000,
tolerance = 1.0e-6,
seed = False
)
lbox = BoxWithPlanes3D (
minPoint = minPoint,
maxPoint = Vector3(
)
lbox.addPlane(
lbox.addPlane(
lbox.addPlane(
lbox.addPlane(
lbox.addPlane(
lbox.addPlane(
platenSph.
mntable.
ubox = BoxWithPlanes3D (
minPoint = Vector3(
maxPoint = maxPoint
)
ubox.addPlane(
ubox.addPlane(
ubox.addPlane(
ubox.addPlane(
ubox.addPlane(
ubox.addPlane(
platenSph.
mntable.
packer = InsertGenerator3D (
minRadius = minRadius,
maxRadius = maxRadius,
insertFails = 5000,
maxIterations = 5000,
tolerance = 1.0e-6
)
mbox = BoxWithPlanes3D (
minPoint = Vector3(
maxPoint = Vector3(
)
mbox.addPlane(
mbox.addPlane(
mbox.addPlane(
mbox.addPlane(
mbox.addPlane(
mbox.addPlane(
packer.
mntable.write(
fileName = "threelayer.geo",
outputStyle = 1
)
mntable.write(
fileName = "threelayer.vtu",
outputStyle = 2
)
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Dion Weatherley
- Solved:
- Last query:
- Last reply:
This question was reopened
- by ceguo