Jump to content
Sign in to follow this  
Bhavna

Jacobian check using macro

Recommended Posts

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?

post-33620-0-24254900-1430727743_thumb.p

Share this post


Link to post
Share on other sites
Guest

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.


Share this post


Link to post
Share on other sites
Guest

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:


 


post-889-0-75396200-1430732607_thumb.png

Share this post


Link to post
Share on other sites

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.


Share this post


Link to post
Share on other sites
13 hours ago, BeslyD said:

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...