![]() |
PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
Variables | |
str | inp_dir = './' |
list | test_meshes = ['circle', 'ellipse', 'sphere', 'cuboid', 'ellipsoid', 'rectangle', 'hexagon', 'drum2d', 'triangle', 'polygon', 'cylindrical2d_wall', 'cylinder', 'annulus_circle', 'annulus_rectangle', 'open_rectangle', 'open_pipe'] |
int | symm_flag = 0 |
xc | |
r | |
h | |
filename | |
vtk_out | |
True | |
symmetric_mesh | |
rx | |
ry | |
Lx | |
Ly | |
width | |
int | theta = np.pi/6. |
R | |
a | |
list | v1 = [0., 0., 0.] |
list | v2 = [R*np.cos(0.5*theta), -R*np.sin(0.5*theta), 0.] |
list | v4 = [R*np.cos(0.5*theta), R*np.sin(0.5*theta), 0.] |
list | v3 = [R + a, 0., 0.] |
points | |
center | |
outer_radius | |
inner_radius | |
bar_width | |
bar_length | |
Lz | |
rz | |
mesh_size | |
r_outer | |
r_inner | |
hole_Lx | |
hole_Ly | |
mesh | |
axis | |
length | |
wall_thickness | |
gmsh_particles.annulus_circle_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
r_outer = 1. , |
|||
r_inner = 0.5 , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create an annulus (ring) mesh, either symmetric or full. xc - center point coordinates [x, y, z] r_outer - radius of outer circle r_inner - radius of inner circle h - mesh size symmetric_mesh - if True, creates 1/4 mesh and mirrors it. If False, creates full annulus
Definition at line 989 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.annulus_rectangle_mesh | ( | xc = [0., 0., 0.] , |
|
Lx = 1. , |
|||
Ly = 1. , |
|||
hole_Lx = 0.3 , |
|||
hole_Ly = 0.3 , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a rectangular mesh with a rectangular hole in the center (annulus rectangle). Parameters ---------- xc : list Center coordinates [x, y, z] Lx : float Length of outer rectangle in x direction Ly : float Length of outer rectangle in y direction hole_Lx : float Length of inner hole in x direction hole_Ly : float Length of inner hole in y direction h : float Mesh size filename : str Output filename without extension vtk_out : bool If True, also writes a VTK file symmetric_mesh : bool If True, creates 1/4 mesh and mirrors it. If False, creates full mesh
Definition at line 1088 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.circle_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
r = 1. , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a circular mesh, either symmetric or full. xc - center point for symmetric mesh, or bottom-left corner for non-symmetric mesh r - radius of the circle h - mesh size symmetric_mesh - if True, creates 1/4 mesh and mirrors it. If False, creates full circle
Definition at line 11 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
Referenced by circle_wall_input_using_symmetric_mesh.create_input_file().
gmsh_particles.cuboid_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
Lx = 1. , |
|||
Ly = 1. , |
|||
Lz = 1. , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a cuboid mesh, either symmetric or full. xc - center point for symmetric mesh, or bottom-left-back corner for non-symmetric mesh Lx - length in x direction Ly - length in y direction Lz - length in z direction h - mesh size symmetric_mesh - if True, creates 1/8 mesh and mirrors it. If False, creates full cuboid
Definition at line 739 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.cylinder_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
r = 1. , |
|||
h = 1. , |
|||
mesh_size = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a cylinder mesh, either symmetric or full. xc - center point coordinates [x, y, z] (center of bottom face) r - radius of cylinder h - height of cylinder mesh_size - mesh element size symmetric_mesh - if True, creates 1/8 mesh and mirrors it. If False, creates full cylinder
Definition at line 901 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.cylindrical2d_wall_mesh | ( | center = [0., 0., 0.] , |
|
outer_radius = 1.0 , |
|||
inner_radius = 0.8 , |
|||
bar_width = 0.2 , |
|||
bar_length = 0.3 , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False |
|||
) |
Create a cylindrical wall mesh with bars. Parameters: center - Center point coordinates [x, y, z] outer_radius - Outer radius of the wall inner_radius - Inner radius of the wall bar_width - Width of the bars bar_length - Length of the bars h - Mesh size filename - Output filename vtk_out - Whether to output VTK file
Definition at line 576 of file gmsh_particles.py.
gmsh_particles.drum2d_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
r = 1. , |
|||
width = 1. , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a drum2d mesh, either symmetric or full. xc - center point for symmetric mesh, or bottom-left corner for non-symmetric mesh r - radius of the drum2d width - width of the drum2d h - mesh size symmetric_mesh - if True, creates 1/4 mesh and mirrors it. If False, creates full drum2d
Definition at line 419 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.get_ref_drum_points(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.ellipse_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
rx = 1. , |
|||
ry = 0.5 , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create an elliptical mesh, either symmetric or full. xc - center point for symmetric mesh, or bottom-left corner for non-symmetric mesh rx - radius in x direction ry - radius in y direction h - mesh size symmetric_mesh - if True, creates 1/4 mesh and mirrors it. If False, creates full ellipse
Definition at line 88 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.ellipsoid_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
rx = 1. , |
|||
ry = 0.5 , |
|||
rz = 0.3 , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create an ellipsoid mesh, either symmetric or full. xc - center point coordinates [x, y, z] rx - radius in x direction ry - radius in y direction rz - radius in z direction h - mesh size symmetric_mesh - if True, creates 1/8 mesh and mirrors it. If False, creates full ellipsoid
Definition at line 817 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.hexagon_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
r = 1. , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a hexagon mesh, either symmetric or full. xc - center point for symmetric mesh, or bottom-left corner for non-symmetric mesh r - radius of the hexagon h - mesh size symmetric_mesh - if True, creates 1/6 mesh and mirrors it. If False, creates full hexagon
Definition at line 338 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform_general(), and geom_util.gmsh_translate().
gmsh_particles.open_pipe_mesh | ( | xc = [0., 0., 0.] , |
|
axis = [0., 0., 1.] , |
|||
length = 2. , |
|||
outer_radius = 1. , |
|||
wall_thickness = 0.1 , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False |
|||
) |
Create a 3D pipe mesh with specified axis, closed bottom and open top. The pipe is created by: 1. Creating an outer cylinder 2. Subtracting an inner cylinder to create walls 3. Subtracting the top surface to create the opening Parameters ---------- xc : list Center coordinates [x, y, z] of the base center axis : list Axis vector defining pipe orientation [ax, ay, az] length : float Length of the pipe along axis outer_radius : float Outer radius of the pipe wall_thickness : float Thickness of the pipe wall and bottom h : float Mesh size filename : str Output filename without extension vtk_out : bool If True, also writes a VTK file
Definition at line 1266 of file gmsh_particles.py.
gmsh_particles.open_rectangle_mesh | ( | xc = [0., 0., 0.] , |
|
Lx = 1. , |
|||
Ly = 1. , |
|||
hole_Lx = 0.5 , |
|||
hole_Ly = 0.5 , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False |
|||
) |
Create a rectangular mesh with a rectangular hole in the center (annulus rectangle). Parameters ---------- xc : list Center coordinates [x, y, z] Lx : float Length of outer rectangle in x direction Ly : float Length of outer rectangle in y direction hole_Lx : float Length of inner hole in x direction hole_Ly : float Length of inner hole in y direction h : float Mesh size filename : str Output filename without extension vtk_out : bool If True, also writes a VTK file
Definition at line 1205 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.polygon_mesh_symmetric | ( | points, | |
theta, | |||
xc = [0., 0., 0.] , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a symmetric mesh by rotating a polygon segment n times, where n = 360/theta. Parameters: points - List of [x,y,z] coordinates defining the polygon segment. First point must be [0,0,0] and first two edges must form angle theta at origin theta - Angle in radians between first two edges at origin. Must divide 2pi evenly. xc - Center point for final translation h - Mesh size filename - Output filename vtk_out - Whether to output VTK file
Definition at line 507 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform_general(), and geom_util.gmsh_translate().
gmsh_particles.rectangle_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
Lx = 1. , |
|||
Ly = 1. , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a rectangular mesh, either symmetric or full. xc - center point for symmetric mesh, or bottom-left corner for non-symmetric mesh Lx - length in x direction Ly - length in y direction h - mesh size symmetric_mesh - if True, creates 1/4 mesh and mirrors it. If False, creates full rectangle
Definition at line 253 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
Referenced by circle_wall_input_using_symmetric_mesh.create_input_file().
gmsh_particles.sphere_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
r = 1. , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a spherical mesh, either symmetric or full. xc - center point coordinates [x, y, z] r - radius of the sphere h - mesh size symmetric_mesh - if True, creates 1/8 mesh and mirrors it. If False, creates full sphere
Definition at line 168 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.gmsh_transform(), and geom_util.gmsh_translate().
gmsh_particles.triangle_mesh_symmetric | ( | xc = [0., 0., 0.] , |
|
r = 1. , |
|||
h = 0.1 , |
|||
filename = 'mesh' , |
|||
vtk_out = False , |
|||
symmetric_mesh = True |
|||
) |
Create a triangle mesh, either symmetric or full. Parameters: xc - center point coordinates [x, y, z] r - radius of the circumscribed circle h - mesh size filename - output filename vtk_out - whether to output VTK file symmetric_mesh - if True, creates 1/3 mesh and rotates it twice. If False, creates full triangle
Definition at line 650 of file gmsh_particles.py.
References geom_util.get_gmsh_entities(), geom_util.get_ref_triangle_points(), geom_util.gmsh_transform_general(), and geom_util.gmsh_translate().
gmsh_particles.a |
Definition at line 1398 of file gmsh_particles.py.
gmsh_particles.axis |
Definition at line 1446 of file gmsh_particles.py.
gmsh_particles.bar_length |
Definition at line 1413 of file gmsh_particles.py.
gmsh_particles.bar_width |
Definition at line 1412 of file gmsh_particles.py.
gmsh_particles.center |
Definition at line 1409 of file gmsh_particles.py.
gmsh_particles.filename |
Definition at line 1363 of file gmsh_particles.py.
gmsh_particles.h |
Definition at line 1363 of file gmsh_particles.py.
gmsh_particles.hole_Lx |
Definition at line 1440 of file gmsh_particles.py.
gmsh_particles.hole_Ly |
Definition at line 1440 of file gmsh_particles.py.
gmsh_particles.inner_radius |
Definition at line 1411 of file gmsh_particles.py.
str gmsh_particles.inp_dir = './' |
Definition at line 1354 of file gmsh_particles.py.
gmsh_particles.length |
Definition at line 1446 of file gmsh_particles.py.
gmsh_particles.Lx |
Definition at line 1378 of file gmsh_particles.py.
gmsh_particles.Ly |
Definition at line 1378 of file gmsh_particles.py.
gmsh_particles.Lz |
Definition at line 1420 of file gmsh_particles.py.
gmsh_particles.mesh |
Definition at line 1444 of file gmsh_particles.py.
gmsh_particles.mesh_size |
Definition at line 1430 of file gmsh_particles.py.
gmsh_particles.outer_radius |
Definition at line 1410 of file gmsh_particles.py.
gmsh_particles.points |
Definition at line 1404 of file gmsh_particles.py.
gmsh_particles.r |
Definition at line 1363 of file gmsh_particles.py.
gmsh_particles.R |
Definition at line 1398 of file gmsh_particles.py.
gmsh_particles.r_inner |
Definition at line 1435 of file gmsh_particles.py.
gmsh_particles.r_outer |
Definition at line 1435 of file gmsh_particles.py.
gmsh_particles.rx |
Definition at line 1368 of file gmsh_particles.py.
gmsh_particles.ry |
Definition at line 1368 of file gmsh_particles.py.
gmsh_particles.rz |
Definition at line 1425 of file gmsh_particles.py.
int gmsh_particles.symm_flag = 0 |
Definition at line 1358 of file gmsh_particles.py.
gmsh_particles.symmetric_mesh |
Definition at line 1363 of file gmsh_particles.py.
list gmsh_particles.test_meshes = ['circle', 'ellipse', 'sphere', 'cuboid', 'ellipsoid', 'rectangle', 'hexagon', 'drum2d', 'triangle', 'polygon', 'cylindrical2d_wall', 'cylinder', 'annulus_circle', 'annulus_rectangle', 'open_rectangle', 'open_pipe'] |
Definition at line 1356 of file gmsh_particles.py.
gmsh_particles.theta = np.pi/6. |
Definition at line 1397 of file gmsh_particles.py.
gmsh_particles.True |
Definition at line 1363 of file gmsh_particles.py.
list gmsh_particles.v1 = [0., 0., 0.] |
Definition at line 1399 of file gmsh_particles.py.
Definition at line 1400 of file gmsh_particles.py.
Definition at line 1402 of file gmsh_particles.py.
Definition at line 1401 of file gmsh_particles.py.
gmsh_particles.vtk_out |
Definition at line 1363 of file gmsh_particles.py.
gmsh_particles.wall_thickness |
Definition at line 1447 of file gmsh_particles.py.
gmsh_particles.width |
Definition at line 1388 of file gmsh_particles.py.
gmsh_particles.xc |
Definition at line 1363 of file gmsh_particles.py.