v3.03.131 SSLS131 — Optimizing the radius of curvature of bent pipes#

Summary:

This demo test illustrates the use of the Python language in*Code_Aster*.

The objective of this test case is to optimize the value of the radius of curvature of a pipe via a Python loop. The radius of curvature is changed iteratively. The optimal value is obtained when the maximum Von Mises stress is less than a threshold.

The Python language, in this case, tests permiteratively:

  • to modify the file describing the geometry of the elbow,

  • to launch GMSH in order to mesh the elbow,

  • to recover the maximum Von Mises constraint,

  • to evaluate a criterion for stopping iterations,

  • to launch GMSH to perform interactive post-processing.

This test case takes up the problem of the forma01f test case: bent pipe, made of a linear elastic material, subjected to a force applied at its end, modelled by shell elements DKT.

Note:

To have interactive visualization functions, put interactive = 1 at the beginning of the command file.