CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Fluid force in UDF

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2014, 08:02
Default Fluid force in UDF
New Member
Linh Tuan The Nguyen
Join Date: Nov 2012
Posts: 9
Rep Power: 13
linh nguyen is on a distinguished road
Hi, I am doing the external flow around the cylinder free oscillating in y-direction, a system the cylinder in fluid flow attached with spring and damper.

I had used SDOF function in Fluent and obtained some results.

But in the function for prop[SDOF_LOAD_F_Y], i just included elastic force, I also want to integrate fluid force into the equation. Anybody know how to include fluid force into UDF.


DEFINE_SDOF_PROPERTIES(stage, prop,dt, time, dtime)
Thread *t;
Domain *d = Get_Domain(1);
real cg;
real vel;
real mass = 1.443;
real wn = 0.183;
real z = 0.0072;
real k = mass*wn*wn;
real c = 2*mass*wn*z;

int j;

prop[SDOF_MASS] = 1.443;


cg = DT_CG(dt)[1];
vel = DT_VEL_CG(dt)[1];

prop[SDOF_LOAD_F_Y] = - k*cg - vel*c; /*function to update force into fluent*/

linh nguyen is offline   Reply With Quote


udf and programming

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[URGENT] Drag Force UDF in Power-Law Fluid ali hemmati Fluent UDF and Scheme Programming 2 June 13, 2017 03:37
UDF for defining a body force in Singel ROtating Reference Frame teymourj Fluent UDF and Scheme Programming 9 August 18, 2016 15:33
UDF for force and equilibrium position elcino Fluent UDF and Scheme Programming 6 March 17, 2013 03:38
Water subcooled boiling Attesz CFX 7 January 5, 2013 03:32
Help: UDF of "particle body force" !!! zhaoh FLUENT 3 January 16, 2007 20:17

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