Examples#
These examples demonstrate the behavior and usage of DPF-Core.
Basic DPF examples#
These examples explain the basic concepts of DPF.
![](../_images/sphx_glr_05-use_local_data_thumb.png)
Bring a field’s data locally to improve performance
Transient analysis examples#
These examples show how to use DPF to extract and plot displacements, stresses, and strains for a transient result.
Modal analysis examples#
These examples show how to use DPF to extract and manipulate results from modal analyses.
![](../_images/sphx_glr_00-compare_modes_thumb.png)
Use Result Helpers to compare mode shapes for solids and then shells
Harmonic analysis examples#
These examples show how to use DPF to extract and manipulate results from harmonic analyses.
Advanced and miscellaneous examples#
These examples show advanced use cases to demonstrate the high level of workflow customization.
![](../_images/sphx_glr_00-multistage_advanced_options_thumb.png)
Multi-stage cyclic symmetry using advanced customization
![](../_images/sphx_glr_01-solve_harmonic_problem_thumb.png)
Solve harmonic problem (with damping) using matrix inverse
![](../_images/sphx_glr_04-extrapolation_stress_3d_thumb.png)
Extrapolation method for stress result of a 3D element
![](../_images/sphx_glr_05-extrapolation_strain_2d_thumb.png)
Extrapolation method for strain result of a 2D element
![](../_images/sphx_glr_10-asme_secviii_divtwo_thumb.png)
Pressure vessel analysis according to an ASME standard
![](../_images/sphx_glr_13-manage_licensing_thumb.png)
Manage the DPF licensing logic using the server context
File manipulation and input-output examples#
These examples show how to manipulate files, as well as importing or exporting from or to specific formats.
Plotting examples#
These examples show how to use the ansys.dpf.core.plotter.DpfPlotter
class.
Examples for postprocessing on distributed processes#
These examples show how to create workflows on different processes (possibly on different machines) and connect them.
![](../_images/sphx_glr_00-distributed_total_disp_thumb.png)
Postprocessing of displacement on distributed processes
Examples of creating custom operator plugins#
These examples show how to create a basic operator plugin or plug-in packages with multiple operators. Plugins wrap your custom operators so that you can use them like native DPF operators.
![](../_images/sphx_glr_02-python_operators_with_dependencies_thumb.png)
Create a plug-in package that has third-party dependencies
Averaging examples#
These examples show how to use some of DPF’s averaging operators.
Mesh operations examples#
These examples show how to manipulate meshes.
![](../_images/sphx_glr_00-create_polygons_and_polyhedrons_thumb.png)
Create and display a mesh with polygon and polyhedron elements
![](../_images/sphx_glr_13-nodes_in_local_coordinate_system_thumb.png)
Convert nodal coordinates field to local coordinate system
Cyclic symmetry examples#
These examples show how to post-process cyclic symmetry models.
![](../_images/sphx_glr_02-modal_cyclic_no_expansion_thumb.png)
Get base and duplicate sectors (real and imaginary) results for modal cyclic symmetry
Fluids examples#
These examples show how to post-process Fluid models.
Streamlines examples#
These examples show how to compute and plot streamlines.
LS-Dyna examples#
These examples show how to post-process LS-Dyna models.
![](../_images/sphx_glr_00-lsdyna_operators_thumb.png)
Results extraction and analysis from LS-DYNA sources