-
Hello, I want to calculate and print drag and wall heat flux on a boundary. The ktauChannel example shows how to calculate drag. I started building a function in udf file which may be called in the UDF_ExecuteStep. I understand that I can compute the temperature gradient with the gradientVolumeKernel. But I am unsure how to find boundary-normal value and integrate it on the boundary. Function in udf file:
Any suggestions how to calculate boundary-normal gradient and integrate? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, You can follow the nekRS/src/plugins/velRecycling.cpp Lines 73 to 94 in 4f87e0e Or, I have an example of computing heat flux here: |
Beta Was this translation helpful? Give feedback.
Hi,
You can follow the
velRecycling
plugin that compute the velocity flux:nekRS/src/plugins/velRecycling.cpp
Lines 73 to 94 in 4f87e0e