ogs5py.fileclasses.gli.generator.rectangular
- ogs5py.fileclasses.gli.generator.rectangular(dim=2, ori=(0.0, 0.0, 0.0), size=(10.0, 10.0, 10.0), name='boundary')[source]
Generate a rectangular boundary for a grid in 2D or 3D as gli.
- Parameters:
dim (int, optional) – Dimension of the resulting mesh, either 2 or 3. Default: 3
ori (list of float, optional) – Origin of the mesh Default: [0.0, 0.0, 0.0]
size (list of float, optional) – Size of the mesh Default: [10.0, 10.0, 10.0]
name (str, optional) – Name of the boundary. In 3D there will be 4 surfaces where the names are generated by adding an ID: “_0”, “_1”, “_2”, “_3” Default: “boundary”
- Returns:
result
- Return type:
gli