Want to know about [hm_getmarkvalue elements 1 config 0] command]
Hi guys,
I am using Hypermesh 2017.3 version.
I could not find the above mentioned command: [hm_getmarkvalue elements 1 config 0] in altair documentation.
Does anyone know what this command does?
Your help is much appreciated. Thanks in advance!!
Best Answer
-
Akshay Manthekar said:
Hi Ben,
Thanks for the response.
Would you care to explain me what is the configuration of an element? Is it the type of element like CTRIA6/CQUAD8, etc. and also I wanted to know if hypermesh assigns any integer value to them?
I am attaching below code snippet so that you would understand it more clearly.
In above code its appending nodes if their configuration value > 200. I wanna know this part.
Thanks and waiting for your reply.
Any help is much appreciated !
Yes the configuration is the type as you said. Yes they have associated integer values. Below is an example for the OptiStuct profile. I used hm_entityinfo configids elements to get those ids and hm_entityinfo configs elements to get the names.
So in your code it looks like you will create a list of solid elements attached to a mark of nodes.
1
Answers
-
hm_getmarkvalue gets the values of the entities on a mark. So for [hm_getmarkvalue elements 1 config 0] it would get the configurations of the elements on mark 1.
hm_getvalue has a mark selection option now (not sure this will work in 2017) which replaces the functionality of hm_getmarkvalue. See the help below.
hint for searching commands in the help: you have to use the full name. ex. hm_getmarkvalue will get you a few items one of which is a list of deprecated commands, which will give you the command that replaces it (hm_getvalue). However if you just type getmarkvalue you get nothing. However if you search "get mark value" hm_getvalue is the first result.
0 -
Hi Ben,
Thanks for the response.
Would you care to explain me what is the configuration of an element? Is it the type of element like CTRIA6/CQUAD8, etc. and also I wanted to know if hypermesh assigns any integer value to them?
I am attaching below code snippet so that you would understand it more clearly.
In above code its appending nodes if their configuration value > 200. I wanna know this part.
Thanks and waiting for your reply.
Any help is much appreciated !
0 -
Akshay Manthekar said:
Hi Ben,
Thanks for the response.
Would you care to explain me what is the configuration of an element? Is it the type of element like CTRIA6/CQUAD8, etc. and also I wanted to know if hypermesh assigns any integer value to them?
I am attaching below code snippet so that you would understand it more clearly.
In above code its appending nodes if their configuration value > 200. I wanna know this part.
Thanks and waiting for your reply.
Any help is much appreciated !
Yes the configuration is the type as you said. Yes they have associated integer values. Below is an example for the OptiStuct profile. I used hm_entityinfo configids elements to get those ids and hm_entityinfo configs elements to get the names.
So in your code it looks like you will create a list of solid elements attached to a mark of nodes.
1 -
Thanks a lot Ben for letting me know about this stuff.
By the way, do you have any idea about how these values are calculated? (Asking just out of curiosity) and are these different for different profile?
Thanks and regards,
Akshay
0 -
Akshay Manthekar said:
Thanks a lot Ben for letting me know about this stuff.
By the way, do you have any idea about how these values are calculated? (Asking just out of curiosity) and are these different for different profile?
Thanks and regards,
Akshay
They numbers don't change in different profiles but the entities available does. See the table below for the Radioss profile. Not all the types available in OptiStruct are available in Radioss. Not sure how they are picked but there is certainly some logic to it as all the 2D elements are in the 100s 3D in the 200s and also a hex20 is 220 and such.
Also, here is a link to the help that talks about elements.
1