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

UDF for time-dependent velocity polynomial using VOF model

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By rahaman

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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: 17
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: 17
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, 10:51
Default hi im soory .have guive mi your tim
  #4
New Member
 
lazreg
Join Date: Jul 2014
Posts: 9
Rep Power: 12
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

Old   August 29, 2018, 08:56
Default How to write UDF for defining the fluid properties???
  #5
New Member
 
Devanarayanan
Join Date: Aug 2018
Posts: 3
Rep Power: 8
DevanK is on a distinguished road
I have set of polynomial equations which defines the water properties like density, thermal conductivity,dynamic viscosity, specific heat capacity and i want to write UDF for my research work. kindly explain me with example.


Linkhttps://syeilendrapramuditya.wordpre...ic-properties/)
DevanK 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
Phase velocity in VOF model UDF baechtel Fluent UDF and Scheme Programming 2 August 4, 2019 12:17
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02: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 12:22


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