From b1c6562fe4d8ed69a9c2362193a7e2f2a5e2e8c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Roos?= <105842014+roosre@users.noreply.github.com> Date: Wed, 16 Oct 2024 06:45:47 +0200 Subject: [PATCH] Remove obsolete constant TEMPERARTURE_COMPONENT (#533) * Ged rid of TEMPERATURE_COMPONENT since 0 is the default anyway --- examples/013_thermal_example.py | 3 +-- src/ansys/dpf/composites/constants.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/013_thermal_example.py b/examples/013_thermal_example.py index 22f7336f3..c945c1e18 100644 --- a/examples/013_thermal_example.py +++ b/examples/013_thermal_example.py @@ -56,7 +56,6 @@ import numpy as np from ansys.dpf.composites.composite_model import CompositeModel -from ansys.dpf.composites.constants import TEMPERATURE_COMPONENT from ansys.dpf.composites.example_helper import get_continuous_fiber_example_files from ansys.dpf.composites.layup_info import get_all_analysis_ply_names from ansys.dpf.composites.ply_wise_data import SpotReductionStrategy, get_ply_wise_data @@ -89,11 +88,11 @@ all_ply_names = get_all_analysis_ply_names(composite_model.get_mesh()) print(all_ply_names) +# The component of the temperature is 0 which is the default value. nodal_values = get_ply_wise_data( field=temperatures_fc, ply_name="P1L1__ModelingPly.8", mesh=composite_model.get_mesh(), - component=TEMPERATURE_COMPONENT, spot_reduction_strategy=SpotReductionStrategy.MAX, requested_location=dpf.locations.nodal, ) diff --git a/src/ansys/dpf/composites/constants.py b/src/ansys/dpf/composites/constants.py index 4047bb867..14f11416c 100644 --- a/src/ansys/dpf/composites/constants.py +++ b/src/ansys/dpf/composites/constants.py @@ -30,12 +30,10 @@ "REF_SURFACE_NAME", "FAILURE_LABEL", "TIME_LABEL", - "TEMPERATURE_COMPONENT", ) FAILURE_LABEL = "failure_label" TIME_LABEL = "time" -TEMPERATURE_COMPONENT = 0 REF_SURFACE_NAME = "Reference Surface"