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/)
-   -   how can give UDF for mass (m_dot=m0*cos(omega*t)) for Periodic BC (https://www.cfd-online.com/Forums/fluent-udf/91087-how-can-give-udf-mass-m_dot-m0-cos-omega-t-periodic-bc.html)

raj kumar saini July 30, 2011 09:21

how can give UDF for mass (m_dot=m0*cos(omega*t)) for Periodic BC
 
hello guys !!! do u have any Idea how is it work periodic boundary condition in fluent when we choses UDF for mass (m_dot=m0*cos(omega*t))...​.

pranab_jha August 9, 2011 10:44

DEFINE_PROFILE(pressure,thread,index)
{
real m_dot
real m0 = 5.0 (some value)
real omega
real t=CURRENT_TIME
face_t f;

m_dot = m0*cos(omega*t);
begin_f_loop(f,thread){F_PROFILE(f,thread,index) = m_dot;}end_f_loop(f,thread)
}

Apply this on your pressure boundary. Should work. Read through the UDF manual for fluent. It helps.
http://my.fit.edu/itresources/manual...help/index.htm


All times are GMT -4. The time now is 23:12.