|
[Sponsors] |
June 22, 2016, 08:32 |
udf about rotation-axis
|
#1 |
New Member
Hong
Join Date: Jun 2016
Posts: 7
Rep Power: 9 |
hi every one!
I am trying to use udf in fluent to simulate NACA0012 airfoil with this dynamic equation: I am just a beginner of the udf, and I think I can simulate this case by DEFINE_CG_MOTION. But how to change the rotation aixs or define it? The omega[] means rotation by x/y/z axis, right? I think I need to give the axis a Uy to describe the motion. So who can tell me how to define my axis rather than xyz axis? |
|
November 5, 2016, 14:34 |
|
#2 | |
New Member
Guoqing Zhang
Join Date: Nov 2016
Posts: 2
Rep Power: 0 |
Quote:
# include "udf.h" # define a0 15791.0742 DEFINE_CG_MOTION(arm_motion,dt,cg_vel,cg_omega,tim e,dtime) { real NV_VEC(axis), NV_VEC(origin); NV_D(origin, =, -37.32952, 5.627642, 0.0); NV_D(axis, =, 0.0, 0.0, 1.0); if(time>=0&&time<0.003) { cg_omega[2]= -a0*time; } else if(time>=0.003&&time<0.007) { cg_omega[2]= -a0*0.003; } else if(time>=0.007&&time<0.010) { cg_omega[2]= -(a0*0.010-a0*time); } else if(time>=0.020&&time<0.023) { cg_omega[2]= a0*(time-0.02); } else if(time>=0.023&&time<0.027) { cg_omega[2]= a0*0.003; } else if(time>=0.027&&time<0.030) { cg_omega[2]= a0*0.010-a0*(time-0.02); } } |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unsteady Boundary Profile with data file | Arianna | FLUENT | 34 | July 29, 2019 16:35 |
Problem with tilted axis Rotation | Luffy | OpenFOAM Pre-Processing | 3 | August 26, 2016 09:37 |
Two rotation axis fluent | AP3181 | FLUENT | 0 | September 9, 2015 05:11 |
UDF Dynamic Meshing for Rotation and Translation | Aidan100 | Fluent UDF and Scheme Programming | 2 | August 16, 2015 23:39 |
UDF for Species Mass Fraction Gradient *IN SPECIFIC ZONE * -- e.g. along axis of sym. | ksiegs2 | Fluent UDF and Scheme Programming | 0 | February 27, 2011 12:55 |