Negative point load

Moderator: GiD Team

Post Reply
AlbertGil_
Posts: 1
Joined: Tue Mar 13, 2018 2:27 pm

Negative point load

Post by AlbertGil_ »

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!
User avatar
escolano
Posts: 1918
Joined: Sun Sep 05, 1982 10:51 pm

Re: Negative point load

Post by escolano »

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
Post Reply