Skip to content

Commit

Permalink
Update asarray.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Jan 3, 2024
1 parent 5dab6e6 commit d7a51bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/api/functions/asarray.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ grand_parent: API Reference

## As Array

Convert Tensor to Array. This is useful to export results back to the code which is not using the tensor toolbox. This function is very useful because Fortran does not allow access to Tensor components of a function result `s = (dev(S*C)*inv(C))%ab`. Instead this function can be used. If you use Abaqus please use `asabqarray` to export Tensor components.
Convert Tensor to Array. This is useful to export results back to the code which is not using the tensor toolbox.

{: .note }
> This function is very useful because Fortran does not allow access to Tensor components of a function result `s = (dev(S*C)*inv(C))%ab`. Instead this function can be used.
{: .warning }
> If you use Abaqus please use [`asabqarray`]({% link api/functions/asabqarray.md %}) to export Tensor components.
`asarray` is called with one (rank 2) or two (rank 4) integers to slice dimensions. This is useful if an axisymmetric analysis is evaluated (3 direct and 1 shear components = 4x4 tangent matrix instead of full 6x6 storage).

Expand Down

0 comments on commit d7a51bc

Please sign in to comment.