hookeai.simulators.links.utilities.links_specimen_dirichlet.build_specimen_dbc¶
- build_specimen_dbc(specimen_label, specimen_top_coord, specimen_top_disp, nodes_coords_mesh)[source]¶
Build specimen Dirichlet boundary conditions.
- Parameters:
specimen_label (str) – Specimen name.
specimen_top_coord (float) – Coordinate of the specimen top along uniaxial loading dimension.
specimen_top_disp (float) – Prescribed displacement applied to the top of the specimen along uniaxial loading dimension.
nodes_coords_mesh (np.ndarray(2d)) – Coordinates of finite element mesh nodes stored as numpy.ndarray(2d) of shape (n_node_mesh, n_dim).
- Returns:
dbc_array – Finite element mesh nodes Dirichlet boundary conditions stored as numpy.ndarray(2d) of shape (n_node_dbc, 7), where n_node_dbc is the number of nodes with Dirichlet boundary conditions, array[:, 0] is the node label, array[:, 1:4] is the Dirichlet boundary conditions prescription code, and array[:, 5:8] are the Dirichlet boundary conditions prescribed displacements.
- Return type:
np.ndarray(2d)