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

(Emergence) Dynamic mesh with DEFINE_CG_MOTION problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 27, 2012, 04:36
Default (Emergence) Dynamic mesh with DEFINE_CG_MOTION problem
  #1
Member
 
ThanhToan
Join Date: Sep 2010
Posts: 41
Rep Power: 4
trantoan2008 is on a distinguished road
Send a message via Yahoo to trantoan2008 Send a message via Skype™ to trantoan2008
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);
}
trantoan2008 is offline   Reply With Quote

Reply

Tags
dynamic mesh, udf

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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


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