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

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

 December 9, 2012, 05:11 dynamic mesh for flow induced vibration on circular cylinder.... #1 New Member     Rishitosh Ranjan Join Date: Dec 2012 Location: Trichirapalli, Tamilnadu, India Posts: 18 Rep Power: 5 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....

 May 12, 2015, 04:48 #2 New Member   Shree Join Date: May 2014 Posts: 10 Rep Power: 4 Hi, rishitosh, Did you got the solution for your problem? plz help me in this regards i am also facing same error in my udf with "Compute_Force_And_Moment" function included.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post giulio.topazio OpenFOAM Native Meshers: snappyHexMesh and Others 10 August 22, 2012 09:03 aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52 akash.iitb FLUENT 0 August 23, 2010 23:53 lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09 hung FLUENT 7 April 18, 2005 09:38

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