Please look into the UDF documentation there are some examples how to define a profile.
Macro to use is DEFINE_PROFILE(name,thread,nv) and then the function would be over F_PROFILE through the face_centroids in the face thread. |
Quote:
|
here is an example, I guess you can just apply the profile on your boundary as a heat flux: http://www.cfd-online.com/Forums/flu...tml#post463127
|
Quote:
|
Quote:
I have written a udf for this but it is showing "segmentation fault". can you tell me where might be the problem ? Code:
#include "udf.h" |
try this code
Code:
#include "udf.h" |
Quote:
|
DEFINE_PROFILE macro is using to define user-defined boundary condition. You may use it anywhere.
to set this profile as BC for UDS go to boundary conditions-> select face you are interested in -> select UDS tab -> select specified value -> select this profile instead of "constant" best regards |
Quote:
it is working fine. but i have a doubt that the following expression is for heat flux, should i use specified flux instead of specified value? |
All times are GMT -4. The time now is 00:29. |