Hello,
I want to define a negative point-load condition using a checkbox. Right now I have this:
QUESTION: X-eixos_GiD([0,1,0]_eixos_LEAM)#CB#(1,0)
VALUE: 0
QUESTION: Y-eixos_GiD([0,0,-1]_eixos_LEAM)#CB#(1,0)
VALUE: 0
Question: Z-eixos_GiD([-1,0,0]_eixos_LEAM)#CB#(1,0)
Value: 0
And, when I check the axes where I want the force, the calculation file shows a positive load on that point (e.g. " 218 0 1 0").
However, we want the load applied to axes Y and Z to be negative (i.e. "218 0 -1 0"). I have tried this code: "QUESTION: Y-eixos_GiD([0,0,-1]_eixos_LEAM)#CB#(-1,0) VALUE: 0", but then I got a droplist where we can choose between 0 and -1, I do not got a checkbox.
Even that this solution is ok, I would like to know if there's any way to create the negative point load using a checkbox (force=-1 when checked, force=0 when not checked).
Thanks for your help!
Negative point load
Moderator: GiD Team
Re: Negative point load
In the .bas template file that writhe the output file you can check the value and print what you want
e.g. it these question are written in the .prb general data
*if(GenData(X-eixos_GiD))
0
*else
-1
*endif
e.g. it these question are written in the .prb general data
*if(GenData(X-eixos_GiD))
0
*else
-1
*endif