Skip to content

Commit

Permalink
Update integration tests with new failure values
Browse files Browse the repository at this point in the history
  • Loading branch information
A-CGray committed Apr 24, 2023
1 parent cf0eb01 commit 3406b95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/integration_tests/test_shell_beam_comp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from tacs import TACS, elements, constitutive, functions

"""
Create a cantilevered composite beam of linear quad shells with an
Create a cantilevered composite beam of linear quad shells with an
unbalanced tip shear load on the right corner
and test KSFailure, StructuralMass, and Compliance functions and sensitivities
"""

FUNC_REFS = np.array(
[5812.5, 63907185.558059536, 12.21799417804536, 174.71401901274177]
[5812.5, 63907185.558059536, 12.21799417804536, 23.51274876481848]
)

# Length of plate in x/y direction
Expand Down
8 changes: 4 additions & 4 deletions tests/integration_tests/test_shell_comp_unbalanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Tests an unbalanced laminate shell model with the following layup: [0, 45, 30]s.
The laminate information is read in from a PCOMP card in the BDF file.
Two load cases are tested: an in-plane tension and out-of-plane shear.
tests KSDisplacement, KSFailure, StructuralMass, and Compliance functions
tests KSDisplacement, KSFailure, StructuralMass, and Compliance functions
and sensitivities.
"""

Expand All @@ -22,13 +22,13 @@ class ProblemTest(PyTACSTestCase.PyTACSTest):

FUNC_REFS = {
"Tension_compliance": 15047.4827204001,
"Tension_ks_vmfailure": 34.54666371379912,
"Tension_ks_TsaiWufailure": 7.875796240395447,
"Tension_mass": 1.1625,
"Tension_x_disp": 0.08602975190111069,
"Tension_y_disp": 0.01957454912511978,
"Tension_z_disp": 5.484526868562824e-17,
"VertShear_compliance": 0.00020961674292023337,
"VertShear_ks_vmfailure": 0.0007498886916845651,
"VertShear_ks_TsaiWufailure": 0.0013092603829596005,
"VertShear_mass": 1.1625,
"VertShear_x_disp": 2.6216565960935596e-23,
"VertShear_y_disp": 5.97480777083504e-23,
Expand Down Expand Up @@ -71,7 +71,7 @@ def setup_tacs_problems(self, comm):
for problem in tacs_probs:
problem.addFunction("mass", functions.StructuralMass)
problem.addFunction("compliance", functions.Compliance)
problem.addFunction("ks_vmfailure", functions.KSFailure, ksWeight=ksweight)
problem.addFunction("ks_TsaiWufailure", functions.KSFailure, ksWeight=ksweight)
problem.addFunction(
"x_disp",
functions.KSDisplacement,
Expand Down

0 comments on commit 3406b95

Please sign in to comment.