CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

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

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2012, 05:11
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: 13
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....
rishitosh is offline   Reply With Quote

Old   May 12, 2015, 05:48
Default
  #2
New Member
 
Shree
Join Date: May 2014
Posts: 10
Rep Power: 11
sarjerao is on a distinguished road
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.
sarjerao is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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 14:16.