hexagon logo

Is there any way to set a variable for initial conditions of joints that have been applied motion in adams solver script (.acf)?

Here is the example of my simulation script.
I would like to set a variable for ICDISP.
 
MOTION/4,JOINT=14,TRANSLATION,VELOCITY,ICDISP=-25,FUNCTION=0
MOTION/3,JOINT=12,ROTATION,VELOCITY,ICDISP=2.532d,FUNCTION=0
SIM/KIN, END=2, STEPS=360
MOTION/4,JOINT=14,TRANSLATION,VELOCITY,ICDISP=-25,FUNCTION=0
MOTION/3,JOINT=12,ROTATION,VELOCITY,ICDISP=0d,FUNCTION=0
Parents
  • No, ACF, as well as ADM does not know about design variables (they are evaluated the moment you submit your simulation). And you can't reference a solver variable either.
     
    But what you are trying to do in your example above is to jump the rotational motion from 2.532° to 0° at t=2. That should cause a huge spike in all internal forces (looks like your model is kinematic constrained with 0 DOF so it might work).
    But you can as well define the motion in the model as a displacement function:
    FUN=IF(time-2:2.532d,0,0)
    and you don't have to change it in the acf at all. And here you can use design variables.
    Or use a little nicer function:
    FUN=STEP(time,1.99,2.532d,2.01,0d)
     
Reply
  • No, ACF, as well as ADM does not know about design variables (they are evaluated the moment you submit your simulation). And you can't reference a solver variable either.
     
    But what you are trying to do in your example above is to jump the rotational motion from 2.532° to 0° at t=2. That should cause a huge spike in all internal forces (looks like your model is kinematic constrained with 0 DOF so it might work).
    But you can as well define the motion in the model as a displacement function:
    FUN=IF(time-2:2.532d,0,0)
    and you don't have to change it in the acf at all. And here you can use design variables.
    Or use a little nicer function:
    FUN=STEP(time,1.99,2.532d,2.01,0d)
     
Children
No Data