Regarding TCL programming for updating Material Properties?

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello Friends,

 

As I am new in .tcl programming. I have found how can I filled up E, Nu and Rho and A in material Properties with .tcl programming. But I have to active Mat4 Card inside mat1.

How can I activate Mat4 Card inside mat1 with .tcl programming. Because I have 210000 elements which I have to Change.

So only with the help of .tcl it will be easy.

I want to fill up value of Heat Transfer Coeff inside the Mat4.

 

Please give me steps of .tcl

 

Thanks you

Answers

  • QuyNguyenDai
    QuyNguyenDai Altair Community Member
    edited January 2017

    Try this code:

     # MAT4 data set mat4_k 1.1 set mat4_cp 2.2 set mat4_rho 7.8E-09 set mat4_h 3.3 set mat4_hgen 4.4 set mat4_name 'My_Material_4'  eval *createentity mats cardimage=MAT4 name=$mat4_name set mid [hm_latestentityid mats] eval *setvalue mats id=$mid STATUS=1 265=$mat4_k 194=$mat4_cp 324=$mat4_rho 325=$mat4_h 329=$mat4_hgen

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited January 2017

    Thank you...