The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Hello Everyone,
How can i get the CID of element using TCL command? As shown is above fig element with id 761293 is having CID 10001. Please help me to get that CID using TCL command.
Regards,
Sanket Patil
Hello everyone, I was referring the datanames from the hypermesh reference guide, but dataname \$CBCID was not given there. where can i find these other datanames? Please share the path for it. it will help me a lot. Regards, Sanket
Hello everyone,
I was referring the datanames from the hypermesh reference guide, but dataname \$CBCID was not given there. where can i find these other datanames? Please share the path for it. it will help me a lot.
Sanket
Hi,
datanames section will describe only the general datanames valid for all solvers.
For solver specific datanames, there are these "codes" that you can request. You can either call them by these names or their ID_codes.
For getting these, I usually run this script from the installation, and select the entity that i want to check what datanames are available, and it shows a list of them.
"D:\Program Files\Altair\2020.1\hwdesktop\hm\examples\scripts\entity_attribute_table.tcl"
In the example below, for OptiStruct you could retrieve the element angle by using the dataname=\$THETA
Can you share a small HM model with CBUSH elements (and CID data) ?
ok
Here's my solution to try:
1. Create a file "cbush.tpl" with following code:
*codename(nastran,1) *defineattribute(CBCID,838,entity,none) *elements(21,6,"CBUSH","") *sortelements(byid) *format() *string("CBUSH ") *fieldright(integer,id,0) *string(" ") *fieldright(integer,node1.id,0) *string(" ") *fieldright(integer,node2.id,0) *string(" ") *fieldright(integer,$CBCID,0) *end() *output()
2. Create a script "cbush.tcl" with following code (define your path!):
set tpl {C:/Users/toto/cbush.tpl} set output {C:/Users/toto/cbush.txt} *usercheck $tpl $output 0
3. Run script "cbush.tcl" from open session of your model to get "cbush.txt"
CBUSH 761293 532712 526424 10001 CBUSH 761294 532713 527449 10001 CBUSH 761295 532714 525353 10001 CBUSH 761296 532715 527895 10001 CBUSH 761297 532880 527908 10001 CBUSH 761298 532881 527934 10001 CBUSH 761299 532882 527916 10001 CBUSH 761300 532883 527884 10001 CBUSH 761301 532913 527930 10001 CBUSH 761302 532918 527527 10001 CBUSH 761303 532919 530197 10001 CBUSH 761304 533022 529974 10001 CBUSH 761305 533032 530946 10001 CBUSH 761306 533035 530939 10001 ...
Tell me if that helps you?
1Hi @sanket_patil
You could use the following command:
hm_getvalue elems id=761293 dataname=\$CBCID
Here's my solution to try: 1. Create a file "cbush.tpl" with following code: *codename(nastran,1) *defineattribute(CBCID,838,entity,none) *elements(21,6,"CBUSH","") *sortelements(byid) *format() *string("CBUSH ") *fieldright(integer,id,0) *string(" ") *fieldright(integer,node1.id,0) *string(" ") *fieldright(integer,node2.id,0) *string(" ") *fieldright(integer,$CBCID,0) *end() *output() 2. Create a script "cbush.tcl" with following code (define your path!): set tpl {C:/Users/toto/cbush.tpl} set output {C:/Users/toto/cbush.txt} *usercheck $tpl $output 0 3. Run script "cbush.tcl" from open session of your model to get "cbush.txt" CBUSH 761293 532712 526424 10001 CBUSH 761294 532713 527449 10001 CBUSH 761295 532714 525353 10001 CBUSH 761296 532715 527895 10001 CBUSH 761297 532880 527908 10001 CBUSH 761298 532881 527934 10001 CBUSH 761299 532882 527916 10001 CBUSH 761300 532883 527884 10001 CBUSH 761301 532913 527930 10001 CBUSH 761302 532918 527527 10001 CBUSH 761303 532919 530197 10001 CBUSH 761304 533022 529974 10001 CBUSH 761305 533032 530946 10001 CBUSH 761306 533035 530939 10001 ... Tell me if that helps you?
Hello,
Yes this is working good Thank you so much for the help..!!!
1Hi @sanket_patil You could use the following command: hm_getvalue elems id=761293 dataname=\$CBCID
Thank you so much for help
Hello, Yes this is working good Thank you so much for the help..!!! Regards, Sanket
Please Mark as Correct answer if it helps you.
Hi, datanames section will describe only the general datanames valid for all solvers. For solver specific datanames, there are these "codes" that you can request. You can either call them by these names or their ID_codes. For getting these, I usually run this script from the installation, and select the entity that i want to check what datanames are available, and it shows a list of them. "D:\Program Files\Altair\2020.1\hwdesktop\hm\examples\scripts\entity_attribute_table.tcl" In the example below, for OptiStruct you could retrieve the element angle by using the dataname=\$THETA
Thank you so much. This is a big help for me
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…