TCL Node selection

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

Hi,

 

I am trying to develop a macro on TCL, Could anyone help me give boundary condition as given in the picture which i have uploaded.

 

With the help of  the below macro i was able to select the nodes but i do not know how to create a set or place it in the boundary condition.

 

(Location :the boundary condition starts after line 106 in the editor )

 

hm_createmark nodes 1 'by box' '0 0 0 0.2 100 100 0 inside 1 1 0'

 

 

yours sincerely,

 

kartik kanugo

 

 

 

<?xml version="1.0" encoding="UTF-8"?>Capture.PNG

Unable to find an attachment - read this blog

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited December 2017

    Hello Kartik

     

    You can set the boundary condition to the nodes using commands such as *loadcreateonentity,  *loadcreateonentity_curve, so the final one will look like:

    *loadcreateonentity_curve nodes 1 3 1 0 0 0 0 0 0 0 0 0 0 0

     

    Kindly refer to below documentation for more details:

    http://www.altairhyperworks.com/hwhelp/Altair/2017/help/hm_ref_guide/topics/reference/hm/_loadcreateonentity.htm

    http://www.altairhyperworks.com/hwhelp/Altair/2017/help/hm_ref_guide/topics/reference/hm/_loadcreateonentity_curve.htm

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Hello Kartik

     

    You can set the boundary condition to the nodes using commands such as *loadcreateonentity,  *loadcreateonentity_curve, so the final one will look like:

    *loadcreateonentity_curve nodes 1 3 1 0 0 0 0 0 0 0 0 0 0 0

     

    Kindly refer to below documentation for more details:

    http://www.altairhyperworks.com/hwhelp/Altair/2017/help/hm_ref_guide/topics/reference/hm/_loadcreateonentity.htm

    http://www.altairhyperworks.com/hwhelp/Altair/2017/help/hm_ref_guide/topics/reference/hm/_loadcreateonentity_curve.htm

    Hi,

     

    I am getting the following error

     Tcl script error (Tcl/Tk Script) : 0                            
                  while executing                                                  
                  '*loadcreateonentity_curve nodes 1 3 1 0 0 0 0 0 0 0 0 0 0 0 '   
                  (file 'D:/RWTH/Mini thesis/V6/TCL V1/V1tcl.tcl' line 116)        
                  invoked from within                                              
                  'source {D:/RWTH/Mini thesis/V6/TCL V1/V1tcl.tcl}'               
                  ('uplevel' body line 1)                                          
                  invoked from within                                              
                  '# Compiled -- no source code available                          
                  error 'called a copy of a compiled script''                      
                  (procedure '::hw::RunTclTkScpt' line 1)                          
                  invoked from within                                              
                  '::hw::RunTclTkScpt 219'

     

    NODES have not been selected it shows

     

     

    I have written the code below 

    hm_createmark nodes 1 'by box' '0 0 0 0.2 100 100 0 inside 1 1 0'
    *createmark nodes 1 'by box' '0 0 0 0.2 100 100 0 inside 1 1 0'
    *loadcreateonentity_curve nodes 1 3 1 0 0 0 0 0 0 0 0 0 0 0
     
     
    out of the commands hm_createmark and createmark which is to be used .. also I am unable to create boundary conditions
     
    yours sincerely,
    kartik 
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

    Hi thank you my error is resolved

     

    yours sincerely

    kartik

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2017

     

    Hi thank you my error is resolved

     

    yours sincerely

    kartik

     

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.