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

cg-motion udf vs 6dof udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 21, 2016, 01:09
Default cg-motion udf vs 6dof udf
  #1
New Member
 
arshia
Join Date: Feb 2016
Posts: 18
Rep Power: 10
hamed1987 is on a distinguished road
hi every one,
i want to simulate moving object inside a barrel by patching high pressure and tempreture ,
i used a 6dof udf and set prop[SDOF_MASS] = 0.4
and so i tried to check the moving by using cg-motion udf
that calculate the force and solve second law for motion:
force = 0.0;
begin_f_loop (f, t)
{
F_AREA (A, f, t);
force += 2*M_PI*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 / .4;
v_prev += dv;
Message ("time = %f, x_vel = %f, force = %f\n", time, v_prev, force); /* set x-component of velocity */
vel[0] = v_prev;


but when i checked the velocities at the same position for example
@ x=.2
vel object (6dof)=286
vel object (cg_motion)=86

any one know why???
thanks a lotUntitled.jpg
hamed1987 is offline   Reply With Quote

Old   February 22, 2016, 06:20
Default
  #2
New Member
 
arshia
Join Date: Feb 2016
Posts: 18
Rep Power: 10
hamed1987 is on a distinguished road
any suggestions???
hamed1987 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
Parallelizing UDF for Mesh Motion avd28 Fluent UDF and Scheme Programming 2 September 23, 2017 06:20
incorrect grid motion UDF deforming on zone ?????? h.iraji FLUENT 0 October 29, 2013 03:43
Is this the correct approach to my problem? (UDF for object in motion) charlestan88 Fluent UDF and Scheme Programming 5 October 27, 2013 07:09
Motion UDF kailingkk Fluent UDF and Scheme Programming 0 October 15, 2013 11:56
UDF error CG Motion Alex FLUENT 0 March 22, 2006 18:40


All times are GMT -4. The time now is 09:11.