elasticipy.interfaces.FEPX

elasticipy.interfaces.FEPX.from_results_folder(folder, dtype=None)[source]

Import all data of a given field from FEPX results folder.

The type of returns is inferred from the data one wants to parse (according the FEPX documentation ).

Parameters:
  • folder (str) – Path to the folder to read the results from

  • dtype (type, optional) –

    If provided, sets the type of returned array. It can be:
    • float

    • SecondOrderTensor

    • SymmetricSecondOrderTensor

    • SkewSymmetricSecondOrderTensor

    • StressTensor

    • StrainTensor

Returns:

Array of second-order tensors built from the read data. The array will be of shape (m, n), where m is the number of time increment n is the number of elements in the mesh.

Return type:

SecondOrderTensor or numpy.ndarray

elasticipy.interfaces.FEPX.from_step_file(file, dtype=None)[source]

Import data from a single step file given by FEPX.

The type of returns is inferred from the data one wants to parse (according the FEPX documentation ).

Parameters:
  • file (str) – Path to the file to read

  • dtype (type, optional) –

    If provided, sets the type of returned array. It can be:
    • float

    • SecondOrderTensor

    • SymmetricSecondOrderTensor

    • SkewSymmetricSecondOrderTensor

    • stressTensor

    • strainTensor

Returns:

Array of second-order tensors built from the read data. The array will be of shape (n,), where n is the number of elements in the mesh.

Return type:

SecondOrderTensor or numpy.ndarray