CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

how can give UDF for mass (m_dot=m0*cos(omega*t)) for Periodic BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2011, 10:21
Default how can give UDF for mass (m_dot=m0*cos(omega*t)) for Periodic BC
  #1
New Member
 
raj kumar saini's Avatar
 
Dr. Raj Kumar Saini
Join Date: Apr 2011
Location: Mumbai, India
Posts: 23
Rep Power: 15
raj kumar saini is on a distinguished road
Send a message via Skype™ to raj kumar saini
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))...​.
raj kumar saini is offline   Reply With Quote

Old   August 9, 2011, 11:44
Default
  #2
Member
 
pranab_jha's Avatar
 
Pranab N Jha
Join Date: Nov 2009
Location: Houston, TX
Posts: 86
Rep Power: 17
pranab_jha is on a distinguished road
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
pranab_jha is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
would someone give me a example of udf for 6DOF? conan FLUENT 3 January 24, 2011 22:10
UDF hook problem in command line mode. Benlong FLUENT 1 November 12, 2007 15:45
help on UDF (on_demand) Marc FLUENT 4 July 9, 2003 14:50
error of Interpreted udf Zhang Junmei FLUENT 6 December 12, 2001 09:03


All times are GMT -4. The time now is 20:14.