CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Boundary condition to UDS (https://www.cfd-online.com/Forums/fluent/33840-boundary-condition-uds.html)

ramesh May 30, 2004 06:53

Boundary condition to UDS
 
hi, Iam giving outflow boundary condition for all flow variables at the exit. For User defined scalars at the exit, I want to give normal gradient is zero( which is different from the two options given in for UDS). For that i want to write a UDF. Can u tell me which Define macro can be used for this, if we can write UDF for defining BC for UDS. Please help me in this.

Thanks a lot

mehdi_a May 30, 2004 14:11

Re: Boundary condition to UDS
 
Hi ramesh vedula. I have a same problem.I want to set the derivative of velocity to zero at boundary.If you find this please help me. thanks.

Maryam-A September 20, 2015 12:56

I would appreciate if anyone can help me.
I wanted to return derivative of UDS as wall boundary value, but I face with "fatal signal" that I found this because of boundary condition UDS.:(
this is part of my udf for B.C of UDS( volume fraction of nanoparticle in my case)

DEFINE_PROFILE(alpha_bc1,thread,position)
{
Thread *t;
cell_t c;
.
.
.

begin_f_loop(f,thread)
{

C_UDSI_G(c,t,0)[0]=-(D_T/D_B)*C_T_G(c,t)[0];
F_PROFILE(f,thread,position)=C_UDSI_G(c,t,0)[0];
}
end_f_loop(f,t)
}

MayTheFlowBeWithYou June 22, 2017 06:13

Hi,

Did you ever manage to figure this out? I have a similar issue...


All times are GMT -4. The time now is 15:11.