CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Process xxxx: received signal SIGSEGV; The fl process could not be started (https://www.cfd-online.com/Forums/fluent/210611-process-xxxx-received-signal-sigsegv-fl-process-could-not-started.html)

Someeee October 31, 2018 04:26

Process xxxx: received signal SIGSEGV; The fl process could not be started
 
Hello. I am trying to simulate the dynamic movement of a valve in response to flow velocity. My UDF is as attached. However, after compiling the udf, when I run the simulation, I immediately received an error saying 'Process xxxx: received signal SIGSEGV; The fl process could not be started'. I have attached my code here. Any suggestions would be highly appreciated. Thanks in anticipation

Someeee October 31, 2018 04:32

My code is as follow:

#include "udf.h"
DEFINE_PROFILE(iv, thread, position)
{
face_t f;
float t = CURRENT_TIME;
begin_f_loop(f,thread)
{
F_PROFILE(f, thread, position)= 0.75*sin(8.491*t);
}
end_f_loop(f, thread)
}

DEFINE_CG_MOTION(valve1, dt, vel, omega, time, dtime)
{
float a = 0;
float b = 0;
float i = 0;
float M = 0;
float t = CURRENT_TIME;
Thread *t_object;
real CG[3],force[3],moment[3];
Domain *d;
d= Get_Domain(1);

while(t >=0.0 && t <= 0.8)
{
again:
Compute_Force_And_Moment (d,t_object,CG,force,moment,TRUE);
M = moment[0] + moment[1] + moment[2];
if ( (M/0.000000008)-b > 0.0005)
{
b = b + 0.01*((M/0.000000008)-b);
a = a + (b*0.0004);
omega[1] = omega[1] + a*0.0004;
goto again;
}
else
{
t = (i + 1)*0.0004;
}

}
}


All times are GMT -4. The time now is 03:45.