|
[Sponsors] |
May 21, 2014, 09:02 |
Fluid force in UDF
|
#1 |
New Member
Linh Tuan The Nguyen
Join Date: Nov 2012
Posts: 9
Rep Power: 14 |
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*/ } |
|
Tags |
udf and programming |
|
|
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 04:37 |
UDF for defining a body force in Singel ROtating Reference Frame | teymourj | Fluent UDF and Scheme Programming | 9 | August 18, 2016 16:33 |
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 |
Help: UDF of "particle body force" !!! | zhaoh | FLUENT | 3 | January 16, 2007 21:17 |