Skip to content

Commit

Permalink
Merge branch 'main' into maint/examples_doc
Browse files Browse the repository at this point in the history
  • Loading branch information
roosre authored Oct 16, 2024
2 parents 5a1eea6 + b1c6562 commit 828eeba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
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

0 comments on commit 828eeba

Please sign in to comment.