Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a dedicated subroutine to evaluate the integrated value of a field #288

Open
mathrack opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mathrack
Copy link
Contributor

mathrack commented Sep 4, 2024

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.

@mathrack mathrack added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant