🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Jacobian check using macro

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hi all

I am very new to tcl and macro making and was trying to create a macro for checking the jacobian.

Using the help file from hypermesh desktop reference guide this is what i did:

 


(Documents) 72 % *createmark elems 1 'displayed'

(Documents) 72 % *createmark elems 2

(Documents) 74 % *elementtestjacobian (elements,1,0.7,2,2,0,'jacobain')

 

this gives an error of 'unknown entity type found'.

 

so i tried doing this:

 


(Documents) 72 % *createmark elems 1 'displayed'

(Documents) 72 % *createmark elems 2

(Documents) 73 % *elementtestjacobian (elements, $1 ,0.7, $2 ,2,0,'jacobain')

 

but this gave an error of 'can't read 2 no such variable found'.

 

I have done exactly what was mentioned in help file then why I am getting error?

<?xml version="1.0" encoding="UTF-8"?>post-33620-0-24254900-1430727743_thumb.p

Find more posts tagged with

Sort by:
1 - 6 of 61
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hi Bavana,

     

    Do you see 'xxx elements have selected' when you place the elements on the mark 1?

     

    Looks like the elements are not selected from the display.

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    It works no problem for me. 

    Here's my TCL script :


    *createmark elements 1 'displayed'
    *createmark elements 2
    *elementtestjacobian elements 1 0.7 2 2 1 '2D Element Jacobian'

    And I got the picture:

     

    <?xml version="1.0" encoding="UTF-8"?>post-889-0-75396200-1430732607_thumb.png

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Dear sir

    Thanks for the script you gave me. I guess the entire difference was of the brackets I was using which you didn't use. 

    The script is working perfect now.

    Thanks again.

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    Hi,

       How would I retrieve all the values in the check elems (warpage,aspect,skew, etc) in a variable

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi,

       How would I retrieve all the values in the check elems (warpage,aspect,skew, etc) in a variable

     

    Hi

    there is not direct command to return those values

    you can make a tcl script to append each value into the variable

    to retrieve each value, using hm_getentityvalue

    or you can make a template to write them to a file, and read it into the variable

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

     Hi,

     

       You can use [hm_get2delemchecktestval warpage2d] to get the values.