Material assignment in named selection
Hi everybody!
I am working on Static Structural Analysis in ANSYS R20.1 and here goes my question.
I have a single body, that is meshed and I need to select some of the elements within this mesh and assign different material properties than the rest of the structure. Some primitive questions arise within this context:
i) Can I somehow select elements that correspond to a certain value in space (e.g. pointcloud match) in an automated manner?
ii) I have found out about the APDL commands (mpchg, emodif) where it is allowed that the attributes of an element can change, such as material. Given that I have derived a named selection of my points/elements could I make use of a Command Snippet at the Static Structural interface, probably combining this with the REAL CONSTANT of the named selection? If so, where should I place the snippet?
In the Static Structural context, I have noticed that I can assign a material based on a named selection, but not when the named selection is either elemental or nodal.
I have been following this wonderful forum for more than the past year. I have to thank you all for putting time and effort on publicly discussing your modeling issues, it's been insightful! Exceptional forum operators/moderators and community overall!
Thanks a lot!
Vassilis
Answers
Hi @Vassilis
You can use APDL command snippet under the Anaysis Setting. Select the elements that you want and change their material properties.
You can use ESEL command to select elements and create component of it. Else if you have defined Named Selection in Mechanical, you can use it as component name in command snippet.
You can place the command snippet under Analysis setting. Then you have add first few commands as below
FINISH
/PREP7
At the end of snippet, you have add commands to go back to solution entry
FINISH
/SOLU.
Hi @rkumbhar, thanks a lot for taking the time!
I will give it a try and will come back.
Do you happen to know if there is any build-in functionality, or respective commands that match points in space with elements that have been generated through meshing?
Otherwise, the elements that should be selected should be calculated in a script outside ANSYS.
Thanks again!
@Vassilis
Check the named selection worksheet method. You can set criteria such as
Pick elements in X coordinate between range and provide a min and max value
Then reselect/filter using Y coordinate
Check this help link:
https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v202/en/wb_sim/ds_NS_Criteria.html
Or you will have to use APDLcommand such as ESEL as suggested by @rkumbhar
Thanks @gnagapp! I will update during the weekend that I have some time to implement some of the suggestions.