June 21, 2022 at 11:18 amofoSubscriber
How do I get the centroid of a named selection in APDL? It needs to be done in post processing, as is needs to be found for the deformed shape (at least when large deflection is turned on). I tried to use ASUM/GSUM, but they don't seem to be appliable in POST. Is it possible to find the centroid of an arbitrary area with APDL?
My very simple code:
Unfortunately it doesn't work, as post.out states that: "ASUM is not a recognized POST1 command, abbreviation, or macro..."
Thanks in advance. Your help is much appreciated.
June 28, 2022 at 3:39 pmBill BulatAnsys Employee
ASUM returns the inertial properties of an area (a "surface body" created with MAPDL). There are no MAPDL "solid model" entities in models created by Mechanical, so if your model was created in Mechanical I would not expect ASUM to work.
This is old code but I think it might still work.finishsave/file,scrap/solucmsel,s,named_selectionesln,s,1irlf,-1psolve,elformpsolve,elprepirlist*get,mtot,elem,,mtot,x*get,mcx,elem,,mc,x*get,mcy,elem,,mc,y*get,mcz,elem,,mc,z*get,imcx,elem,,imc,x*get,imcy,elem,,imc,y*get,imcz,elem,,imc,z*get,ipx,elem,,iprin,x*get,ipy,elem,,iprin,y*get,ipz,elem,,iprin,z*get,ang_xy,elem,,iang,xy*get,ang_yz,elem,,iang,yz*get,ang_zx,elem,,iang,zxfinish/file,fileresume/soluThe parameters returned by the *GET command in the code above are described in the MAPDL Help:
I hope this helps!
- 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.
- Saving & sharing of Working project files in .wbpz format
- Solver Pivot Warning in Beam Element Model
- Understanding Force Convergence Solution Output
- An Unknown error occurred during solution. Check the Solver Output…..
- What is the difference between bonded contact region and fixed joint
- whether have the difference between using contact and target bodies
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
- Colors and Mesh Display
- material damping and modal analysis
© 2023 Copyright ANSYS, Inc. All rights reserved.