CPyCodeCompiler.write_function_for_F
- CPyCodeCompiler.write_function_for_F(assignments: List[Assignment], element_typ: str, X_at_nodes: IndexedBase, U_at_nodes: IndexedBase, ips: int, F_at_int_points: IndexedBase)[source]
Write a C-function that computes the deformation gradient and write a Python-function that binds to the C-function.
- Parameters:
assignments – list of assignments. Components of X_at_nodes, U_at_nodes may only occur on the right hand side. Each component of F_at_int_points must occur on the left hand side of one assignment.
element_typ – name of the element type
X_at_nodes – name of the matrix that contains coordinates at nodes
U_at_nodes – name of the matrix that contains displacements at nodes
ips – number of integration points
F_at_int_points – name of the matrix that contains the deformation gradient at the integration points