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

UDF For XY MOTION OF VORTEX INDUCED VIBRATIONS OF CIRCULAR CYLINDER

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2018, 23:34
Post UDF For XY MOTION OF VORTEX INDUCED VIBRATIONS OF CIRCULAR CYLINDER
  #1
New Member
 
Sajid
Join Date: Nov 2017
Posts: 3
Rep Power: 8
Sajid Sarfraz is on a distinguished road
Hi

This is Sajid

I am presently working on Vortex Induced Vibrations of Circular Cylinder in ANSYS Fluent

I have already completed 2D Case of VIV (Cross Flow Direction Only) using following UDF.


#include "udf.h"

static real v_prev_y = 0.0;

DEFINE_CG_MOTION(viv,dt,vel,omega,time,dtime)
{

Thread *t;

Domain *d;

FILE *fp;

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

real accl_y, dv_y;

real ured=6.02;

real mass_ratio = 149.10;

real eta = 0.0012;

real ro = 1.225;

real wn_y = (2*M_PI)/ured;

real mass = (ro*M_PI*mass_ratio)/4;

real k_y = mass*wn_y*wn_y;

real c_y = 2*mass*wn_y*eta;

int i;

NV_S(vel,=,0.0);

NV_S(omega,=,0.0);

t = DT_THREAD(dt);

d = Get_Domain(1);

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

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

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

force[1] += -k_y*cg[1] - c_y*vel[1];

accl_y = force[1]/mass;

dv_y = accl_y*dtime;

v_prev_y += dv_y;


Now i want to simulate XY Motion i.e both Inline and Cross Flow direction in ANSYS Fluent.

Can anybody send me UDF of XY Motion ???
Sajid Sarfraz is offline   Reply With Quote

Old   November 26, 2020, 04:20
Default
  #2
New Member
 
Join Date: Nov 2020
Posts: 5
Rep Power: 5
n.mai is on a distinguished road
Quote:
Originally Posted by Sajid Sarfraz View Post
Hi

This is Sajid

I am presently working on Vortex Induced Vibrations of Circular Cylinder in ANSYS Fluent

I have already completed 2D Case of VIV (Cross Flow Direction Only) using following UDF.


#include "udf.h"

static real v_prev_y = 0.0;

DEFINE_CG_MOTION(viv,dt,vel,omega,time,dtime)
{

Thread *t;

Domain *d;

FILE *fp;

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

real accl_y, dv_y;

real ured=6.02;

real mass_ratio = 149.10;

real eta = 0.0012;

real ro = 1.225;

real wn_y = (2*M_PI)/ured;

real mass = (ro*M_PI*mass_ratio)/4;

real k_y = mass*wn_y*wn_y;

real c_y = 2*mass*wn_y*eta;

int i;

NV_S(vel,=,0.0);

NV_S(omega,=,0.0);

t = DT_THREAD(dt);

d = Get_Domain(1);

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

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

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

force[1] += -k_y*cg[1] - c_y*vel[1];

accl_y = force[1]/mass;

dv_y = accl_y*dtime;

v_prev_y += dv_y;


Now i want to simulate XY Motion i.e both Inline and Cross Flow direction in ANSYS Fluent.

Can anybody send me UDF of XY Motion ???
Hi, may I know what is M_PI? is it for pai=3.142?

Thank you.
n.mai is offline   Reply With Quote

Old   November 26, 2020, 18:45
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Quote:
Originally Posted by n.mai View Post
Hi, may I know what is M_PI? is it for pai=3.142?

Thank you.
yes

next time you may find information about macros in ansys fluent customization manual
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   November 26, 2020, 18:51
Default
  #4
New Member
 
Join Date: Nov 2020
Posts: 5
Rep Power: 5
n.mai is on a distinguished road
Hi Mr. Alexander Z,

Thank you for your information and guidelines. ����
n.mai 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
Cylinder motion along a circular path karamiag OpenFOAM Running, Solving & CFD 0 May 25, 2014 05:05
benchmark: flow over a circular cylinder goodegg Main CFD Forum 12 January 22, 2013 11:47
vortex flow over circular cylinder Sheila FLUENT 7 March 21, 2006 14:28
Vortex Shedding Circular Cylinder Ray Mahon Main CFD Forum 1 March 14, 2002 23:38
LES: vortex shedding past a 2D and 3D circular cylinder Rocchi Daniele Main CFD Forum 7 April 9, 1999 12:05


All times are GMT -4. The time now is 19:18.