hookeai.simulators.links.utilities.links_specimen_dirichlet.write_links_dirichlet_bc_file¶
- write_links_dirichlet_bc_file(dbc_file_dir, dbc_array, is_reaction_group=True)[source]¶
Write Dirichlet boundary conditions file (Links format).
- Parameters:
dbc_file_dir (str) – Directory where Dirichlet boundary conditions file is stored.
dbc_array (np.ndarray(2d)) – 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.
is_reaction_group (bool, default=True) – If True, then write reaction node group with prescribed non-null Dirichlet boundary conditions.