field_set_x_face Subroutine

public subroutine field_set_x_face(f, c_start, c_end, bc_start, bc_end, flow_rate_diff, n_f, nx, ny, nz, n_yb_pad)

Sets the x faces: a Dirichlet value c_start at the inlet (pencil index 1) and the convective outflow du/dt + Uc*du/dx = 0, Uc = c_end, at the outlet (pencil index nx). BC_NEUMANN (1) leaves a face untouched.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout) :: f(SZ,n_f,n_yb_pad*nz)
real(kind=dp), intent(in) :: c_start
real(kind=dp), intent(in) :: c_end
integer, intent(in) :: bc_start
integer, intent(in) :: bc_end
real(kind=dp), intent(in) :: flow_rate_diff
integer, intent(in) :: n_f
integer, intent(in) :: nx
integer, intent(in) :: ny
integer, intent(in) :: nz
integer, intent(in) :: n_yb_pad