CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

UDF for time-dependent velocity polynomial using VOF model

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

Like Tree1Likes
  • 1 Post By rahaman

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2009, 07:40
Default UDF for time-dependent velocity polynomial using VOF model
  #1
New Member
 
Rahaman Md. Mashiur
Join Date: Apr 2009
Posts: 4
Rep Power: 7
rahaman is on a distinguished road
For 2D water entry problem with VOF model I want to input the following inlet velocity polynomial

v(t)=2.436+3.82t+326.3t2-7255t3+39381t4
0.0<=t<=0.08
I worte the following UDF but it is not working , if possible please help me. I am beginner in writing UDF
#include"udf.h"
DEFINE_PROFILE(unsteady_velocity, thread, position)
{
face_t f;
real t=RP_Get_Real("flow-time")
begin_f_loop(f,thread)
{
F_PROFILE(f,thread,position)=2.436+3.82 *t+ 326.3*pow(t,2)-7255*pow(t,3)+39381*pow(t,4);
}
end_f_loop(f,thread)
}

Thank you very much
lazregenset likes this.
rahaman is offline   Reply With Quote

Old   October 26, 2009, 08:23
Default
  #2
Member
 
Krishna
Join Date: Oct 2009
Posts: 34
Rep Power: 7
t.krishnamohan is on a distinguished road
Can you tell about the error you are getting
t.krishnamohan is offline   Reply With Quote

Old   October 26, 2009, 10:14
Default
  #3
New Member
 
Rahaman Md. Mashiur
Join Date: Apr 2009
Posts: 4
Rep Power: 7
rahaman is on a distinguished road
thank you very much for your reply. actually it does not give any error when i compile it but i am not sure is it ok for my simulation case or not. Do u know what type of boundary condition to need to use for flow separation from sharp corner in case of inviscid model in FLUENT?

Thank you once again for your reply.
rahaman is offline   Reply With Quote

Old   July 17, 2014, 09:51
Default hi im soory .have guive mi your tim
  #4
New Member
 
lazreg
Join Date: Jul 2014
Posts: 9
Rep Power: 2
lazregenset is on a distinguished road
how to calcul A1.A2.A3....
http://jullio.pe.kr/fluent6.1/help/html/ug/node282.htm

im in th big pb .halp me soory and thanks
lazregenset 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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 17 August 22, 2009 03:59
Phase velocity in VOF model UDF baechtel Fluent UDF and Scheme Programming 0 June 15, 2009 21:25
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
help; UDF of VOF model Jay FLUENT 1 March 5, 2005 01:00
UDF for ellipse shape volume patch in VOF model nazeem FLUENT 1 October 8, 2004 11:22


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