CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

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

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

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

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;



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);



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;

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....

rishitosh is offline   Reply With Quote

Old   December 9, 2012, 04:09
Senior Member
Join Date: Mar 2010
Posts: 557
Rep Power: 11
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


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
Layers:problem with curvature giulio.topazio OpenFOAM Native Meshers: snappyHexMesh and Others 10 August 22, 2012 09:03
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
Dynamic Mesh moving interface help akash.iitb FLUENT 0 August 23, 2010 23: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 09:38

All times are GMT -4. The time now is 10:55.