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

VAWT Rotation UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2016, 05:16
Thumbs up VAWT Rotation UDF
  #1
New Member
 
Join Date: Jul 2015
Posts: 12
Rep Power: 10
Neo_Zeo is on a distinguished road
Hello everyone!

I have the following problem:

I am modelling a transient problem about a VAWT (Vertical Axis Wind Turbine).

I have a beam which turns around the vertical axis. Over this beam I have 3 wings which also turns around. But I don`t want they to turn at a fixed RPM. They must be in a fixed angle in each quadrant.

I would like you to orient me about how to build my UDF.

-How can I do for Fluent to recognize the "beam rotation angle" variable?

-I have seen that I can use CG Motion to define velocities but I want to define positions. Is it possible? Or do I need to use velocities to do it?

-Is it possible to work with profiles? By the moment the profile I used works badly.

Thank you very much for your help


(Explanatory image attached)
Attached Images
File Type: png croquis.png (3.2 KB, 24 views)
Neo_Zeo is offline   Reply With Quote

Old   January 7, 2016, 15:02
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
You can define nodal positions as a function of time using the DEFINE_GRID_MOTION macro within the Moving/Deforming Mesh model.

I don't think profiles would work because they don't alter the flow field (only the boundaries). It'd be similar to changing the wind direction rather than moving the turbine blades.
`e` is offline   Reply With Quote

Old   January 8, 2016, 04:33
Default
  #3
New Member
 
Join Date: Jul 2015
Posts: 12
Rep Power: 10
Neo_Zeo is on a distinguished road
Quote:
Originally Posted by `e` View Post
You can define nodal positions as a function of time using the DEFINE_GRID_MOTION macro within the Moving/Deforming Mesh model.

I don't think profiles would work because they don't alter the flow field (only the boundaries). It'd be similar to changing the wind direction rather than moving the turbine blades.
Thank you!
I have created and load this UDF, but it doesn`t appear in Cell Zone ->Mesh Motion ->Zone Motion function. However it appears in dynamic mesh. Why?
What is the diference between grid and cg motion?

This is my udf file :

#include "udf.h"
DEFINE_CG_MOTION(lama1,dt,vel,omega,time,dtime)
{

/* reset velocities */
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);

if (!Data_Valid_P())
return;

if (time < 2.3)
vel[1] = 0.04;
else if (time < 3.1)
vel[1] = 0;
else if (time < 3.3)
vel[1] = -7.2;
else if (time < 3.6)
vel[1] = -4.8;
else if (time < 5.6)
vel[1] = 0.7;
else if (time < 5.7)
vel[1] = -0.7;
else if (time < 6.0)
vel[1] = -1.0;
else if (time < 6.9)
vel[1] = 0.7;
else if (time < 7.9)
vel[1] = 0.8;
else if (time < 8.0)
vel[1] = 2.10;
else if (time < 8.2)
vel[1] = 1.70;
else if (time < 9.2)
vel[1] = 0;
else
vel[1] = 0;
}
Neo_Zeo 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
udf for valve closing a pipe using dynamic mesh chem engineer Fluent UDF and Scheme Programming 2 May 13, 2017 09:39
UDF for rotation Hari Fluent UDF and Scheme Programming 2 January 13, 2016 02:51
UDF for solid body rotation araz Fluent UDF and Scheme Programming 1 January 13, 2016 02:46
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 06:43
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


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