|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
|
Hi all user!
I trying to simulate pitching of airfoil using UDF code as below. While I running simulation, I tried to check pitching angle at every time step that can be written in Fluent window. Additional, I accessed pitching angle of airfoil by using GUI like: Define---Dynamic Mesh-->Zones In Dynamic mesh zones form, I checked Center of Gravitation Orientation, and I found that there are slightly different pitch angle between this value and output value in Fluent window. Anybody have experience in this case, please tell me. Thanks in advanced #include "udf.h" #include "stdio.h" float pitch_angle,pi,rad; DEFINE_CG_MOTION(trans1, dt, vel, omega, time, dtime) { pi = 3.1415926536; rad=pi/180.0; vel[0] = 0.0 ; vel[1] = 0.0 ; vel[2] = 0.0 ; omega[0] = 0.0 ; omega[1] = 0.0 ; omega[2] = 0.34906585*(pi/2)*cos((pi/2)*time); pitch_angle = 0.34906585*sin((pi/2)*time)*(1/rad); Message0("\n Time = %g\n",time); Message0("\n Omega = %g\n",omega[2]); Message0("\n Pitch = %g\n",pitch_angle); } |
|
|
|
|
|
![]() |
| Tags |
| dynamic mesh, udf |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dynamic mesh & Negative volume in 3D | mahzironrazak | FLUENT | 68 | March 11, 2013 11:07 |
| Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 121 | March 7, 2013 17:21 |
| snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Native Meshers: snappyHexMesh and Others | 2 | March 27, 2011 21:11 |
| Dynamic Mesh Problem - please help! | Hila | FLUENT | 0 | August 19, 2006 04:19 |
| Dynamic mesh problem | Sampath | FLUENT | 1 | October 13, 2004 06:44 |