Releases: ansys/pymapdl
Archive File Code Streamlining
ParseFEM
has been removed entirely from the archive reader and new archive files can be read in and displayed with VTK using:
import pyansys
archive = pyansys.ReadArchive('tiny.cdb')
grid = archive.ParseVTK()
grid.Plot() # plot
This approach simplifies much of the code and eliminates an unnecessary function. Information about the ansys archive file is now contained within the unstructured grid and can be accessed using the GetPointScalars
function. See vtkInterface
.
ParseVTK
also allows you to specify element types to read in. See the doc_string
of ParseVTK
below:
Parses raw data from cdb file to VTK format.
Parameters
----------
force_linear : bool, optional
This parser creates quadradic elements if available. Set this to
True to always create linear elements. Defaults to False.
allowable_types : list, optional
Allowable element types. Defaults to:
['45', '95', '185', '186', '92', '187']
Can include:
['45', '95', '185', '186', '92', '187', '154']
Returns
-------
uGrid : vtk.vtkUnstructuredGrid
VTK unstructured grid from archive file.
Added Cyclic Plotting Results and Output to Paraview
See the documentation at https://pyansys.readthedocs.io/en/latest/loading_results.html#results-from-a-cyclic-analysis to plot cyclic results.
Also see https://pyansys.readthedocs.io/en/latest/loading_results.html#exporting-to-paraview for the steps to export and convert rst files to paraview.
Modified Binary Geometry, Matrix, and Result Reader
pyansys
can now read component stresses from the result file. The mass and stiffness matrices can now be read using sorted and unsorted indexing. Additionally, the geometry can be directly read from the result file, making it unnecessary to load in a separate archive file.
See the full documentation Loading Results and Loading Full for details on the new API.
First Release of pyansys
This Python module uses cython and c source to interface with ANSYS binary files. Useful for post processing ANSYS files, displaying using vtk, and analyzing results.
Initial release includes limited functionality
- Modal results from a *rst file can be read.
- Mass and stiffness matrices from the full file must be symmetric. Additionally, the module cannot import lumped mass matrices.
Additional features will be added when requested.