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

Imposing oscillatory motion on foil

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2014, 02:20
Default Imposing oscillatory motion on foil
  #1
NGH
New Member
 
NGH
Join Date: May 2011
Posts: 15
Rep Power: 14
NGH is on a distinguished road
Hi

I would like to impose an oscillatory motion on a foil and below is my UDF. Not all the nodes move, what could be the issue? Any advice is greatly appreciated.

#include "udf.h"
DEFINE_GRID_MOTION(upper,domain,dt,time,dtime)
{
Thread *tf=DT_THREAD(dt);
face_t f;
Node *v;
real amp,omega, delta_y;
amp=0.05;
omega=5;
int n;
SET_DEORMING_THREAD_FLAG(THREAD_T0(tf));
begin_f_loop(f,tf)
{
f_node_loop(f,tf,n)
{
v=F_NODE(f,tf,n);
if(NODE_POS_NEED_UPDATE(v))
{
NODE_POS_UPDATED(v);
delta_y=amp*sin(omega*time);
NODE_Y(v)=NODE_Y(v)+delta_y;
}
}
}
end_f_loop(f,tf);
}
NGH 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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
UDF for oscillatory motion NGH Fluent UDF and Scheme Programming 0 June 25, 2014 21:44
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 14:09
Oscillatory mesh motion setup mesh flux ERROR jaswi OpenFOAM Running, Solving & CFD 5 August 23, 2007 04:41


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