CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Temperature dependent on one phase problem. (https://www.cfd-online.com/Forums/fluent-udf/172140-temperature-dependent-one-phase-problem.html)

Apiano May 24, 2016 13:38

Temperature dependent on one phase problem.
 
Hi guys...

I am trying to fix the temperature of one phase of the mixture with this compiled UDF. However there is a segmentation fault when I use C_VOF that I really do not understand. My case has a solid domain and a fluid domain. Can anyone give me some light? Thanks.


#include "udf.h"

DEFINE_PROFILE(fixed_temp,t,i)
{
cell_t c;
real temp;
begin_c_loop(c,t)
{
temp = 300.*C_VOF(c,t);
C_T(c,t) = temp;
}
end_c_loop(c,t)
}


All times are GMT -4. The time now is 01:21.