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

Fluid force in UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 21, 2014, 08:02
Default Fluid force in UDF
  #1
New Member
 
Linh Tuan The Nguyen
Join Date: Nov 2012
Posts: 9
Rep Power: 4
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.

Thanks

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;
prop[SDOF_ZERO_TRANS_X] = TRUE;
prop[SDOF_ZERO_TRANS_Z] = TRUE;

prop[SDOF_ZERO_ROT_X] = TRUE;
prop[SDOF_ZERO_ROT_Y] = TRUE;
prop[SDOF_ZERO_ROT_Z] = TRUE;

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

Reply

Tags
udf and programming

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
UDF for force and equilibrium position elcino Fluent UDF and Scheme Programming 6 March 17, 2013 04:38
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
[URGENT] Drag Force UDF in Power-Law Fluid ali hemmati Fluent UDF and Scheme Programming 0 October 27, 2012 11:24
UDF for defining a body force in Singel ROtating Reference Frame teymourj FLUENT 2 July 28, 2011 17:45
Help: UDF of "particle body force" !!! zhaoh FLUENT 3 January 16, 2007 21:17


All times are GMT -4. The time now is 22:57.