<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.14">
  <compounddef id="ALE_Timestep" kind="page">
    <compoundname>ALE_Timestep</compoundname>
    <title>ALE Timestep</title>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
<sect1 id="ALE_Timestep_1section_ALE_remap">
<title>Explanation of ALE remapping</title>
<para>The Arbitrary Lagrangian-Eulerian (ALE) remapping is not a timestep in the traditional sense, but rather an operation performed to bring the vertical coordinate back to the target specification. This remapping can be less frequent than the momentum or thermodynamic timesteps, but must be done before the layer interfaces become entangled with each other.</para><para>Assuming the target vertical grid is level <formula id="11">$z$</formula>-surfaces, the initial state is shown on the left in the following figure:</para><para><image type="html" name="remapping1.png">The initial state with level surface (left) and the perturbed state after a wave has come through (right).</image>
<image type="latex" name="remapping1.png">The initial state with level surface (left) and the perturbed state after a wave has come through (right).</image>
 Some time later, a wave has perturbed the surfaces which move with the fluid and it has been determined that a remapping operation is needed. The target vertical grid is still level <formula id="11">$z$</formula>-surfaces, so this new target grid is shown overlaid on the left as regrid:</para><para><image type="html" name="remapping2.png">The regrid operation (left) and the remap operation (right).</image>
<image type="latex" name="remapping2.png">The regrid operation (left) and the remap operation (right).</image>
 The complex part of the operation is remapping the wavy field onto the new grid as shown on the right and again in the final frame after the old deformed coordinate system has been deleted:</para><para><image type="html" name="remapping3.png">The final state after remapping.</image>
<image type="latex" name="remapping3.png">The final state after remapping.</image>
 Mathematically, the new layer thicknesses, <formula id="12">$h_k$</formula>, are computed and then populated with the new velocities and tracers:</para><para><formula id="13">\[ h_k^{\mbox{new}} = \nabla_k z_{\mbox{coord}} \]</formula> <formula id="14">\[ \sum h_k^{\mbox{new}} = \sum h_k^{\mbox{old}} \]</formula> <formula id="15">\[ \vec{u}_k^{\mbox{new}} = \frac{1}{h_k} \int_{z_{k + \frac{1}{2}}}^{z_{k + \frac{1}{2}} + h_k} \vec{u}^{\mbox{old}}(z&apos;)dz&apos; \]</formula> <formula id="16">\[ \theta^{\mbox{new}} = \frac{1}{h_k} \int_{z_{k + \frac{1}{2}}}^{z_{k + \frac{1}{2}} + h_k} \theta^{\mbox{old}}(z&apos;)dz&apos; \]</formula> </para></sect1>
    </detaileddescription>
  </compounddef>
</doxygen>
