The equations of patchwork.mesh.reflux, declared on the code that implements them and checked by the tests.
Matches the fluxes of coarse and fine levels at their interfaces (refluxing).
- balance
- ViΔtuin+1−uin=−f∈∂i∑AfFfnf,i,nf,i=±1
- register
- δf=fine steps∑fine faces∑sAF−sAcFc,s=Δt (default)
- reflux
- uc+=∓Vcδf(− for the face above the cell, + below), then restrict
- Assumes
- the fluxes are the caller's: flux densities along the axis, per block, from its own cells and halo
- coarse-fine faces are those between leaf cells of different levels: proper nesting is not needed
- the integral then changes only through the domain's faces, to round-off, in the plane and in (r,z)
- subcycling: a finer level takes r steps of Δt/r, then
reflux(level=); scale =Δt/2 per stage of Heun
- References
- Built from