Hi,
I am trying to simulate flow over a stationary square prism with the convective boundary condition (CBC) at the outlet of the domain. The convective boundary condition is given by:
(∂u/∂t) + U∞(∂u/∂x) = 0
Since there is no in-built CBC in Fluent, I had to write a user-defined function (UDF) in C language.
I am able to interpret and hook the function to the velocity inlet that I choose for the outlet. (This is because for the discretised CBC I need to specify velocity as a function of time step and the velocity values at previous time steps)
When I initialize the solution in Fluent I get the error:
"received a fatal signal (segmentation fault).
Can anybody help me on this? I am attaching my source code.
Thanks,
Karthikeyan