Skip to content

Commit

Permalink
Fixed bug when building first Piola-Kirchhoff stress tensor for output.
Browse files Browse the repository at this point in the history
  • Loading branch information
BernardoFerreira committed Oct 26, 2023
1 parent 5b422c7 commit c13a696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cratepy/ioput/miscoutputfiles/voxelsoutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def build_voxels_array(self, crve, csbvar, clusters_state,
# Build first Piola-Kirchhoff stress tensor
first_piola_stress = mop.get_tensor_from_mf(
first_piola_stress_mf, self._n_dim,
self._comp_order_sym)
self._comp_order_nsym)
# Compute Cauchy stress tensor
cauchy_stress = cauchy_from_first_piola(
def_gradient, first_piola_stress)
Expand Down

0 comments on commit c13a696

Please sign in to comment.