April 25, 2023 at 3:56 pmMatthew LittleSubscriber
I wrote a Python script which creates a linearized stress intensity result for each path defined in the model. For each path, it creates the result, changes the coordinate system to the local system, then sets Zero Through-Thickness Bending Stress (ZTTBS) to True (Yes/On)
After running the script, the Details of any given linearized stress result created from the script shows everything is set up properly. But after solving the results and looking at the Worksheet for a result, it does not actually zero out the bending stresses. However, if I go back to the result object, set ZTTBS to 'No' and then back to 'Yes' manually, then solve, it sets the three bending components to zero as it should be doing.
My question is: when scripting this, is there a need to somehow 'update' the result so when solving the first time it does it correctly? I've tried to suppress and unsuppress the solution objects to try to 'update' them, but it does not fix the issue.
A sample of the script is shown below. Not the full thing but enough to see what it's doing.
for path in paths:
sint.CoordinateSystem=csys #Local csys for given path
April 29, 2023 at 4:20 ammjmiddleAnsys Employee
This appears to be a defect. Even after setting sint.ZeroThroughThicknessBendingStress=True, if I query the value it will still read False, even though the Details entry has changed to Yes.
Instead, Change the property by this method:
prop = sint.PropertyByName("ZeroThroughThicknessBendingStress")
prop.InternalValue = 1
May 1, 2023 at 1:01 pmMatthew LittleSubscriber
That appears to have fixed the problem. Thanks for getting back to me on this. Appreciate it
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- License Error
- Error with workbench SceneGraphChart
- How can I renew ANSYS student version license?
- Workbench not opening
- Sizing on Ansys Workbench 19.2
- Workbench error
- Error: Exception of type ‘Ansys.Fluent.Cortex.Cortex not availableException’ was thrown
- Ansys2021R2 ansys212 seg faults immediately on RHEL8.2
- Licensing error while opening ANSYS Mechanical
- An error occurred when the post processor attempted to load a specific result.
© 2023 Copyright ANSYS, Inc. All rights reserved.