|
[Sponsors] |
December 8, 2018, 11:03 |
sinusoidal movement body
|
#1 |
New Member
Aureliano Sancho
Join Date: May 2013
Location: Salvador-Ba-Brasil
Posts: 26
Rep Power: 13 |
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? |
|
Tags |
define_profile, movement body, udf |
|
|
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 |