TCL Node selection
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
Answers
-
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:
0 -
Altair Forum User said:
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:
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 0out of the commands hm_createmark and createmark which is to be used .. also I am unable to create boundary conditionsyours sincerely,kartik0 -
Hi thank you my error is resolved
yours sincerely
kartik
0 -
Hi thank you my error is resolved
yours sincerely
kartik
0