Subroutine to define the pocket geometry
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(FE_FILM), | intent(inout) | :: | fe_f | |||
real(kind=R8), | intent(in) | :: | lx |
subroutine modify_h_pocket(fe_f, lx)
implicit none
type(FE_FILM), intent(inout) :: fe_f
real(kind=R8), intent(in) :: lx
integer(kind=I4) :: e, i
logical(kind=I4) :: groove
fe_f%vn(:,H2_N) = fe_f%data_f%h_0
fe_f%vn(:,H1_N) = 0._R8
do e = 1, fe_f%m%ne
groove = .true.
do i = 1, 4
if (fe_f%m%x(fe_f%m%con(e,i)) > (lx / 2._R8)) groove = .false.
enddo
if (groove) then
fe_f%vc(e, HG_C) = fe_f%data_f%h_g
endif
enddo
fe_f%vn(:, H_N) = fe_f%vn(:, H2_N) - fe_f%vn(:, H1_N)
return
endsubroutine modify_h_pocket