hookeai.simulators.fetorch.element.integrations.internal_forces.compute_element_internal_forces¶
- compute_element_internal_forces(strain_formulation, problem_type, element_type, element_material, element_state_old, nodes_coords, nodes_disps, nodes_inc_disps)[source]¶
Compute finite element internal forces.
- Parameters:
strain_formulation ({'infinitesimal', 'finite'}) – Strain formulation.
problem_type (int) – Problem type: 2D plane strain (1), 2D plane stress (2), 2D axisymmetric (3) and 3D (4).
element_type (Element) – FETorch finite element.
element_material (ConstitutiveModel) – FETorch material constitutive model.
element_state_old (dict) – Last converged material constitutive model state variables (item, dict) for each Gauss integration point (key, str[int]).
nodes_coords (torch.Tensor(2d)) – Nodes coordinates stored as torch.Tensor(2d) of shape (n_node, n_dof_node).
nodes_disps (torch.Tensor(2d)) – Nodes displacements stored as torch.Tensor(2d) of shape (n_node, n_dof_node).
nodes_inc_disps (torch.Tensor(2d)) – Nodes incremental displacements stored as torch.Tensor(2d) of shape (n_node, n_dof_node).
- Returns:
internal_forces (torch.Tensor(1d)) – Element internal forces.
element_state (dict) – Material constitutive model state variables (item, dict) for each Gauss integration point (key, str[int]).