|
[Sponsors] |
July 4, 2014, 02:20 |
Imposing oscillatory motion on foil
|
#1 |
New Member
NGH
Join Date: May 2011
Posts: 15
Rep Power: 14 |
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); } |
|
|
|
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 |