ANSYS Workbench commands
ANSYS Workbench commands
(OP)
Hi guys,
i'm new to ANSYS and i have some difficulties with APDL commands on Workbench.
I have a component with some named selections and i need to find the surface area of some areas. I need to use it in another command so i need to store it in a variable. I think i should use this *GET, Par, AREA, 0, Item1, IT1NUM, Item2, IT2NUM , but previously i think i should use ASEL and ASUM but i obtain errors. This is my code but surely is wrong.
ASEL,s,contact
ASUM,DEFAULT
*GET, my_area, AREA,0,AREA
Do you know how to do it?
thank you very much.
i'm new to ANSYS and i have some difficulties with APDL commands on Workbench.
I have a component with some named selections and i need to find the surface area of some areas. I need to use it in another command so i need to store it in a variable. I think i should use this *GET, Par, AREA, 0, Item1, IT1NUM, Item2, IT2NUM , but previously i think i should use ASEL and ASUM but i obtain errors. This is my code but surely is wrong.
ASEL,s,contact
ASUM,DEFAULT
*GET, my_area, AREA,0,AREA
Do you know how to do it?
thank you very much.
RE: ANSYS Workbench commands
This is an alternative, it just needs for your to know the type number of the contacts:
CODE --> apdl
RE: ANSYS Workbench commands
The problem is that i have the same elements for all the areas of the component. Is not possibile to select the area through the name adopted in the named selections?
Thank you!
RE: ANSYS Workbench commands
here is a workaround where the area is calculated based on a nodal named selection (surfarean), which is easy to generate from a face name selection (just right click on the named selection for the face and choose create a nodal named selection). Dummy elements are then created there (on that face), and their total area is calculated (totarea) - finally these elements are deleted so they are not used in the solution.
CODE --> WB
Alternatively you can look on scripting things and adding an extension - I do not have so much experience in that field so I do not know much, except that there is a guide for all api calls, say to get the area of face is .Area which is a member of the IBaseGeoFace interface I believe