Hi everyone, I'm currently going through some source code someone else has written and I came across this:
Code: Select all
! Boundary condition pointers for gradients and advection
call field_get_coefa_s(ivarfl(ivar), coefap)
call field_get_coefb_s(ivarfl(ivar), coefbp)
! Boundary condition pointers for diffusion
call field_get_coefaf_s(ivarfl(ivar), cofafp)
call field_get_coefbf_s(ivarfl(ivar), cofbfp)
I wanted to know what these subroutines do, but the documentation mentions "Return pointer to the coefa/coefb/coefaf/coefbf array of a given scalar field.", and I have no idea what these arrays are. What I can glean from the rest of the code is that they are coefficients related to boundary fluxes, but I do not know what they are or how they are calculated.
Would appreciate if anyone knows more about this. Thank you!