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/)
-   -   The fl process could not be started (https://www.cfd-online.com/Forums/fluent-udf/234863-fl-process-could-not-started.html)

m.r.soufivand March 22, 2021 06:24

The fl process could not be started
 
Hi,

I am just a beginner with UDF. I trying to use the Source macro function to add a source term to mom. eq.! I compiled that without any warning or error and I setting up and initialized but when I start the calculation, following error was happen.
"The fl process could not be started"

My code is following:

#include "udf.h"
DEFINE_SOURCE(plasma_source,c,t,dS,eqn)
{
/* Declare Variables */
real xc[ND_ND];
real source, x, y;
real m1, m2, th;
real b_bottom, b_left, b_top, b_right;
real check_bottom, check_left, check_top, check_right;
/* Call x and y data from FLUENT */
C_CENTROID(xc,c,t);
x=xc[0];
y=xc[1];
/* Define plasma region. Four inequalities are used to define the rectangular plasma
region. */
m1=0.16364;
m2=-1;
th=0.0001;
b_bottom=0.0012;
b_left=-0.0525;
b_top=0.0021;
b_right=-0.047;
check_bottom=m1*(x-(b_left))+b_bottom;
check_left=(1/m2)*(y-(b_bottom))+(b_left);
check_top=m1*(x-((b_left)-th))+((b_bottom)+th);
check_right=(1/m2)*(y-(b_top))+(b_right);
/* Apply source term to region inside the four inequalities */
if ((y>=check_bottom)&&(x>=check_left)&&(y<=check_top )&&(x<=check_right))
{
source = 1000.0;
dS[eqn] = 0;
}
else
{
source = 0;
dS[eqn] = 0;
}
C_UDMI(c,t,0)=source;
return source;
}


Can anyone please suggest me what this is happening?

AlexanderZ March 23, 2021 01:57

Did you allocate memory location for udmi in Fluent GUI? (for C_UDMI(c,t,0)=source; )

m.r.soufivand March 23, 2021 02:55

Quote:

Originally Posted by AlexanderZ (Post 799565)
Did you allocate memory location for udmi in Fluent GUI? (for C_UDMI(c,t,0)=source; )

Thank you very much. As you said, the problem was here and after definition of UDMI, that was solved.


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