Computation

class Computation(R_at_nodes_, exponents_, R_at_int_points_, int_weights_, X_at_nodes_, U_at_nodes_, S_at_int_points_, e_at_int_points_, is_dbf: bool = True)[source]

Compute F, P, CS, and CF.

Parameters:
  • R_at_nodes – array of shape (n, d) of reference space nodal coordinates

  • exponents – array of shape (n, d) of integer exponents

  • R_at_int_points – array of shape (ips, d) of reference space coordinates

  • int_weights – array of shape (ips,)

  • X_at_nodes – array of shape (n, d) of real space nodal coordinates

  • U_at_nodes – array of shape (n, d) of real space nodal displacements

  • S_at_int_points – array of shape (ips, d, d) of real space Cauchy stresses

  • e_at_int_points – array of shape (ips,) of energy densities

  • is_dbf – use “dbf” if True else “mbf”

Methods

__init__(R_at_nodes_, exponents_, ...[, is_dbf])

Compute F, P, CS, and CF.

map_symbolic_to_expression(symbolic, expr)

Add the mapping symbolic -> expr to symbols_to_expressions.

Attributes

symbols_to_expressions

dictionary mapping symbols to (symbolic) expressions

replacements_by_int_points

list of dictionary in the form [{r0: 0, r1: 0}, {r0: 1, r1: 0}, ...]

R

symbolic reference coordinates

F

deformation gradient

P

first Piola-Kirchhoff stress tensor

CS

configurational stresses

CF_at_nodes

configurational forces at element nodes