ENH: forces: avoid redundant volumetric operations
Problem
It has been observed that employing the forces
and forceCoeffs
function objects in several simulations causes a slowdown ranging from 2 to 10%.
The culprits found were:
- Calculation of velocity gradient
- Redundant calculations performed for various internal fields
Solution
- It is recommended to cache 'grad(U)' whenever using
forces
andforcesCoeffs
function objects. - The recent commits have eliminated unnecessary computations for the internal field of
devRhoReff
.
Meta-data
- EP2065
-
linux64ClangDPInt32Opt
(clang13) -
linux64GccDPInt32Opt
-
linux64GccSPDPInt64Debug
-
Alltest: No new error/No change in existing output -
No output change in all operating conditions (e.g. direct force intensity, porosity, compressible flows etc.)
Edited by Kutalmış Berçin
Merge request reports
Activity
Filter activity
Please register or sign in to reply