Extract linearized stress using mech_dpf

Jim Kosloski
Jim Kosloski Member, Employee Posts: 28
Second Anniversary 10 Comments Name Dropper Ansys Employee
✭✭✭✭
edited September 6 in Structures

I have developed a fairly complete DPF script for use in Mechanical to extract linearized stress for all components and invariants at all time points in the model.

I would be very interested in comments on the programming techniques and efficiency. For example, I pull the operator instantiations outside of the main loop, is this recommended? Is there a "cost" to re-instantiating the operators repeatedly? I wind up copying and pasting a lot of sections and then updating the component, is there a way to do this more efficiently with functions? I loop through all the time points, but the component stresses are field containers of all time points, is there a way to avoid the main time loop and operate directly on the fields containers (all time points) simultaneously?

Lastly this gets very close to the same results as the built-in linearization in Mechanical, but not exact.

Tagged: