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

sinusoidal movement body

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2018, 11:03
Post sinusoidal movement body
  #1
New Member
 
Aureliano Sancho
Join Date: May 2013
Location: Salvador-Ba-Brasil
Posts: 26
Rep Power: 13
SanchoBuendia is on a distinguished road
Hi everyone,


I need create an UDF to simulate the movement of the body as sinusoidal movement. I`m trying write but I still have some doubts, my udf


#include "udf.h"
#define f 34
#define pi 3.14
#define A 0.0015

DEFINE_PROFILE(velocity_z,t,i)
{
real tt = CURRENT_TIME;
double FreqAng;

FreqAng = 2*3.14*f;
F_PROFILE(f,t,i) = -A*FreqAng*sin(FreqAng*tt);

}


Do I need put the



begin_f_loop(f,thread)



and




F_CENTROID(x, f, thread);


What will be the correct form of write the UDF?
SanchoBuendia is offline   Reply With Quote

Reply

Tags
define_profile, movement body, udf


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
CEL Code for Sinusoidal Movement of Piston gbrajtm CFX 58 November 4, 2019 02:37
[snappyHexMesh] dynamic mesh: rotating body with increasing/decreasing distance to fixed body mo_na OpenFOAM Meshing & Mesh Conversion 3 July 26, 2016 05:51
Drift in Sinusoidal Rigid Body Motion with Two Domains dae4god CFX 2 September 24, 2012 23:45
Solid body movement in X direction minhaj_iut FLUENT 5 November 12, 2010 05:09
modeling movement of body in fluid Hossein FLUENT 0 November 18, 2008 05:33


All times are GMT -4. The time now is 01:16.