:orphan: .. _gallery: ======== Examples ======== These examples demonstrate the behavior and usage of DPF-Core. .. raw:: html
.. raw:: html
Basic DPF examples ================== These examples explain the basic concepts of DPF. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/00-basic/images/thumb/sphx_glr_00-basic_example_thumb.png :alt: Basic DPF-Core usage :ref:`sphx_glr_examples_00-basic_00-basic_example.py` .. raw:: html
Basic DPF-Core usage
.. raw:: html
.. only:: html .. image:: /examples/00-basic/images/thumb/sphx_glr_01-basic_operators_thumb.png :alt: Operators overview :ref:`sphx_glr_examples_00-basic_01-basic_operators.py` .. raw:: html
Operators overview
.. raw:: html
.. only:: html .. image:: /examples/00-basic/images/thumb/sphx_glr_02-basic_field_containers_thumb.png :alt: Field and field containers overview :ref:`sphx_glr_examples_00-basic_02-basic_field_containers.py` .. 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: Create your own entities using DPF operators :ref:`sphx_glr_examples_00-basic_03-create_entities.py` .. 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: Bring a field's data locally to improve performance :ref:`sphx_glr_examples_00-basic_05-use_local_data.py` .. 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: Use result helpers to load custom data :ref:`sphx_glr_examples_00-basic_07-use_result_helpers.py` .. 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: Scope results over custom time domains :ref:`sphx_glr_examples_00-basic_08-results_over_time_subset.py` .. 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: Scope results over custom space domains :ref:`sphx_glr_examples_00-basic_09-results_over_space_subset.py` .. 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: Mathematical Operations :ref:`sphx_glr_examples_00-basic_10-math_operations.py` .. raw:: html
Mathematical Operations
.. raw:: html
.. only:: html .. image:: /examples/00-basic/images/thumb/sphx_glr_11-server_types_thumb.png :alt: Communicate in process or via gRPC :ref:`sphx_glr_examples_00-basic_11-server_types.py` .. raw:: html
Communicate in process or via gRPC
.. raw:: html
.. only:: html .. image:: /examples/00-basic/images/thumb/sphx_glr_12-get_material_properties_thumb.png :alt: Get material properties from the result file :ref:`sphx_glr_examples_00-basic_12-get_material_properties.py` .. raw:: html
Get material properties from the result file
.. 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
.. raw:: html
.. only:: html .. image:: /examples/01-transient_analyses/images/thumb/sphx_glr_00-basic_transient_thumb.png :alt: Transient analysis result example :ref:`sphx_glr_examples_01-transient_analyses_00-basic_transient.py` .. 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: Choose a time scoping for a transient analysis :ref:`sphx_glr_examples_01-transient_analyses_01-transient_easy_time_scoping.py` .. raw:: html
Choose a time scoping for a transient analysis
.. raw:: html
.. only:: html .. image:: /examples/01-transient_analyses/images/thumb/sphx_glr_02-lsdyna_operators_thumb.png :alt: Results extraction and analysis from LS-DYNA sources :ref:`sphx_glr_examples_01-transient_analyses_02-lsdyna_operators.py` .. raw:: html
Results extraction and analysis from LS-DYNA sources
.. raw:: html
Modal analysis examples ======================= These examples show how to use DPF to extract and manipulate results from modal analyses. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/02-modal_analyses/images/thumb/sphx_glr_00-compare_modes_thumb.png :alt: Use Result Helpers to compare mode shapes for solids and then shells :ref:`sphx_glr_examples_02-modal_analyses_00-compare_modes.py` .. raw:: html
Use Result Helpers to compare mode shapes for solids and then shells
.. raw:: html
Harmonic analysis examples =========================== These examples show how to use DPF to extract and manipulate results from harmonic analyses. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/03-harmonic_analyses/images/thumb/sphx_glr_00-multi_harmonic_thumb.png :alt: Multi-harmonic response example :ref:`sphx_glr_examples_03-harmonic_analyses_00-multi_harmonic.py` .. 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: Expand harmonic modal superposition with DPF :ref:`sphx_glr_examples_03-harmonic_analyses_01-modal_superposition.py` .. raw:: html
Expand harmonic modal superposition with DPF
.. raw:: html
Advanced and miscellaneous examples =================================== These examples show advanced use cases to demonstrate the high level of workflow customization. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/04-advanced/images/thumb/sphx_glr_00-multistage_advanced_options_thumb.png :alt: Multi-stage cyclic symmetry using advanced customization :ref:`sphx_glr_examples_04-advanced_00-multistage_advanced_options.py` .. 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: Solve harmonic problem (with damping) using matrix inverse :ref:`sphx_glr_examples_04-advanced_01-solve_harmonic_problem.py` .. 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: Average elemental stress on a given volume :ref:`sphx_glr_examples_04-advanced_02-volume_averaged_stress.py` .. 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: Exchange data between servers :ref:`sphx_glr_examples_04-advanced_03-exchange_data_between_servers.py` .. 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: Extrapolation method for stress result of a 3D element :ref:`sphx_glr_examples_04-advanced_04-extrapolation_stress_3d.py` .. 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: Extrapolation method for strain result of a 2D element :ref:`sphx_glr_examples_04-advanced_05-extrapolation_strain_2d.py` .. 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: Stress gradient normal to a defined node :ref:`sphx_glr_examples_04-advanced_06-stress_gradient_path.py` .. 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: Load plugin :ref:`sphx_glr_examples_04-advanced_07-load_plugin.py` .. raw:: html
Load plugin
.. raw:: html
.. only:: html .. image:: /examples/04-advanced/images/thumb/sphx_glr_10-asme_secviii_divtwo_thumb.png :alt: Pressure vessel analysis according to an ASME standard :ref:`sphx_glr_examples_04-advanced_10-asme_secviii_divtwo.py` .. 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: Calculate the number of cycles to fatigue failure :ref:`sphx_glr_examples_04-advanced_11-cycles_to_failure.py` .. 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: Read results from distributed files :ref:`sphx_glr_examples_04-advanced_12-read_distributed_files.py` .. 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: Manage the DPF licensing logic using the server context :ref:`sphx_glr_examples_04-advanced_13-manage_licensing.py` .. raw:: html
Manage the DPF licensing logic using the server context
.. 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
.. raw:: html
.. only:: html .. image:: /examples/05-file-IO/images/thumb/sphx_glr_00-hdf5_double_float_comparison_thumb.png :alt: HDF5 export and compare precision :ref:`sphx_glr_examples_05-file-IO_00-hdf5_double_float_comparison.py` .. 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: Get reduced matrices and make export :ref:`sphx_glr_examples_05-file-IO_01-reduced_matrices_export.py` .. raw:: html
Get reduced matrices and make export
.. raw:: html
.. only:: html .. image:: /examples/05-file-IO/images/thumb/sphx_glr_04-basic-load-file_thumb.png :alt: Working with a result file :ref:`sphx_glr_examples_05-file-IO_04-basic-load-file.py` .. raw:: html
Working with a result file
.. raw:: html
Plotting examples ================= These examples show how to use the :class:`ansys.dpf.core.plotter.DpfPlotter` class. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/06-plotting/images/thumb/sphx_glr_00-basic_plotting_thumb.png :alt: Review of available plotting commands :ref:`sphx_glr_examples_06-plotting_00-basic_plotting.py` .. 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: Compare results using the plotter :ref:`sphx_glr_examples_06-plotting_01-compare_results.py` .. 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: Load case combination for principal stress :ref:`sphx_glr_examples_06-plotting_02-solution_combination.py` .. 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: Add nodal labels on plots :ref:`sphx_glr_examples_06-plotting_03-labels.py` .. 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: Plot results on a specific path :ref:`sphx_glr_examples_06-plotting_04-plot_on_path.py` .. 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: Warp the mesh by a field for plotting :ref:`sphx_glr_examples_06-plotting_05-plot_on_warped_mesh.py` .. 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.png :alt: Review of available animation commands :ref:`sphx_glr_examples_06-plotting_06-animate_results.py` .. 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: Plot on geometry elements :ref:`sphx_glr_examples_06-plotting_07-plot_on_geometries.py` .. raw:: html
Plot on geometry elements
.. 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
.. raw:: html
.. only:: html .. image:: /examples/07-distributed-post/images/thumb/sphx_glr_00-distributed_total_disp_thumb.png :alt: Postprocessing of displacement on distributed processes :ref:`sphx_glr_examples_07-distributed-post_00-distributed_total_disp.py` .. 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: Create a custom workflow on distributed processes :ref:`sphx_glr_examples_07-distributed-post_01-distributed_workflows_on_remote.py` .. 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: Distributed mode superposition (MSUP) :ref:`sphx_glr_examples_07-distributed-post_02-distributed-msup_expansion.py` .. 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: Distributed MSUP distributed modal response :ref:`sphx_glr_examples_07-distributed-post_03-distributed-msup_expansion_steps.py` .. raw:: html
Distributed MSUP distributed modal response
.. raw:: html
.. only:: html .. image:: /examples/07-distributed-post/images/thumb/sphx_glr_06-distributed_stress_averaging_thumb.png :alt: Average Stress in distributed Workflows :ref:`sphx_glr_examples_07-distributed-post_06-distributed_stress_averaging.py` .. raw:: html
Average Stress in distributed Workflows
.. 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
.. raw:: html
.. only:: html .. image:: /examples/08-python-operators/images/thumb/sphx_glr_00-wrapping_numpy_capabilities_thumb.png :alt: Create a basic operator plugin :ref:`sphx_glr_examples_08-python-operators_00-wrapping_numpy_capabilities.py` .. 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: Create a plug-in package with multiple operators :ref:`sphx_glr_examples_08-python-operators_01-package_python_operators.py` .. 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: Create a plug-in package that has third-party dependencies :ref:`sphx_glr_examples_08-python-operators_02-python_operators_with_dependencies.py` .. raw:: html
Create a plug-in package that has third-party dependencies
.. raw:: html
Averaging examples ================== These examples show how to use some of DPF's averaging operators. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/09-averaging/images/thumb/sphx_glr_00-compute_and_average_thumb.png :alt: Averaging order :ref:`sphx_glr_examples_09-averaging_00-compute_and_average.py` .. raw:: html
Averaging order
.. raw:: html
.. only:: html .. image:: /examples/09-averaging/images/thumb/sphx_glr_01-average_across_bodies_thumb.png :alt: Average across bodies :ref:`sphx_glr_examples_09-averaging_01-average_across_bodies.py` .. raw:: html
Average across bodies
.. raw:: html
Mesh operations examples =========================================== These examples show how to manipulate meshes. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/10-mesh_operations/images/thumb/sphx_glr_00-create_polygons_and_polyhedrons_thumb.png :alt: Create and display a mesh with polygon and polyhedron elements :ref:`sphx_glr_examples_10-mesh_operations_00-create_polygons_and_polyhedrons.py` .. 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: Extract the skin from a mesh :ref:`sphx_glr_examples_10-mesh_operations_05-skin_extraction.py` .. 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: Convert nodal coordinates field to local coordinate system :ref:`sphx_glr_examples_10-mesh_operations_13-nodes_in_local_coordinate_system.py` .. raw:: html
Convert nodal coordinates field to local coordinate system
.. raw:: html
Cyclic symmetry examples ======================== These examples show how to post-process cyclic symmetry models. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/11-cyclic-symmetry/images/thumb/sphx_glr_01-modal_cyclic_thumb.png :alt: Expand mesh and results for modal cyclic symmetry :ref:`sphx_glr_examples_11-cyclic-symmetry_01-modal_cyclic.py` .. 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: Get base and duplicate sectors (real and imaginary) results for modal cyclic symmetry :ref:`sphx_glr_examples_11-cyclic-symmetry_02-modal_cyclic_no_expansion.py` .. 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: Multi-stage cyclic symmetry example :ref:`sphx_glr_examples_11-cyclic-symmetry_03-cyclic_multi_stage.py` .. raw:: html
Multi-stage cyclic symmetry example
.. 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 .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_