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

Pitching aerofoils whilst rotating about a point

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2020, 14:40
Unhappy Pitching aerofoils whilst rotating about a point
  #1
New Member
 
unicorn
Join Date: Nov 2020
Posts: 6
Rep Power: 6
el123 is on a distinguished road
I am trying to write a UDF to make 4 aerofoils pitch about their quarter-chord point in a sinusoidal fashion as they rotate about a common point (think cross flow fan with variable pitch).
I am a bit confused on what macros to use as I don't want a dynamic mesh and am using a sliding mesh with transient profile macro currently.
See below for what I have so far (and picture for my set-up). Depending on what axis of rotation I put in the boundary conditions in fluent I can only get them to either rotate about the common point (0,0) or pitch about their quarter chord points, not both?

I know my question is a bit vague but if anyone could help me with how I should go about them rotating AND pitching that would be amazing!

UDF:

#include "udf.h"
#define PI 3.141592654
real theta_max = 35 * (PI/180);
real omega = 420 * (2 * PI/60);

DEFINE_TRANSIENT_PROFILE(ypos, time)
{
real phi_start = 90 * (PI/180);
real theta_dot = theta_max * omega * cos((omega * time) + phi_start);
return theta_dot;
}

DEFINE_TRANSIENT_PROFILE(yneg, time)
{
real phi_start = 270 * (PI/180);
real theta_dot = theta_max * omega * cos((omega * time) + phi_start);
return theta_dot;
}

DEFINE_TRANSIENT_PROFILE(xpos, time)
{
real phi_start = 0 * (PI/180);
real theta_dot = theta_max * omega * cos((omega * time) + phi_start);
return theta_dot;
}

DEFINE_TRANSIENT_PROFILE(xneg, time)
{
real phi_start = 180 * (PI/180);
real theta_dot = theta_max * omega * cos((omega * time) + phi_start);
return theta_dot;
}
Attached Images
File Type: jpg setup.jpg (202.1 KB, 3 views)
el123 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
How to set monitoring point in rotating blade or transitional blade with fluent? ZJU-CFD FLUENT 1 November 7, 2022 07:15
Centrifugal Pump Simulation Problem! warex FloEFD, FloWorks & FloTHERM 29 September 23, 2014 11:27
Setting up a point monitor rotating with the blade Hamidur CFX 1 September 13, 2008 18:00
How can I create a rotating monitoring point? Andy Cong FLUENT 0 September 10, 2006 21:09
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


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