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, 09: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, 24 views)
a.ali is offline   Reply With Quote

Old   October 28, 2016, 23: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, 02: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, 08:44
Default
  #4
New Member
 
Join Date: Nov 2017
Posts: 15
Rep Power: 8
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, 04:28
Default
  #5
New Member
 
Join Date: Nov 2017
Posts: 15
Rep Power: 8
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 21:13
UDF: trying to implement a Kinetic Equation source term er.mkumar Fluent UDF and Scheme Programming 35 March 22, 2019 10:20
SR_Rate UDF For a MEMs model timjm Fluent UDF and Scheme Programming 1 October 10, 2018 02:16
udf problem eb.nabizadeh Fluent UDF and Scheme Programming 2 March 1, 2013 00:28
Missing math.h header Travis FLUENT 4 January 15, 2009 11:48


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