Generate a 2D or 3D block mesh. The dimension is determined by the lenght of the shape argument.
Parameters: | dims : array of 2 or 3 floats
shape : array of 2 or 3 ints
centre : array of 2 or 3 floats
mat_id : int, optional
name : string
verbose : bool
|
---|---|
Returns: | mesh : Mesh instance |
Generate a cylindrical mesh along an axis. Its cross-section can be ellipsoidal.
Parameters: | dims : array of 5 floats
shape : array of 3 ints
centre : array of 3 floats
axis: one of ‘x’, ‘y’, ‘z’ :
force_hollow : boolean
is_open : boolean
open_angle : float
non_uniform : boolean
name : string
verbose : bool
|
---|---|
Returns: | mesh : Mesh instance |
Generate a 3D mesh with a central block and (coarse) extending side meshes.
The resulting mesh is again a block. Each of the components has a different material id.
Parameters: | b_dims : array of 3 floats
b_shape : array of 3 ints
e_dims : array of 3 floats
e_shape : int
centre : array of 3 floats
grading_fun : callable, optional
name : string, optional
|
---|---|
Returns: | mesh : Mesh instance |
Runs mesh generator - tetgen for 3D or triangle for 2D meshes.
Parameters: | geo : geometry
a : int, optional
quadratic : bool, optional
verbose : bool, optional
refine : bool, optional
|
---|---|
Returns: | mesh : Mesh instance
|
Import mesh generated by tetgen or triangle.
Parameters: | filename : string
|
---|---|
Returns: | mesh : Mesh instance
|
Generate FE mesh from voxels (volumetric data).
Parameters: | voxels : array
dims : array
etype : integer, optional
Returns : ——- : mesh : Mesh instance
|
---|
Create sphere or cube mesh according to kind in the given directory if it does not exist and return path to it.
Generate a new mesh by repeating a given periodic element along each axis.
Parameters: | mesh : Mesh instance
grid : array
scale : float, optional
eps : float, optional
ret_ndmap : bool, optional
|
---|---|
Returns: | mesh_out : Mesh instance
ndmap : array
|
Generate vertex connectivity for cells of a tensor-product mesh of the given shape.
Parameters: | shape : array of 2 or 3 ints
|
---|---|
Returns: | conn : array
desc : str
|