Skip to content

Commit

Permalink
Update truss2.py
Browse files Browse the repository at this point in the history
Updating to use performance function based on nodeDisp
  • Loading branch information
mhscott authored Nov 16, 2024
1 parent f979699 commit 4446997
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions EXAMPLES/Reliability/truss2.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@
"element", 1, "A")
ops.parameter(14, 'randomVariable', 33,
"element", 1, "fy")
ops.parameter(23, "node", 2, "disp", 1)
#ops.parameter(23, "node", 2, "disp", 1)

ops.performanceFunction(76, "5.5-par[23]")
#ops.performanceFunction(76, "5.5-par[23]")
ops.performanceFunction(76, "5.5-ops.nodeDisp(2,1)")

ops.sensitivityAlgorithm("-computeAtEachStep")

Expand All @@ -55,6 +56,7 @@
"-e2", 1e-2, "-print", 1)
ops.functionEvaluator('Python', "-file", "opensees.analyze(55)")
ops.gradientEvaluator('Implicit')
ops.gradientEvaluator('FiniteDifference')
ops.searchDirection('iHLRF')
ops.meritFunctionCheck('AdkZhang', "-multi", 2.0, "-add", 10.0,
"-factor", 0.5)
Expand Down

0 comments on commit 4446997

Please sign in to comment.