Simulation time

Submitted by prasadbraj on Sat, 07/08/2023 - 18:00

Hallo,

as i am beginner to the LIGGGHTS. Therefore, I have a basic question regarding simulation time.

I am trying to compute the contact force acting the container wall. The container is under harmonic motion (Wiggle) and is partially filled with steel spherical particles.

If i set the following variable for time step:

variable dt equal 1e-5
variable settle_time equal 0.2
variable set_time equal 0.6
variable settle_steps equal ${ins_time}/${dt}
variable set_steps equal ${set_time}/${dt}
variable dumptime equal 0.010
variable dumpstep equal ${dumptime}/${dt}
variable time equal step*${dt}

Now, I wanna compute the time of simulation in which box is under dynamic load (Wiggle), which i can compute if i know the value of step. However, I am not able to find the value of step. Therefore, can anyone please help me how i can find the simulation time?

Thank you
Braj

blueguy | Wed, 08/16/2023 - 18:01

variable dt_ equal 0.00001
timestep ${dt_}

variable step_now equal step
variable time_now equal step*v_dt_

fix print_time all print 100 "current step, dt, time = ${step_now}, ${dt_}, ${time_now}" screen yes

====

current step, dt, time = 100, 1e-05, 0.001
current step, dt, time = 200, 1e-05, 0.002
current step, dt, time = 300, 1e-05, 0.003
current step, dt, time = 400, 1e-05, 0.004
current step, dt, time = 500, 1e-05, 0.005
current step, dt, time = 600, 1e-05, 0.006
current step, dt, time = 700, 1e-05, 0.007
current step, dt, time = 800, 1e-05, 0.008
current step, dt, time = 900, 1e-05, 0.009
current step, dt, time = 1000, 1e-05, 0.01