Source code for ansys.dyna.core.pre.examples.examples

# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""

Result Files Examples
=====================
Examples result files.
"""

import inspect
import os

_module_path = os.path.dirname(inspect.getfile(inspect.currentframe()))

# this files can be imported with from `ansys.dpf.core import examples`:
[docs] airbag_deploy = os.path.join(_module_path, "airbag", "airbag_deploy")
# EM
[docs] em_railgun = os.path.join(_module_path, "em", "em_railgun")
[docs] em_resistive_heating = os.path.join(_module_path, "em", "em_resistive_heating")
[docs] em_resistive_heating_2d = os.path.join(_module_path, "em", "em_resistive_heating_2d")
[docs] em_resistive_heating_2d_isopots = os.path.join(_module_path, "em", "em_resistive_heating_2d_isopots")
[docs] em_resistive_heating_2d_multi_isopots = os.path.join(_module_path, "em", "em_resistive_heating_2d_multi_isopots")
[docs] em_rlc_isopotential = os.path.join(_module_path, "em", "em_rlc_isopotential")
[docs] em_rlc_define_func = os.path.join(_module_path, "em", "em_rlc_define_func")
[docs] belted_dummy = os.path.join(_module_path, "explicit", "belted_dummy")
[docs] ball_plate = os.path.join(_module_path, "explicit", "ball_plate")
# ICFD
[docs] cylinder_flow = os.path.join(_module_path, "icfd", "cylinder_flow")
[docs] internal_3d_flow = os.path.join(_module_path, "icfd", "internal_3d_flow")
[docs] plate_flow = os.path.join(_module_path, "icfd", "plate_flow")
[docs] mesh_size = os.path.join(_module_path, "icfd", "mesh_size")
[docs] thermal_flow = os.path.join(_module_path, "icfd", "thermal_flow")
[docs] free_convection_flow = os.path.join(_module_path, "icfd", "free_convection_flow")
[docs] dam_break = os.path.join(_module_path, "icfd", "dam_break")
[docs] driven_cavity = os.path.join(_module_path, "icfd", "driven_cavity")
[docs] weak_fsi = os.path.join(_module_path, "icfd", "weak_fsi")
[docs] strong_fsi = os.path.join(_module_path, "icfd", "strong_fsi")
[docs] imposed_move = os.path.join(_module_path, "icfd", "imposed_move")
[docs] mesh_adaptivity = os.path.join(_module_path, "icfd", "mesh_adaptivity")
[docs] mesh_morphing = os.path.join(_module_path, "icfd", "mesh_morphing")
[docs] dem_coupling = os.path.join(_module_path, "icfd", "dem_coupling")
[docs] sloshing = os.path.join(_module_path, "icfd", "sloshing")
[docs] camry_rc = os.path.join(_module_path, "implicit", "camry_rc")
[docs] sale_efp = os.path.join(_module_path, "sale", "sale_efp")
[docs] isph_rigidtest = os.path.join(_module_path, "isph", "rigidtest")
# NVH
[docs] nvh_frf_plate_damping = os.path.join(_module_path, "nvh", "frf_plate_damping")
[docs] nvh_frf_solid = os.path.join(_module_path, "nvh", "frf_solid")
[docs] thermal_stress = os.path.join(_module_path, "thermal", "thermal_stress")