Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete constant TEMPERARTURE_COMPONENT #533

Merged
merged 2 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/013_thermal_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
)
Expand Down
2 changes: 0 additions & 2 deletions src/ansys/dpf/composites/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
Loading