(app_amr_transfer)= # Conservative Transfer of Volume Fractions A mesh change redistributes cell averages at a fixed physical time. For an incompressible mixture with constant positive phase densities, transfer the phase volume fractions and mixture momentum density together: ```{math} :label: amr_coupled_state \vec{U}=(\alpha_1,\ldots,\alpha_M,m_x,m_y,m_z)^T \qquad \vec{m}=\rho\vec{u} \qquad \rho=\sum_{k=1}^{M}\rho_k\alpha_k ``` Here $M$ is the number of phases, including gas, $\rho_k$ is the intrinsic density of phase $k$, and $\rho$ is mixture density. The fractions satisfy $\alpha_k\geq0$ and $\sum_k\alpha_k=1$. Conserving each phase volume also conserves its mass because $\rho_k$ is constant. Velocity follows from $\vec{u}=\vec{m}/\rho$ after transfer. ## Refinement Let parent cell $P$ be partitioned into children $c$ with volumes $V_c$ and cell centers $\vec{x}_c$. Assume $\sum_cV_c=V_P$. Define the volume-weighted mean of the child centers and the unlimited linear increments by ```{math} :label: amr_child_increment \bar{\vec{x}}_P=\frac{\sum_cV_c\vec{x}_c}{V_P} \qquad \delta\vec{U}_c=\nabla\vec{U}_P\cdot(\vec{x}_c-\bar{\vec{x}}_P) ``` Use the same linear gradient operator for every component. The weighted displacements sum to zero, so each unlimited increment has zero integral: ```{math} :label: amr_conservation \sum_cV_c\delta\vec{U}_c=0 ``` Any modified gradient shared by all children retains this property. Exact reconstruction of linear cell averages additionally requires volume centroids and a linearly exact gradient. ## Phase Fractions A common factor $\theta_\alpha$ limits all phase gradients within a parent: ```{math} :label: amr_coupled_reconstruction \alpha_{k,c}=\alpha_{k,P}+\theta_\alpha\delta\alpha_{k,c} \qquad 0\leq\theta_\alpha\leq1 ``` Choose the largest common factor allowed by the phase bounds at the stencil and child locations. For a fraction with parent value $\alpha_P$, increment $\delta\alpha$, and neighborhood bounds $L\leq\alpha_P\leq H$, the factor satisfies ```{math} :label: amr_component_bound \theta_\alpha\leq \begin{cases} (H-\alpha_P)/\delta\alpha & \delta\alpha>0\\ (\alpha_P-L)/(-\delta\alpha) & \delta\alpha<0 \end{cases} ``` A zero increment adds no restriction. The minimum over these bounds and one limits all fractions together. Since the unlimited phase gradients sum to zero, the common factor preserves $\sum_k\alpha_{k,c}=1$. Equation {eq}`amr_conservation` also gives $\sum_cV_c\alpha_{k,c}=V_P\alpha_{k,P}$. A factor of zero gives parent injection. Limiting can reduce the reconstruction to first order near discontinuities. ## Momentum and Velocity The unlimited density increment and the limited child density are ```{math} \delta\rho_c=\sum_k\rho_k\delta\alpha_{k,c} \qquad \rho_c=\rho_P+\theta_\alpha\delta\rho_c ``` With $\vec{u}_P=\vec{m}_P/\rho_P$, define the relative momentum increment: ```{math} :label: amr_relative_momentum \vec{r}_c=\delta\vec{m}_c-\vec{u}_P\delta\rho_c ``` A second factor, $\theta_u$, is shared by all momentum components and children of a parent: ```{math} :label: amr_momentum_reconstruction \vec{m}_c=\rho_c\vec{u}_P+\theta_u\vec{r}_c \qquad 0\leq\theta_u\leq1 ``` The density and relative momentum increments have zero volume-weighted sums. Therefore ```{math} \sum_cV_c\vec{m}_c =\vec{u}_P\sum_cV_c\rho_c+\theta_u\sum_cV_c\vec{r}_c =V_P\vec{m}_P ``` Uniform velocity gives $\vec{r}_c=0$, so reconstruction preserves it. With both factors equal to one, the reconstruction recovers the unlimited linear momentum. A constant change of reference velocity leaves $\vec{r}_c$ unchanged. Let $u_j^{\min}$ and $u_j^{\max}$ be the parent-and-stencil bounds of velocity component $j$. For positive child density, choose the largest common $\theta_u$ satisfying ```{math} :label: amr_velocity_bounds \rho_c(u_j^{\min}-u_{j,P})\leq\theta_u r_{j,c} \leq\rho_c(u_j^{\max}-u_{j,P}) ``` These bounds are linear in $\theta_u$ and do not alter the phase limiter. ## Coarsening and Time History Coarsening uses volume-weighted averages of the same coupled state: ```{math} :label: amr_restriction \vec{U}_P=\frac{\sum_cV_c\vec{U}_c}{\sum_cV_c} ``` This convex average preserves valid fractions and momentum. Recovered velocity is mass weighted. Mass and momentum conservation do not imply conservation of resolved kinetic energy when velocity variations are merged. Each accepted state required by the time integrator is transferred separately.