You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Tsai-Wu coefficients are defined in the attached XML but the output in PyDPF Composites is 0. The expected value is -1.ply_type.zip
📝 Steps to reproduce
import os
from ansys.dpf.composites.composite_model import CompositeModel
from ansys.dpf.composites.constants import FailureOutput
from ansys.dpf.composites.failure_criteria import CombinedFailureCriterion, MaxStressCriterion, TsaiWuCriterion
from ansys.dpf.composites.server_helpers import connect_to_or_start_server
from ansys.dpf.composites.data_sources import ContinuousFiberCompositesFiles
from ansys.dpf.composites.layup_info.material_properties import MaterialProperty
🔍 Before submitting the issue
🐞 Description of the bug
The Tsai-Wu coefficients are defined in the attached XML but the output in PyDPF Composites is 0. The expected value is -1.ply_type.zip
📝 Steps to reproduce
import os
from ansys.dpf.composites.composite_model import CompositeModel
from ansys.dpf.composites.constants import FailureOutput
from ansys.dpf.composites.failure_criteria import CombinedFailureCriterion, MaxStressCriterion, TsaiWuCriterion
from ansys.dpf.composites.server_helpers import connect_to_or_start_server
from ansys.dpf.composites.data_sources import ContinuousFiberCompositesFiles
from ansys.dpf.composites.layup_info.material_properties import MaterialProperty
result_path = r"D:\tmp\PyDPFComp-APDL\ply_type"
composite_files = ContinuousFiberCompositesFiles(
rst = [os.path.join(result_path, "file.rst")],
composite = {},
engineering_data=os.path.join(result_path, "EngineeringData.xml"),
)
server = connect_to_or_start_server()
composite_model = CompositeModel(composite_files, server)
combined_failure_criterion = CombinedFailureCriterion(failure_criteria=[TsaiWuCriterion()])
failure_result = composite_model.evaluate_failure_criteria(combined_failure_criterion)
irf_field = failure_result.get_field({"failure_label": FailureOutput.FAILURE_VALUE})
irf_field.plot()
mp = MaterialProperty.Tsai_Wu_Constant_xy
values = composite_model.get_constant_property_dict([mp])
print(values)
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
2025 R1
🐍 Which Python version are you using?
3.9
📦 Installed packages
The text was updated successfully, but these errors were encountered: