version 0.6.0
mod_lsm_compute_ugradphi Module Reference

Computation of the advection term.

Functions/Subroutines

subroutine compute_ugradphi_weno5 (phi, velocity, time_step, ugradphi, band)
 Compute the \( \mathb{u} \cdot \nabla \phi \) term with a WENO5 scheme. More...
 

Function/Subroutine Documentation

◆ compute_ugradphi_weno5()

subroutine mod_lsm_compute_ugradphi::compute_ugradphi_weno5 ( double precision, dimension(nx,ny,nz), intent(in)  phi,
type(t_face_field), intent(in)  velocity,
double precision, intent(in)  time_step,
double precision, dimension(nx,ny,nz), intent(inout)  ugradphi,
integer, dimension(nx,ny,nz), intent(in)  band 
)
Parameters
[in]phithe level set
[in]velocitythe velocity field on faces
[in,out]ugradphithe resulting field
[in]bandthe band (integers)
[in]time_stepthe time step (unused, but might be used for high-order fluxes)
Note
A high-order (WENO5) scheme is used inside the close band (band(i,j,k)={1,2}). A first order scheme is used outside (band/={1,2}).