mesh
gripyth.meshing.mesh
Mesh class.
CLASS | DESCRIPTION |
---|---|
Geometry |
Describes the geometry of the physical objects being modeled. |
Mesh |
Describes the mesh discretization of the geometry. |
Geometry
dataclass
Describes the geometry of the physical objects being modeled.
At this point, the implementation is restricted to 2d rectangular shapes. This may be generalized in the future.
ATTRIBUTE | DESCRIPTION |
---|---|
B |
width/breadth of the plate
TYPE:
|
L |
length of the plate
TYPE:
|
t |
out-of-plane thickness of the plate
TYPE:
|
Mesh
dataclass
Describes the mesh discretization of the geometry.
METHOD | DESCRIPTION |
---|---|
__init__ |
Create a new mesh from nodes and elements. |
ATTRIBUTE | DESCRIPTION |
---|---|
dim |
dimension of the mesh geometry
TYPE:
|
elem_sets |
named sets of element indices
TYPE:
|
element_materials |
material type associated with each element
TYPE:
|
elements |
connectivity matrix of the elements: maps element index to its nodes
TYPE:
|
n_elements |
total number of mesh elements
TYPE:
|
n_nodes |
total number of mesh nodes
TYPE:
|
n_voigt |
size of tensors in Voigt notation
TYPE:
|
node_sets |
named sets of node indices
TYPE:
|
nodes |
node coordinates: array of [x, y, …] for each node index
TYPE:
|
nodes_per_elem |
number of nodes per element
TYPE:
|
elem_sets
instance-attribute
named sets of element indices
element_materials
instance-attribute
material type associated with each element
elements
instance-attribute
connectivity matrix of the elements: maps element index to its nodes
node_sets
instance-attribute
named sets of node indices
nodes
instance-attribute
node coordinates: array of [x, y, …] for each node index