Beispiel #1
0
def createContainmentTestBase():
    return [
            (3,  GridGen.createGrid((6,6,6), (1,1,1), offset=1)),
            (10, GridGen.createGrid((3,3,3), (1,1,1), offset=1, concave=True)),
            (4,  GridGen.createGrid((10,10,1), (1,1,1), offset=0., misalign=True)),
            (3,
                GridGen.createGrid((6,6,6), (1,1,1), offset=0.,
                    escape_origo_shift=(100, 100, 0),
                    irregular_offset=True, concave=True, irregular=True,
                    scale=1.5, translation=(5,5,0),
                    misalign=True
                    )
                )
            ]
Beispiel #2
0
def createVolumeTestGridBase(dim, dV, offset=1):
    return [
            GridGen.createGrid(dim, dV, offset=0),
            GridGen.createGrid(dim, dV, offset=offset),
            GridGen.createGrid(dim, dV, offset=offset, irregular_offset=True),
            GridGen.createGrid(dim, dV, offset=offset, concave=True),
            GridGen.createGrid(dim, dV, offset=offset, irregular=True),
            GridGen.createGrid(dim, dV, offset=offset, concave=True, irregular=True),
            GridGen.createGrid(dim, dV, offset=offset, irregular_offset=True, concave=True),
            GridGen.createGrid(dim, dV, offset=0, faults=True),
            GridGen.createGrid(dim, dV, offset=offset, faults=True),
            GridGen.createGrid(dim, dV, escape_origo_shift=(100, 100, 0), scale=2),
            GridGen.createGrid(dim, dV, escape_origo_shift=(100, 100, 0), scale=0.5),
            GridGen.createGrid(dim, dV, escape_origo_shift=(100, 100, 0), translation=(50,50,0)),
            GridGen.createGrid(dim, dV, escape_origo_shift=(100, 100, 0), rotate=True),
            GridGen.createGrid(dim, dV, escape_origo_shift=(100, 100, 0), misalign=True),
            GridGen.createGrid(dim, dV, offset=offset, escape_origo_shift=(100, 100, 0),
                irregular_offset=True, concave=True, irregular=True,
                scale=1.5, translation=(5,5,0), rotate=True,
                misalign=True)
            ]