Dear Community,
I am trying to compute the flux of scalar through the outlet boundary of my computational domain, and output it to a file at every time step.
The outlet boundary is perpenducular to the unit vector in x direction.
The integral I need to compute is the surface integral of "phi * vx", over the outlet surface. Where vx is the x velocity component and phi the scalar.
It would be much appreciated if someone could give me an idea on how to proceed.
I think this can be done using the surface_int( ) subroutine, however I could not find much information about it, and only 1 example ("expansion") from which I would like to ask a question:
Why do we need the lines that do "glsum"? I thought that with that loop over nelv and ndim we are already summing all the elements. Am I wrong?
Furthermore, how do I deal with my case in which the velocity component is in the velocity mesh while the scalar is in the temperataure mesh?
Thank you very much in advance for your time reading my message.
Sincerely,
Pau Fradera-Soler