Export a local coordinate system

Alex.01
Alex.01 Altair Community Member
edited October 2020 in Community Q&A

Hi,

 

I have a little problem with exporting local coordinate systems. I need them to postprocess welds but I don't use them in the analysis, so I must assign at least one node to the system that I have created. I do it by using this menu:

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.2eacc2714fe911f84d1ffde243355736.png

 

Once I have assigned the nodes to the system (with 'set displacemente' button), I export the model and I get a piece of code from the exported file like this:

 

*TRANSFORM, TYPE=R, NSET=HM_auto_transform_14AA0
-4.463E-08, -0.9995139, 0.03117584,  -1.0      ,  1.4901E-08,  -9.537E-07
**HMORIENT ORIGIN  3.2       ,-1.324    ,-0.18998 

 

I was wondering if there is a way to export a local coordinate system with a NSET previously created in HyperMesh by using TCL. I know you can do this changing the button in HyperMesh (like I show in the image below), but when I try to do this with tcl commands, HM ignores it. Furthermore, in the command file this action is not recorded.

<?xml version="1.0" encoding="UTF-8"?>image.thumb.png.1de1681dd9a895d062319c60ab838007.png

 

I was trying with this:

 

set name [hm_getstring 'Name=' 'Please specify a name for the NSET.']

*createlistbypathpanel nodes 1 'Select nodes to create a weld'
set lista [hm_getlist nodes 1]
*clearlist nodes 1

*createentity sets name=$name ids={nodes $lista}

*createmark systems 1 'by collector id' [hm_info currentcollector systcol]
set sistema [hm_getmark systems 1]
*createmark sets 1 $name
*systemsetanalysis sets 1 $sistema

 

Can someone help me?

 

Answers

  • tinh
    tinh Altair Community Member
    edited March 2018

    The local system disappear when you view result by hyperview?

    Did you select *.fem file for 'load model'?

    Capture.PNG.d9cddf3af568db2fa0d4711e74d431d7.PNG

  • Alex.01
    Alex.01 Altair Community Member
    edited March 2018

    Sorry, I forgot to say that I am using Abaqus as solver, instead of Optistruct.

  • tinh
    tinh Altair Community Member
    edited March 2018

    Hi,

    please modify your code (as red color) and try again:

     

    set name [hm_getstring 'Name=' 'Please specify a name for the NSET.']

    *createlistbypathpanel nodes 1 'Select nodes to create a weld'
    set lista [hm_getlist nodes 1]
    *clearlist nodes 1

    *createentity sets name=$name ids='nodes $lista'

    *createmark systems 1 'by collector id' [hm_info currentcollector systcol]
    set sistema [hm_getmark systems 1];#this command may return more than 1 systemid to variable sistema, be careful!
    *createmark sets 1 $name
    *systemsetanalysis sets 1 $sistema