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

Defining CG MOTION

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sophietay93

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 6, 2016, 04: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: 10
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

Old   July 11, 2019, 05:23
Default
  #3
New Member
 
Join Date: Jul 2019
Posts: 1
Rep Power: 0
mszudarek is on a distinguished road
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.
mszudarek 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
Defining mesh motion diffusivity from file cuba OpenFOAM Running, Solving & CFD 3 October 24, 2023 08:09
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
External management of solid motion (using dynamicmesh) maxou1993 Main CFD Forum 0 July 28, 2015 11:37
Problem in defining motion to the body externally ! OE11S007 STAR-CCM+ 1 March 7, 2014 23:32
Defining dynamic zones for Define CG motion aamer Main CFD Forum 0 March 21, 2011 03:51


All times are GMT -4. The time now is 06:44.