m_timestep.py

m_timestep.Output_Timing(step, step_output, t, time_output)

Determines whether to save the data in the current time step.

Parameters:
  • step – order number of the current step in the time loop (increases by 1 with every time step)

  • step_output – order number of the output (increases by 1 with every output)

  • t – time

  • time_output – list of time values at which the data will be saved.

Returns:

True or False and an updated value of the step_output parameter.

m_timestep.time_step(mesh, v, v_mesh, H_max, composition, Temp, unit_scalar, t)

Determines the length of the next time step \(\Delta t\).

Parameters:
  • mesh – computational mesh

  • v – material velocity (\(v\))

  • v_mesh – mesh displacement velocity (\(v_{mesh}\))

  • H_max – peak tidal heating

  • composition – material composition

Returns:

ahoj