hookeai.simulators.links.utilities.links_data_to_adimu.generate_pointwise_sets¶
- generate_pointwise_sets(n_node_mesh, dirichlet_bcs)[source]¶
Generate Dirichlet sets data for ADiMU mesh history data files.
This function generates Dirichlet sets data consistent with the force force equilibrium loss type ‘pointwise’ in ADiMU.
- Parameters:
n_node_mesh (int) – Number of nodes of finite element mesh.
dirichlet_bcs (dict) – Dirichlet boundary conditions (item, dict) for each node with prescribed displacements (key, str[int]). The boundary conditions of each node consist of a prescribed displacement value (item, float) for the associated degree of freedom (key, str[int]).
- Returns:
dirichlet_bcs_mesh – Dirichlet boundary conditions sets of finite element mesh nodes stored as numpy.ndarray(2d) of shape (n_node_mesh, 3).
- Return type:
numpy.ndarray(2d)