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

center of gravity motion

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 9, 2012, 15:46
Default center of gravity motion
  #1
New Member
 
Jessica Simberg
Join Date: Mar 2012
Posts: 17
Rep Power: 6
Jessica.S is on a distinguished road
hi everybody,
i'm trying to simulate motion using 6dof...
but fluent reports no force and there is no movement...
anybody knows what might be the problem?

DEFINE_SDOF_PROPERTIES(six_degs_of_frdom1, prop, dt, time, dtime)
{
real fx, fy, fz;
Thread *t;
face_t f;
real NV_VEC(A);

prop[SDOF_MASS] = 2;
fx = 0.0;
fy = 0.0;
fz = 0.0;
t = DT_THREAD(dt);

begin_f_loop(f,t)
{
F_AREA(A,f,t);
fx += F_P(f,t)*A[0];
fy += F_P(f,t)*A[1];
fz += F_P(f,t)*A[2];
}
end_f_loop(f,t)

printf ("fx = %f, fy = %f, X_fz = %f\n", fx, fy, fz);
prop[SDOF_LOAD_F_X] = fx;
prop[SDOF_LOAD_F_Y] = fy;
prop[SDOF_LOAD_F_Z] = fz;
}

Many thanks in advance!

Last edited by Jessica.S; March 12, 2012 at 11:43. Reason: its 6dof not cg motion
Jessica.S 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
center of gravity orientation wujinlao5 FLUENT 4 June 27, 2014 08:53
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Mesh motion with Translation & Rotation Doginal CFX 2 January 12, 2014 07:21
RE: Applying forces / Center of Gravity in CFX Janusz CFX 1 November 16, 2008 20:37
Convergence moving mesh lr103476 OpenFOAM Running, Solving & CFD 30 November 19, 2007 15:09


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