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

Defining CG MOTION

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By sophietay93

Reply
 
LinkBack Thread Tools Display Modes
Old   January 6, 2016, 05:08
Default Defining CG MOTION
  #1
New Member
 
Soph
Join Date: Dec 2015
Posts: 2
Rep Power: 0
sophietay93 is on a distinguished road
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 likes this.
sophietay93 is offline   Reply With Quote

Old   April 4, 2016, 02:22
Default
  #2
New Member
 
mortezasekaloo
Join Date: Apr 2016
Posts: 4
Rep Power: 2
morteza 1374 is on a distinguished road
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
morteza 1374 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sliding mesh problem in CFX Saima CFX 45 September 22, 2015 10:53
External management of solid motion (using dynamicmesh) maxou1993 Main CFD Forum 0 July 28, 2015 11:37
Defining mesh motion diffusivity from file cuba OpenFOAM Running, Solving & CFD 2 February 12, 2015 06:00
Problem in defining motion to the body externally ! OE11S007 STAR-CCM+ 1 March 8, 2014 00:32
Defining dynamic zones for Define CG motion aamer Main CFD Forum 0 March 21, 2011 04:51


All times are GMT -4. The time now is 15:24.