Elasticipy.interfaces.PRISMS

Elasticipy.interfaces.PRISMS.from_quadrature_file(file, returns='stress')[source]

Read data from quadrature output file generated by PRISMS plasticity.

These files, usually named QuadratureOutputsXXX.csv (where XXX denotes the time increment), contain large amount of data, such as gradient components, stress values, grain ID etc.

Parameters:
  • file (str) – Path to quadrature file

  • returns (str or list of str or tuple of str) –

    name(s) of requested field(s). They can be:
    • grain ID

    • phase ID

    • det(J)

    • twin

    • coordinates

    • orientation

    • elastic gradient

    • plastic gradient

    • stress

Returns:

The number of returned values depends on the requested fields.

Return type:

ndarray or SecondOrderTensor or StressTensor

Elasticipy.interfaces.PRISMS.from_stressstrain_file(file)[source]

Read data from stress-strain file generated by PRISMS plasticity.

This file is usually named stressstrain.txt

Parameters:

file (str) – Path to stress-strain file

Returns:

  • SymmetricSecondOrderTensor – Average Green-Lagrange strain tensor

  • StressTensor – Average stress tensor