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

How define center of rotation for a 2D disk

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2015, 10:18
Default How define center of rotation for a 2D disk
  #1
New Member
 
AhmadAli
Join Date: Sep 2011
Posts: 2
Rep Power: 0
a.ali is on a distinguished road
Hi
I'm trying to simulate a off center rotating 2D disk in a channel and I have problem. one send me an UDF and I compiled it but I could not change the center of rotation. here the UDF and problem geometry.

#include "udf.h"
static real v_prev = 0.0;
DEFINE_CG_MOTION(airfoil,dt,vel,omega,time,dtime)
{
real NV_VEC(A);
real dv;
/* reset velocities */
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);
omega[2] = 10;
}
Attached Images
File Type: png Untitled.png (22.1 KB, 25 views)
a.ali is offline   Reply With Quote

Old   October 29, 2016, 00:34
Default
  #2
New Member
 
Wesley liu
Join Date: Mar 2016
Posts: 18
Rep Power: 10
luna125 is on a distinguished road
Quote:
Originally Posted by a.ali View Post
Hi
I'm trying to simulate a off center rotating 2D disk in a channel and I have problem. one send me an UDF and I compiled it but I could not change the center of rotation. here the UDF and problem geometry.

#include "udf.h"
static real v_prev = 0.0;
DEFINE_CG_MOTION(airfoil,dt,vel,omega,time,dtime)
{
real NV_VEC(A);
real dv;
/* reset velocities */
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);
omega[2] = 10;
}
hi, guys,

did you solve the issue? i have the same issue about how to define a center of rotation since the rotation is off the center of gravity in fluent UDF.
luna125 is offline   Reply With Quote

Old   November 24, 2016, 03:42
Default
  #3
New Member
 
Wesley liu
Join Date: Mar 2016
Posts: 18
Rep Power: 10
luna125 is on a distinguished road
hi,
the fluent17.1 has dialogs to define the rotate center.
luna125 is offline   Reply With Quote

Old   December 31, 2017, 09:44
Default
  #4
New Member
 
Join Date: Nov 2017
Posts: 15
Rep Power: 9
rjm1982 is on a distinguished road
Hello, I am also struggling with something similar. I am trying to have a 2D airfoil translating and rotating at the same time. The centre of rotation needs to be the 1/3rd chord of the airfoil, so the centre of rotation is moving at every time step due to the translation. I am trying to use DEFINE_CG_MOTION, but so far without success.

Does anyone know how I can specify the moving centre of rotation please?
rjm1982 is offline   Reply With Quote

Old   January 2, 2018, 05:28
Default
  #5
New Member
 
Join Date: Nov 2017
Posts: 15
Rep Power: 9
rjm1982 is on a distinguished road
Update: the centre of gravity dialogue boxes correspond to the initial values. These are updated automatically by Fluent. Therefore all you need to do is input the initial location of the centre of gravity/rotation and Fluent will update it automatically as the body moves!
rjm1982 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
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 22:13
UDF: trying to implement a Kinetic Equation source term er.mkumar Fluent UDF and Scheme Programming 35 March 22, 2019 11:20
SR_Rate UDF For a MEMs model timjm Fluent UDF and Scheme Programming 1 October 10, 2018 03:16
udf problem eb.nabizadeh Fluent UDF and Scheme Programming 2 March 1, 2013 01:28
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48


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