Thanks in advance
Matt
Code: Select all
subroutine TKE_advection
double precision, dimension(:),pointer :: pvar
double precision, dimension(3,ncelet) :: TKE_grad
double precision, dimension(nfabor) :: coefap, coefbp
integer :: fid,imrgra,inc,recompute_cocg,nswrgp,imligp,iwarnp,i
double precision :: epsrgp, climgp, extrap
call field_get_val_s_by_name("TKE",pvar)
fid=-1
imrgra=0 !Gradient calculation mode: use iterative process
inc=1 ! Do not increment
recompute_cocg=0 ! Do not recompute COCG
nswrgp=2 ! Number of sweeps for reconstruction
imligp=-1 !No gradient limitation method
iwarnp=0 ! No verbosity
epsrgp=1.d-6 !Relative precision
climgp=0.d0 !limiter coefficient for imligp: not required
extrap=0.d0 !Gradient extrapolation coefficient: not required
coefap=0.d0 !Boundary coefficient: No gradient
coefbp=1.d0 !Boundary coefficent: dirichlet coefficent
call gradient_s(fid,imrgra,inc,recompute_cocg,nswrgp,imligp,iwarnp,epsrgp,climgp,extrap,&
pvar,coefap,coefbp,TKE_grad)
end subroutine TKE_advection