
Latest 2021R1 and newer features ¶ class _grpc. Saves existing database and opens up the APDL GUI.Ĭollection of MAPDL parameters obtainable from the *GET command or GET command.īinary interface to the result file using pyansys.Result Start writing all APDL commands to an MAPDL input file. Runs the GET command and returns a Python value. Uses the *VGET command to Return an array from ANSYS as a Python array. Retrieves a value and stores it as a scalar parameter or part of an array parameter. Invalid commands will be ignored rather than exceptions _MapdlCore ( loglevel = 'DEBUG', use_vtk = True, log_apdl = False, log_file = True, local = True, ** start_parm ) ¶Ĭontains methods in common between all Mapdl subclasses Mapdl ¶ Mapdl Class Specific Classes or Attributes ¶ class. # Display node averaged stress in x direction for result 6 result. For now, only component stresses can beĭisplayed. Stress at each node by averaging the stress evaluated at that node forĪll attached elements.

Is computed in the same manner that ANSYS uses by to determine the Stress can be plotted as well using the below code. plot_nodal_solution ( 0, 'x', label = 'Displacement', cpos = cpos, screenshot = 'hexbeam_disp.png', window_size =, interactive = False ) plot_nodal_solution ( 0 ) > print ( cpos ) Visualization and post-processing of a batch result.įirst, get the camera position from an interactive plot: > cpos = result. Setting up the camera and saving the result. Results can be plotted non-interactively and screenshots saved by Note that results are zero indexed > nnum, disp = result. read_binary ( rstfile ) # Beam natural frequencies freqs = result. rstfile # Create result object by loading the result file result = pyansys. # Load the reader from pyansys from ansys.mapdl import reader as pymapdl_reader from import examples # Sample result file rstfile = examples. This example reads in binary results from a modal analysis of a beamįrom ANSYS. Of Ansys file formats and physics solutions without ever leaving a The powerful DPF framework enabling rapid post-processing of a variety The Python module provides a Python interface to Product designed to handle large amount of data. This allows DPF to be a modularĪnd easy to use tool with a large range of capabilities. Physics agnostic mathematical quantities described in a Various operators are available allowing the manipulation andĭPF is a workflow-based framework which allows simple and/or complexĮvaluations by chaining operators. DPF can access data from solver resultįiles as well as several neutral formats (csv, hdf5, vtk,Įtc.). Simulation users/engineers with a toolbox for accessing and The Data Processing Framework (DPF) is designed to provide numerical

For additional support,Ĭontact the maintainer of this project at Alex Kaszynski and your requests will be On the various GitHub pages in this document. This is an expanding and developing project. Supports result files from MAPDL v14.5 to the current release.
