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

No motion with CG_MOTION

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 4, 2012, 07:04
Default No motion with CG_MOTION
  #1
New Member
 
Join Date: Apr 2012
Posts: 17
Rep Power: 5
Faby is on a distinguished road
Hello every one...

I have a problem with using of dynamic mesh...

I'm just trying to apply udf provided by fluent manual to the wall of a particle in a tube fluid flow.

The udf is the following:

* 1-degree of freedom equation of motion (y-direction)
* compiled UDF
************************************************** **********/
#include "udf.h"
static real v_prev = 0.0;
DEFINE_CG_MOTION(particle,dt,vel,omega,time,dtime)
{
Thread *t;
face_t f;
real NV_VEC(A);
real force, dv;
/* reset velocities */
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);
if (!Data_Valid_P())
return;
/* get the thread pointer for which this motion is defined */
t = DT_THREAD(dt);
/* compute pressure force on body by looping through all faces */
force = 0.0;
begin_f_loop(f,t)
{
F_AREA(A,f,t);
force += F_P(f,t) * NV_MAG(A);
}
end_f_loop(f,t)
/* compute change in velocity, i.e., dv = F * dt / mass velocity update using explicit Euler formula */
dv = dtime * force / 0.032986723;
v_prev += dv;
Message ("time = %f, x_vel = %f, force = %f\n", time, v_prev,
force);
/* set x-component of velocity */
vel[1] = v_prev;
}

I have only defined the wall of particle as rigid body, and, in the motion attribute I have chosen the udf library.
obviously the simulation is in transient time.

It's a very simple problem...but my particle doesn't move!!! Why??? Should I define a moving zone surrounding the particle? Should I define any kind of contact regions between particle and fluid?

Could anyone help me?
Faby is offline   Reply With Quote

Old   June 20, 2012, 12:10
Default
  #2
New Member
 
Kyle
Join Date: Jun 2012
Posts: 12
Rep Power: 4
hippiekyle is on a distinguished road
did you ever figure this out? because I'm having the exact same problem. I even copied the same UDF as you.
hippiekyle is offline   Reply With Quote

Old   June 21, 2012, 16:00
Default
  #3
New Member
 
Join Date: Apr 2012
Posts: 17
Rep Power: 5
Faby is on a distinguished road
No, I'didn't.

I'm using 6DOF solver...
Faby 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
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 07:21
Prescribed mesh motion does not correspond to actual motion rbarrett CFX 8 June 30, 2011 13:22
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09
tank motion on boat Tim FLUENT 0 May 23, 2007 11:50
large scale mesh motion sb FLUENT 1 April 27, 2007 22:23


All times are GMT -4. The time now is 05:21.