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

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

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 30, 2011, 09: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
 
Raj K Saini
Join Date: Apr 2011
Location: Mumbai, India
Posts: 10
Rep Power: 7
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, 10:44
Default
  #2
Member
 
pranab_jha's Avatar
 
Pranab N Jha
Join Date: Nov 2009
Location: Houston, TX
Posts: 86
Rep Power: 9
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
would someone give me a example of udf for 6DOF? conan FLUENT 3 January 24, 2011 22:10
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
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 13:50
error of Interpreted udf Zhang Junmei FLUENT 6 December 12, 2001 09:03


All times are GMT -4. The time now is 08:29.