September 13, 2021 at 1:38 pm

ritwik

Subscriber

when i tried to compile the udf

The udf is:

#include "udf.h"

int ads;

real C1;

/*Adsorption*/

DEFINE_ADJUST(adsorption,domain){

Thread*t; cell_t c; real E,A,P;

thread_loop_c(t,domain){

begin_c_loop (c,t){

real tem=C_T(c,t);

P=C_P(c,t)+RP_Get_Real("operating-pressure");

E=3080+18,9*tem;

A=8,31429*tem*log(1.47E9/P);

C_UDSI(c,t,0)=71.6*exp(-A*A/(E*E));

C1 = C_UDSI(c,t,0);}

end_c_loop(c,t)}

}

/*Mass source term*/

DEFINE_ADJUST(q_ads, domain)

{

Thread *t;cell_t c; real dt;

thread_loop_c(t,domain){

begin_c_loop(c,t){

dt = RP_Get_Real("physical-time-step")

C_UDSI(c,t,0)=C_UDSI(c,t,0)

+0,15*dt*(C1-C_UDSI(c,t,0));}

end_c_loop(c,t);}

this error is showing.

Can you please help me? What is this error meant?

The udf is:

#include "udf.h"

int ads;

real C1;

/*Adsorption*/

DEFINE_ADJUST(adsorption,domain){

Thread*t; cell_t c; real E,A,P;

thread_loop_c(t,domain){

begin_c_loop (c,t){

real tem=C_T(c,t);

P=C_P(c,t)+RP_Get_Real("operating-pressure");

E=3080+18,9*tem;

A=8,31429*tem*log(1.47E9/P);

C_UDSI(c,t,0)=71.6*exp(-A*A/(E*E));

C1 = C_UDSI(c,t,0);}

end_c_loop(c,t)}

}

/*Mass source term*/

DEFINE_ADJUST(q_ads, domain)

{

Thread *t;cell_t c; real dt;

thread_loop_c(t,domain){

begin_c_loop(c,t){

dt = RP_Get_Real("physical-time-step")

C_UDSI(c,t,0)=C_UDSI(c,t,0)

+0,15*dt*(C1-C_UDSI(c,t,0));}

end_c_loop(c,t);}

this error is showing.

Can you please help me? What is this error meant?