Structures Simulation Discussion
Greetings Structures Simulation Enthusiasts,
I'm currently grappling with incorporating paths into my equivalent stress calculations within Ansys Mechanical scripting. Here's a snippet of my code for context:
Spannung_Pfad = Model.Analyses[0].Solution.AddEquivalentStress() Spannung_Pfad.ScopingMethod = GeometryDefineByType.Path Spannung_Pfad.Surface = ExtAPI.DataModel.GetObjectsByName("Pfad0")[0]
Despite having already defined all paths by name, I'm encountering challenges in successfully integrating them into the stress calculations. Even though the recording tool employs a similar approach, the surface selection doesn't seem to yield the desired results.
If anyone within the Structures community has encountered similar issues or has suggestions on potential solutions, I'd be immensely grateful for your insights.
Best regards,
ControlF5
Let's collaborate and troubleshoot this together within our Structures Simulation realm!
Comments
-
See:
https://discuss.ansys.com/discussion/2491/how-to-set-path-and-geometry-scoping-when-defining-result-object-with-path-as-the-scoping-method?utm_source=community-search&utm_medium=organic-search&utm_term=path
or:
https://discuss.ansys.com/discussion/157/using-act-how-can-i-create-a-result-plot-scoped-to-a-path-and-a-specific-bodyNote: I can't remember which versions, but there was a bug at one point in the script recording functionality that would incorrectly record .Surface to scope to paths
0