Several cases estimate the integrated value of a field on
- a face, for instance the inlet or the outlet
- a volume, for instance to estimate the total flow rate in the domain
In case of stretching, the integration is often approximate :
|
ut1=ut1+(yp(j+1)-yp(j))*(ux2(1,j+1,k)-half*(ux2(1,j+1,k)-ux2(1,j,k))) |
It would be best to use the stretching (ppy) to integrate exactly fields :
|
ub = ub + ux(i,jloc,k) / ppy(j) |
It might be best to provide a dedicated module with subroutines to integrate fields on faces and volumes to avoid code duplication.