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

inlet rotation (moving) udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2023, 09:18
Default inlet rotation (moving) udf
  #1
New Member
 
sunny
Join Date: Sep 2022
Posts: 9
Rep Power: 4
qwerty010 is on a distinguished road
hello.
I am currently doing rpb (rotation packeb bed) simulation and my geometry is roughly as follows.

As a result of referring to various papers, most of them said that rotation is implemented by creating a udf that rotates the inlet, so I also created a udf using define_cg_motion and define_grid_motion. However, when running fluent, an error occurs and the simulation does not proceed.

The udf I wrote is as follows.

#define PI 3.141592654
#define rpm 1000.0
#define inlet_ID 6
#define d 0.001 /* Nozzle width (m) */
#define R 0.019 /* radius of liquid inlet (m) */


DEFINE_CG_MOTION(rotating,dt,vel,omega,time,dtime)
{
double w;

Thread *t;
face_t f;
real NV_VEC(A);
real force_x, dv;

NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);

if (!Data_Valid_P())
return;

w = rpm * 2.0 * PI / 60.0;

omega[0] = w;
omega[1] = w;

}

Referenced papers are as follows:
https://doi.org/10.1016/j.cep.2020.108107
https://doi.org/10.1016/j.cej.2021.130874

Do I need to use another udf macro to move the boundary like an inlet?
Or is there something wrong with my udf code?

I need your help..please..
thank you
qwerty010 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
2D rotating detonation simulation - UDF inlet BC Tianxu FLUENT 10 July 27, 2020 03:28
UDF Velocity profile at inlet aar007 Fluent UDF and Scheme Programming 1 June 28, 2020 23:43
UDF for moving wall (oscillating) Sambhu.jayachandran Fluent UDF and Scheme Programming 3 March 12, 2018 04:23
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 12:21
UDF paraboloid velocity inlet Ronak Shah FLUENT 0 June 4, 2003 10:44


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