CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Defining CG MOTION (https://www.cfd-online.com/Forums/fluent-udf/164953-defining-cg-motion.html)

sophietay93 January 6, 2016 04:08

Defining CG MOTION
 
Hi all,

I am trying to model a fluid body.
One wall of the fluid body will be fixed, while another wall at the other extreme will be subjected to linear and angular velocity in the x,y and z direction (I suppose this requires the 6dof solver).
However when I try to run the simulation, there isn't any velocity values assigned to the 3 directions. I am thinking it may be because I did not define the CG in my code or on fluent properly. Have attached my code right here, would appreciate if anyone can advise me on this. Thank you!

__________________________________________________ ________-

#include "udf.h"
#include "math.h"
#include "dynamesh_tools.h"

DEFINE_CG_MOTION(valve, dt, vel, omega, time, dtime)

{

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


/* compute velocities formula */

vel[0]=0.0011; /* computing linear velocities */
vel[1]=0.001225;
vel[2]=0.0042;
omega[0]=-0.09774;
omega[1]=0.317214;
omega[2]=0.15184346;
printf("\n");
printf("\n rotational_speed = %g \n",omega[2]);

}

morteza 1374 April 4, 2016 02:22

hi
I am the student of fluid mechanics and now I am studying on fluid project. The subject of my project is about blade turbine that Oil radially impacts to the turbine blades by a nozzle, causing the turbine to spin. I have a problem in modeling of turbine that I don’t know how to obtain moment of inertia of blade and fluid and how to relate this challenge to the Cg motion until I can model this turbine in fluent software. Please help me
Thank for your attention

mszudarek July 11, 2019 05:23

I had the same issue. Make sure that you have assigned UDF in dynamic mesh options to every boundary of the cell zone, including interior. In my case I have forgotten about interior.


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