How to assign loads using TCL in a loop
Posted: Mon Jun 12, 2017 3:50 pm
I am trying to assign a varying condition to GiD model using a loop. Inside the loop is the following:
The problem is when the loop is done I find that the loads have all been assigned: instead of getting replaced.
Also in the output .dat file I am not seeing the correct loading information.
What am I doing wrong here?
Code: Select all
set loadvalues {1.0 100.0 1000.0 100000.0}
for {set i 0} {$i<[llength $loadvalues]} {incr i} {
GiD_Process Mescape Data Materials AssignMaterial "Dry MC" Volumes 1 2 escape
GiD_AccessValue set condition Solid_Traction y-direction -$currentload
}
Also in the output .dat file I am not seeing the correct loading information.
What am I doing wrong here?