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

dynamic mesh for flow induced vibration on circular cylinder....

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2012, 03:58
Question dynamic mesh for flow induced vibration on circular cylinder....
  #1
New Member
 
rishitosh's Avatar
 
Rishitosh Ranjan
Join Date: Dec 2012
Location: Trichirapalli, Tamilnadu, India
Posts: 22
Rep Power: 14
rishitosh is on a distinguished road
hii...

i m working on flow induced vibration (due vortex shedding) on circular cylinder...
for dis, i need udf for dynamic meshing....
following udf i m using:

# include "udf.h"
# include "dynamesh_tools.h"


static real v_prev = 0.0;


DEFINE_CG_MOTION(osc,dt,vel,omega,time,dtime)

{

Thread *t;
Domain *d = Get_Domain(6);

real x_cg[3], force[3], moment[3];

real accl, dv;

real mass = 0.2;

real wn = 12.0;

real k= mass * wn*wn;

real c = 2*mass*wn*0.00;

int i;


NV_S(vel, =, 0.0);

NV_S(omega, =, 0.0);

t = DT_THREAD(dt);

for(i=0;i<3;i++)

x_cg[i]=DT_CG(dt)[i];


Compute_Force_And_Moment (d, t, x_cg, force, moment, TRUE);

force[1] += -k*x_cg[1] - c*vel[1];


accl = force[1]/mass;
dv = accl*dtime;

v_prev+=dv;
vel[1] = v_prev;

printf("Computed force: %g \n", force[1]);

printf("Velocity: %g\n", vel[1]);

}



DEFINE_CG_MOTION(osc_inert,dt,vel,omega,time,dtime )

{

vel[0] = 0.0;

vel[1] = v_prev;

}



but while compiling following error is being seen...

>>>>motion.obj : error LNK2019: unresolved external symbol

__imp__Compute_Force_And_Moment referenced in function _osc

>>>>motion.obj : error LNK2019: unresolved external symbol __imp__Get_Domain

referenced in function _osc
libudf.dll : fatal error LNK1120: 2 unresolved externals

wht may be d error in udf..?? i m not getting....

-Rishi
rishitosh is offline   Reply With Quote

Old   December 9, 2012, 04:09
Default
  #2
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Please post in the correct forum, this is the main section, not the fluent section!
cfdnewbie 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
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52
Dynamic Mesh moving interface help akash.iitb FLUENT 0 August 24, 2010 00:53
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 10:38


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