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
added post-processing label
requested review from @mark
assigned to @andy
added 1 commit
- 8bf4f486 - ENH: Tensor: add devTwoSymm function to avoid intermediates
added 1 commit
- 36f84b9b - ENH: Tensor: add devSymm and devTwoSymm funcs to avoid intermediates
added 55 commits
-
36f84b9b...09ce8713 - 53 commits from branch
develop
- 8ba8c087 - ENH: forces: avoid redundant volumetric operations
- a66bc0ed - ENH: Tensor: add devSymm and devTwoSymm funcs to avoid intermediates
-
36f84b9b...09ce8713 - 53 commits from branch
added 39 commits
-
a66bc0ed...e9160673 - 37 commits from branch
develop
- a3f8b683 - ENH: forces: avoid redundant volumetric operations
- 052b5eeb - ENH: Tensor: add devSymm and devTwoSymm funcs to avoid intermediates
-
a66bc0ed...e9160673 - 37 commits from branch
added 8 commits
-
052b5eeb...fe50b745 - 6 commits from branch
develop
- f98ecb38 - ENH: forces: avoid redundant volumetric operations
- 59b1cf08 - ENH: Tensor/SymmTensor: add devSymm and devTwoSymm funcs to avoid intermediates
-
052b5eeb...fe50b745 - 6 commits from branch
mentioned in commit 5aeb02e2
Please register or sign in to reply