:orphan:
.. _gallery:
========
Examples
========
These examples demonstrate the behavior and usage of DPF-Core.
.. raw:: html
.. thumbnail-parent-div-open
.. thumbnail-parent-div-close
.. raw:: html
Basic DPF examples
==================
These examples explain the basic concepts of DPF.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_00-basic_example_thumb.png
:alt:
:doc:`/examples/00-basic/00-basic_example`
.. raw:: html
Basic DPF-Core usage
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_01-basic_operators_thumb.png
:alt:
:doc:`/examples/00-basic/01-basic_operators`
.. raw:: html
Operators overview
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_02-basic_field_containers_thumb.png
:alt:
:doc:`/examples/00-basic/02-basic_field_containers`
.. raw:: html
Field and field containers overview
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_03-create_entities_thumb.png
:alt:
:doc:`/examples/00-basic/03-create_entities`
.. raw:: html
Create your own entities using DPF operators
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_05-use_local_data_thumb.png
:alt:
:doc:`/examples/00-basic/05-use_local_data`
.. raw:: html
Bring a field's data locally to improve performance
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_07-use_result_helpers_thumb.png
:alt:
:doc:`/examples/00-basic/07-use_result_helpers`
.. raw:: html
Use result helpers to load custom data
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_08-results_over_time_subset_thumb.png
:alt:
:doc:`/examples/00-basic/08-results_over_time_subset`
.. raw:: html
Scope results over custom time domains
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_09-results_over_space_subset_thumb.png
:alt:
:doc:`/examples/00-basic/09-results_over_space_subset`
.. raw:: html
Scope results over custom space domains
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_10-math_operations_thumb.png
:alt:
:doc:`/examples/00-basic/10-math_operations`
.. raw:: html
Mathematical Operations
.. raw:: html
.. only:: html
.. image:: /examples/00-basic/images/thumb/sphx_glr_12-get_material_properties_thumb.png
:alt:
:doc:`/examples/00-basic/12-get_material_properties`
.. raw:: html
Get material properties from the result file
.. thumbnail-parent-div-close
.. raw:: html
Transient analysis examples
===========================
These examples show how to use DPF to extract and plot displacements,
stresses, and strains for a transient result.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/01-transient_analyses/images/thumb/sphx_glr_00-basic_transient_thumb.png
:alt:
:doc:`/examples/01-transient_analyses/00-basic_transient`
.. raw:: html
Transient analysis result example
.. raw:: html
.. only:: html
.. image:: /examples/01-transient_analyses/images/thumb/sphx_glr_01-transient_easy_time_scoping_thumb.png
:alt:
:doc:`/examples/01-transient_analyses/01-transient_easy_time_scoping`
.. raw:: html
Choose a time scoping for a transient analysis
.. thumbnail-parent-div-close
.. raw:: html
Modal analysis examples
=======================
These examples show how to use DPF to extract and manipulate
results from modal analyses.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/02-modal_analyses/images/thumb/sphx_glr_00-compare_modes_thumb.png
:alt:
:doc:`/examples/02-modal_analyses/00-compare_modes`
.. raw:: html
Use Result Helpers to compare mode shapes for solids and then shells
.. raw:: html
.. only:: html
.. image:: /examples/02-modal_analyses/images/thumb/sphx_glr_01-plot_and_animate_modes_thumb.png
:alt:
:doc:`/examples/02-modal_analyses/01-plot_and_animate_modes`
.. raw:: html
Plot and animate mode shapes with DPF
.. thumbnail-parent-div-close
.. raw:: html
Harmonic analysis examples
===========================
These examples show how to use DPF to extract and manipulate
results from harmonic analyses.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/03-harmonic_analyses/images/thumb/sphx_glr_00-multi_harmonic_thumb.png
:alt:
:doc:`/examples/03-harmonic_analyses/00-multi_harmonic`
.. raw:: html
Multi-harmonic response example
.. raw:: html
.. only:: html
.. image:: /examples/03-harmonic_analyses/images/thumb/sphx_glr_01-modal_superposition_thumb.png
:alt:
:doc:`/examples/03-harmonic_analyses/01-modal_superposition`
.. raw:: html
Expand harmonic modal superposition with DPF
.. thumbnail-parent-div-close
.. raw:: html
Advanced and miscellaneous examples
===================================
These examples show advanced use cases to demonstrate the high level of workflow customization.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_00-multistage_advanced_options_thumb.png
:alt:
:doc:`/examples/04-advanced/00-multistage_advanced_options`
.. raw:: html
Multi-stage cyclic symmetry using advanced customization
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_01-solve_harmonic_problem_thumb.png
:alt:
:doc:`/examples/04-advanced/01-solve_harmonic_problem`
.. raw:: html
Solve harmonic problem (with damping) using matrix inverse
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_02-volume_averaged_stress_thumb.png
:alt:
:doc:`/examples/04-advanced/02-volume_averaged_stress`
.. raw:: html
Average elemental stress on a given volume
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_03-exchange_data_between_servers_thumb.png
:alt:
:doc:`/examples/04-advanced/03-exchange_data_between_servers`
.. raw:: html
Exchange data between servers
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_04-extrapolation_stress_3d_thumb.png
:alt:
:doc:`/examples/04-advanced/04-extrapolation_stress_3d`
.. raw:: html
Extrapolation method for stress result of a 3D element
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_05-extrapolation_strain_2d_thumb.png
:alt:
:doc:`/examples/04-advanced/05-extrapolation_strain_2d`
.. raw:: html
Extrapolation method for strain result of a 2D element
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_06-stress_gradient_path_thumb.png
:alt:
:doc:`/examples/04-advanced/06-stress_gradient_path`
.. raw:: html
Stress gradient normal to a defined node
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_07-load_plugin_thumb.png
:alt:
:doc:`/examples/04-advanced/07-load_plugin`
.. raw:: html
Load plugin
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_10-asme_secviii_divtwo_thumb.png
:alt:
:doc:`/examples/04-advanced/10-asme_secviii_divtwo`
.. raw:: html
Pressure vessel analysis according to an ASME standard
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_11-cycles_to_failure_thumb.png
:alt:
:doc:`/examples/04-advanced/11-cycles_to_failure`
.. raw:: html
Calculate the number of cycles to fatigue failure
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_12-read_distributed_files_thumb.png
:alt:
:doc:`/examples/04-advanced/12-read_distributed_files`
.. raw:: html
Read results from distributed files
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_13-manage_licensing_thumb.png
:alt:
:doc:`/examples/04-advanced/13-manage_licensing`
.. raw:: html
Manage the DPF licensing logic using the server context
.. raw:: html
.. only:: html
.. image:: /examples/04-advanced/images/thumb/sphx_glr_14-incremental_evaluation_thumb.png
:alt:
:doc:`/examples/04-advanced/14-incremental_evaluation`
.. raw:: html
Use incremental evaluation helper
.. thumbnail-parent-div-close
.. raw:: html
File manipulation and input-output examples
===========================================
These examples show how to manipulate files,
as well as importing or exporting from or to specific formats.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/05-file-IO/images/thumb/sphx_glr_00-hdf5_double_float_comparison_thumb.png
:alt:
:doc:`/examples/05-file-IO/00-hdf5_double_float_comparison`
.. raw:: html
HDF5 export and compare precision
.. raw:: html
.. only:: html
.. image:: /examples/05-file-IO/images/thumb/sphx_glr_01-reduced_matrices_export_thumb.png
:alt:
:doc:`/examples/05-file-IO/01-reduced_matrices_export`
.. raw:: html
Get reduced matrices and make export
.. raw:: html
.. only:: html
.. image:: /examples/05-file-IO/images/thumb/sphx_glr_02-hdf5_serialize_and_read_thumb.png
:alt:
:doc:`/examples/05-file-IO/02-hdf5_serialize_and_read`
.. raw:: html
HDF5 export and import operations
.. raw:: html
.. only:: html
.. image:: /examples/05-file-IO/images/thumb/sphx_glr_04-basic-load-file_thumb.png
:alt:
:doc:`/examples/05-file-IO/04-basic-load-file`
.. raw:: html
Working with a result file
.. thumbnail-parent-div-close
.. raw:: html
Plotting examples
=================
These examples show how to use the :class:`ansys.dpf.core.plotter.DpfPlotter` class.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/06-plotting/images/thumb/sphx_glr_00-basic_plotting_thumb.png
:alt:
:doc:`/examples/06-plotting/00-basic_plotting`
.. raw:: html
Review of available plotting commands
.. raw:: html
.. only:: html
.. image:: /examples/06-plotting/images/thumb/sphx_glr_01-compare_results_thumb.png
:alt:
:doc:`/examples/06-plotting/01-compare_results`
.. raw:: html
Compare results using the plotter
.. raw:: html
.. only:: html
.. image:: /examples/06-plotting/images/thumb/sphx_glr_02-solution_combination_thumb.png
:alt:
:doc:`/examples/06-plotting/02-solution_combination`
.. raw:: html
Load case combination for principal stress
.. raw:: html
.. only:: html
.. image:: /examples/06-plotting/images/thumb/sphx_glr_03-labels_thumb.png
:alt:
:doc:`/examples/06-plotting/03-labels`
.. raw:: html
Add nodal labels on plots
.. raw:: html
.. only:: html
.. image:: /examples/06-plotting/images/thumb/sphx_glr_04-plot_on_path_thumb.png
:alt:
:doc:`/examples/06-plotting/04-plot_on_path`
.. raw:: html
Plot results on a specific path
.. raw:: html
.. only:: html
.. image:: /examples/06-plotting/images/thumb/sphx_glr_05-plot_on_warped_mesh_thumb.png
:alt:
:doc:`/examples/06-plotting/05-plot_on_warped_mesh`
.. raw:: html
Warp the mesh by a field for plotting
.. raw:: html
.. only:: html
.. image:: /examples/06-plotting/images/thumb/sphx_glr_06-animate_results_thumb.gif
:alt:
:doc:`/examples/06-plotting/06-animate_results`
.. raw:: html
Review of available animation commands
.. raw:: html
.. only:: html
.. image:: /examples/06-plotting/images/thumb/sphx_glr_07-plot_on_geometries_thumb.png
:alt:
:doc:`/examples/06-plotting/07-plot_on_geometries`
.. raw:: html
Plot on geometry elements
.. thumbnail-parent-div-close
.. raw:: html
Examples for postprocessing on distributed processes
====================================================
These examples show how to create workflows on different processes (possibly on
different machines) and connect them.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/07-distributed-post/images/thumb/sphx_glr_00-distributed_total_disp_thumb.png
:alt:
:doc:`/examples/07-distributed-post/00-distributed_total_disp`
.. raw:: html
Postprocessing of displacement on distributed processes
.. raw:: html
.. only:: html
.. image:: /examples/07-distributed-post/images/thumb/sphx_glr_01-distributed_workflows_on_remote_thumb.png
:alt:
:doc:`/examples/07-distributed-post/01-distributed_workflows_on_remote`
.. raw:: html
Create a custom workflow on distributed processes
.. raw:: html
.. only:: html
.. image:: /examples/07-distributed-post/images/thumb/sphx_glr_02-distributed-msup_expansion_thumb.png
:alt:
:doc:`/examples/07-distributed-post/02-distributed-msup_expansion`
.. raw:: html
Distributed mode superposition (MSUP)
.. raw:: html
.. only:: html
.. image:: /examples/07-distributed-post/images/thumb/sphx_glr_03-distributed-msup_expansion_steps_thumb.png
:alt:
:doc:`/examples/07-distributed-post/03-distributed-msup_expansion_steps`
.. raw:: html
Distributed MSUP distributed modal response
.. thumbnail-parent-div-close
.. raw:: html
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.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/08-python-operators/images/thumb/sphx_glr_00-wrapping_numpy_capabilities_thumb.png
:alt:
:doc:`/examples/08-python-operators/00-wrapping_numpy_capabilities`
.. raw:: html
Create a basic operator plugin
.. raw:: html
.. only:: html
.. image:: /examples/08-python-operators/images/thumb/sphx_glr_01-package_python_operators_thumb.png
:alt:
:doc:`/examples/08-python-operators/01-package_python_operators`
.. raw:: html
Create a plug-in package with multiple operators
.. raw:: html
.. only:: html
.. image:: /examples/08-python-operators/images/thumb/sphx_glr_02-python_operators_with_dependencies_thumb.png
:alt:
:doc:`/examples/08-python-operators/02-python_operators_with_dependencies`
.. raw:: html
Create a plug-in package that has third-party dependencies
.. thumbnail-parent-div-close
.. raw:: html
Averaging examples
==================
These examples show how to use some of DPF's averaging operators.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/09-averaging/images/thumb/sphx_glr_00-compute_and_average_thumb.png
:alt:
:doc:`/examples/09-averaging/00-compute_and_average`
.. raw:: html
Averaging order
.. raw:: html
.. only:: html
.. image:: /examples/09-averaging/images/thumb/sphx_glr_01-average_across_bodies_thumb.png
:alt:
:doc:`/examples/09-averaging/01-average_across_bodies`
.. raw:: html
Average across bodies
.. thumbnail-parent-div-close
.. raw:: html
Mesh operations examples
===========================================
These examples show how to manipulate meshes.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/10-mesh_operations/images/thumb/sphx_glr_00-create_polygons_and_polyhedrons_thumb.png
:alt:
:doc:`/examples/10-mesh_operations/00-create_polygons_and_polyhedrons`
.. raw:: html
Create and display a mesh with polygon and polyhedron elements
.. raw:: html
.. only:: html
.. image:: /examples/10-mesh_operations/images/thumb/sphx_glr_05-skin_extraction_thumb.png
:alt:
:doc:`/examples/10-mesh_operations/05-skin_extraction`
.. raw:: html
Extract the skin from a mesh
.. raw:: html
.. only:: html
.. image:: /examples/10-mesh_operations/images/thumb/sphx_glr_13-nodes_in_local_coordinate_system_thumb.png
:alt:
:doc:`/examples/10-mesh_operations/13-nodes_in_local_coordinate_system`
.. raw:: html
Convert nodal coordinates field to local coordinate system
.. thumbnail-parent-div-close
.. raw:: html
Cyclic symmetry examples
========================
These examples show how to post-process cyclic symmetry models.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/11-cyclic-symmetry/images/thumb/sphx_glr_01-modal_cyclic_thumb.png
:alt:
:doc:`/examples/11-cyclic-symmetry/01-modal_cyclic`
.. raw:: html
Expand mesh and results for modal cyclic symmetry
.. raw:: html
.. only:: html
.. image:: /examples/11-cyclic-symmetry/images/thumb/sphx_glr_02-modal_cyclic_no_expansion_thumb.png
:alt:
:doc:`/examples/11-cyclic-symmetry/02-modal_cyclic_no_expansion`
.. raw:: html
Get base and duplicate sectors (real and imaginary) results for modal cyclic symmetry
.. raw:: html
.. only:: html
.. image:: /examples/11-cyclic-symmetry/images/thumb/sphx_glr_03-cyclic_multi_stage_thumb.png
:alt:
:doc:`/examples/11-cyclic-symmetry/03-cyclic_multi_stage`
.. raw:: html
Multi-stage cyclic symmetry example
.. thumbnail-parent-div-close
.. raw:: html
Fluids examples
========================
These examples show how to post-process Fluid models.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/12-fluids/images/thumb/sphx_glr_00-fluids_model_thumb.png
:alt:
:doc:`/examples/12-fluids/00-fluids_model`
.. raw:: html
Explore Fluids models
.. raw:: html
.. only:: html
.. image:: /examples/12-fluids/images/thumb/sphx_glr_01-fluids_mesh_thumb.png
:alt:
:doc:`/examples/12-fluids/01-fluids_mesh`
.. raw:: html
Explore Fluids mesh
.. raw:: html
.. only:: html
.. image:: /examples/12-fluids/images/thumb/sphx_glr_02-fluids_results_thumb.png
:alt:
:doc:`/examples/12-fluids/02-fluids_results`
.. raw:: html
Explore Fluids results
.. raw:: html
.. only:: html
.. image:: /examples/12-fluids/images/thumb/sphx_glr_03-fluids_isosurface_thumb.png
:alt:
:doc:`/examples/12-fluids/03-fluids_isosurface`
.. raw:: html
Compute iso-surfaces on fluid models
.. thumbnail-parent-div-close
.. raw:: html
Streamlines examples
====================
These examples show how to compute and plot streamlines.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/13-streamlines/images/thumb/sphx_glr_00_plot_3d_streamlines_thumb.png
:alt:
:doc:`/examples/13-streamlines/00_plot_3d_streamlines`
.. raw:: html
Compute and plot 3D streamlines
.. raw:: html
.. only:: html
.. image:: /examples/13-streamlines/images/thumb/sphx_glr_01_plot_surface_streamlines_thumb.png
:alt:
:doc:`/examples/13-streamlines/01_plot_surface_streamlines`
.. raw:: html
Compute and plot 2D streamlines
.. thumbnail-parent-div-close
.. raw:: html
LS-Dyna examples
================
These examples show how to post-process LS-Dyna models.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/14-lsdyna/images/thumb/sphx_glr_00-lsdyna_operators_thumb.png
:alt:
:doc:`/examples/14-lsdyna/00-lsdyna_operators`
.. raw:: html
Results extraction and analysis from LS-DYNA sources
.. raw:: html
.. only:: html
.. image:: /examples/14-lsdyna/images/thumb/sphx_glr_01-lsdyna_beam_thumb.png
:alt:
:doc:`/examples/14-lsdyna/01-lsdyna_beam`
.. raw:: html
Beam results manipulations
.. thumbnail-parent-div-close
.. raw:: html
CFX examples
============
These examples show how to post-process CFX result files.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/15-cfx/images/thumb/sphx_glr_00-cfx_res_files_thumb.png
:alt:
:doc:`/examples/15-cfx/00-cfx_res_files`
.. raw:: html
Read CFX res files
.. thumbnail-parent-div-close
.. raw:: html
Mathematical examples
=====================
These examples show how to do mathematical operations with PyDPF-Core structures.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /examples/16-maths-ops/images/thumb/sphx_glr_01-matrix-operations_thumb.png
:alt:
:doc:`/examples/16-maths-ops/01-matrix-operations`
.. raw:: html
Matrix Operations
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
:includehidden:
/examples/00-basic/index.rst
/examples/01-transient_analyses/index.rst
/examples/02-modal_analyses/index.rst
/examples/03-harmonic_analyses/index.rst
/examples/04-advanced/index.rst
/examples/05-file-IO/index.rst
/examples/06-plotting/index.rst
/examples/07-distributed-post/index.rst
/examples/08-python-operators/index.rst
/examples/09-averaging/index.rst
/examples/10-mesh_operations/index.rst
/examples/11-cyclic-symmetry/index.rst
/examples/12-fluids/index.rst
/examples/13-streamlines/index.rst
/examples/14-lsdyna/index.rst
/examples/15-cfx/index.rst
/examples/16-maths-ops/index.rst
.. only:: html
.. rst-class:: sphx-glr-signature
`Gallery generated by Sphinx-Gallery `_