Ansys Learning Forum Forums Discuss Simulation LS Dyna Variable to refer to current time in user defined function Reply To: Variable to refer to current time in user defined function

Andreas Koutras
Ansys Employee
Hi Marc, check your function with a simple model. What happens to "shear" when time<200? The "time" variable works . Take a look at the sample function below. It will be much more challenging to implement a model in the umat package.
*DEFINE_FUNCTION
$#fidheading
99
$#function
float force(float slip,float leng, float *stiff)
{
float force;
if (time>5.e-4) {force=0.1;}
print(time);
print(force);
*stiff=100000.0;
return force;
}