: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: :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: :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: :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: :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: :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: :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: :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: :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: :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_12-get_material_properties_thumb.png :alt: :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: :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: :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: :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: :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
.. only:: html .. image:: /examples/02-modal_analyses/images/thumb/sphx_glr_01-plot_and_animate_modes_thumb.png :alt: :ref:`sphx_glr_examples_02-modal_analyses_01-plot_and_animate_modes.py` .. raw:: html
Plot and animate mode shapes with DPF
.. 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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_examples_04-advanced_13-manage_licensing.py` .. 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: :ref:`sphx_glr_examples_04-advanced_14-incremental_evaluation.py` .. raw:: html
Use incremental evaluation helper
.. 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: :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: :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_02-hdf5_serialize_and_read_thumb.png :alt: :ref:`sphx_glr_examples_05-file-IO_02-hdf5_serialize_and_read.py` .. 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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_examples_07-distributed-post_03-distributed-msup_expansion_steps.py` .. raw:: html
Distributed MSUP distributed modal response
.. 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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :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: :ref:`sphx_glr_examples_11-cyclic-symmetry_03-cyclic_multi_stage.py` .. raw:: html
Multi-stage cyclic symmetry example
.. raw:: html
Fluids examples ======================== These examples show how to post-process Fluid models. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/12-fluids/images/thumb/sphx_glr_00-fluids_model_thumb.png :alt: :ref:`sphx_glr_examples_12-fluids_00-fluids_model.py` .. raw:: html
Explore Fluids models
.. raw:: html
.. only:: html .. image:: /examples/12-fluids/images/thumb/sphx_glr_01-fluids_mesh_thumb.png :alt: :ref:`sphx_glr_examples_12-fluids_01-fluids_mesh.py` .. raw:: html
Explore Fluids mesh
.. raw:: html
.. only:: html .. image:: /examples/12-fluids/images/thumb/sphx_glr_02-fluids_results_thumb.png :alt: :ref:`sphx_glr_examples_12-fluids_02-fluids_results.py` .. raw:: html
Explore Fluids results
.. raw:: html
.. only:: html .. image:: /examples/12-fluids/images/thumb/sphx_glr_03-fluids_isosurface_thumb.png :alt: :ref:`sphx_glr_examples_12-fluids_03-fluids_isosurface.py` .. raw:: html
Compute iso-surfaces on fluid models
.. raw:: html
Streamlines examples ==================== These examples show how to compute and plot streamlines. .. raw:: html
.. raw:: html
.. only:: html .. image:: /examples/13-streamlines/images/thumb/sphx_glr_00_plot_3d_streamlines_thumb.png :alt: :ref:`sphx_glr_examples_13-streamlines_00_plot_3d_streamlines.py` .. 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: :ref:`sphx_glr_examples_13-streamlines_01_plot_surface_streamlines.py` .. raw:: html
Compute and plot 2D streamlines
.. 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 .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_